segmentation fault problems with basemap

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170329/f328f103/attachment.html>

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 <jmssnyder at ucdavis.edu> 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 (
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
Matplotlib-users at python.org
Matplotlib-users Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170330/55628c7c/attachment.html&gt;