matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
779 stars 392 forks source link

Basemap causes Python's kernel to die #363

Closed khider closed 7 years ago

khider commented 7 years ago

I have several functions that use Basemap (and worked well until a week ago). Not everytime basemap is called, the kernel in iPython (Jupyter Notebook or Spyder).

In a terminal, I get the following error:

//anaconda/lib/python3.5/site-packages/numpy/core/fromnumeric.py:2909: RuntimeWarning: Mean of empty slice. out=out, **kwargs) //anaconda/lib/python3.5/site-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) GEOS_ERROR: b'IllegalArgumentException: Points of LinearRing do not form a closed linestring' GEOS_ERROR: b'Shell is not a LinearRing' Segmentation fault: 11

WeatherGod commented 7 years ago

how was basemap installed? Also, is this linux or mac?

Ben Root

On Wed, Jul 12, 2017 at 5:10 PM, Deborah Khider notifications@github.com wrote:

I have several functions that use Basemap (and worked well until a week ago). Not everytime basemap is called, the kernel in iPython (Jupyter Notebook or Spyder).

In a terminal, I get the following error:

//anaconda/lib/python3.5/site-packages/numpy/core/fromnumeric.py:2909: RuntimeWarning: Mean of empty slice. out=out, **kwargs) //anaconda/lib/python3.5/site-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) GEOS_ERROR: b'IllegalArgumentException: Points of LinearRing do not form a closed linestring' GEOS_ERROR: b'Shell is not a LinearRing' Segmentation fault: 11

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matplotlib/basemap/issues/363, or mute the thread https://github.com/notifications/unsubscribe-auth/AARy-Ava09EHxiG30BufO_e6aBD9Hlvaks5sNTZMgaJpZM4OWNXF .

khider commented 7 years ago

A Mac. The problem was solved when installing through conda

WeatherGod commented 7 years ago

Yeah, there are any number of reasons why the python kernel would die. Without more information, it would be difficult to pin down the cause of the problem.

I am glad you figured out a work-around, though!

On Mon, Jul 17, 2017 at 10:29 PM, Deborah Khider notifications@github.com wrote:

Closed #363 https://github.com/matplotlib/basemap/issues/363.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/matplotlib/basemap/issues/363#event-1167552780, or mute the thread https://github.com/notifications/unsubscribe-auth/AARy-JEa2KreVyqGm9EcLpySyrb6yL6Yks5sPBiHgaJpZM4OWNXF .