segmentation fault problems with basemap

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

segmentation fault problems with basemap

Jason Snyder
Whenever I run a python with basemap I get a segmentation fault error.  For example when running:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# setup Lambert Conformal basemap.
# set resolution=None to skip processing of boundary datasets.
m = Basemap(width=12000000,height=9000000,projection='lcc',
           resolution=None,lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.)
# draw a land-sea mask for a map background.
# lakes=True means plot inland lakes with ocean color.
m.drawlsmask(land_color='coral',ocean_color='aqua',lakes=True)
plt.show()

I get a segmentation fault core dump error.

I have done some reading online about this and they say that it could be because I accidently installed two versions of geos (http://trac.osgeo.org/geos/), which include geos.3.3.6 and geos.3.3.3 which was already available in the basemap package.   Could this be the problem that is creating the segmentation fault core dump?  If so how do I uninstall the geos libraries that I do not need.  There is not a lot of specific information on how to uninstall geos libraries and I really need a specific guide on how to do this and get the above script working properly.



--
Jason Snyder PhD


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: segmentation fault problems with basemap

Benjamin Root
Could you use the faulthandler package to help produce a stack trace? https://pypi.python.org/pypi/faulthandler/

If you are using python 3.4 or greater, it should already be in the standard library.

Cheers!
Ben Root


On Wed, Mar 29, 2017 at 3:51 PM, Jason Snyder <[hidden email]> wrote:
Whenever I run a python with basemap I get a segmentation fault error.  For example when running:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# setup Lambert Conformal basemap.
# set resolution=None to skip processing of boundary datasets.
m = Basemap(width=12000000,height=9000000,projection='lcc',
           resolution=None,lat_1=45.,lat_2=55,lat_0=50,lon_0=-107.)
# draw a land-sea mask for a map background.
# lakes=True means plot inland lakes with ocean color.
m.drawlsmask(land_color='coral',ocean_color='aqua',lakes=True)
plt.show()

I get a segmentation fault core dump error.

I have done some reading online about this and they say that it could be because I accidently installed two versions of geos (http://trac.osgeo.org/geos/), which include geos.3.3.6 and geos.3.3.3 which was already available in the basemap package.   Could this be the problem that is creating the segmentation fault core dump?  If so how do I uninstall the geos libraries that I do not need.  There is not a lot of specific information on how to uninstall geos libraries and I really need a specific guide on how to do this and get the above script working properly.



--
Jason Snyder PhD


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users



_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Loading...