From: Patrick M. <pat...@gm...> - 2013-09-03 16:37:36
|
Hi, All, I'm not sure what is going on, but the following fails in IPython (terminal and notebook) but works just fine in regular Python. I'm using OS X 10.8.4; git master for git master for Matplotlib (a091f6d), IPython (9f92804), and Basemap (1d7664c); and geos version 3.4.2 (built by Homebrew). The following script will work from a Python prompt but fails (segfaults) from the IPython prompt. After doing some digging it appears that the segfault occurs when accessing some of the methods associated with the generated geos module (_geoslib.so). I've rolled back to previous versions of everything and I still have the same issues. What I cannot figure out is why this would work with a pure Python interpreter, but fail in the IPython console. ===== import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap m = Basemap() # This is where the segfault occurs m.drawcoastlines() plt.show() ===== I originally posted this on the IPython Users list and got no response, so I thought I would try here before posting a bug on both IPython and Basemap's Github issue trackers. Thanks for any help or ideas on fixing this issue, or at least on how to track down this issue... Patrick |