<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:11px">Sorry if this is a double post; used the wrong email in the first reply and got at least one failure notice...</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">

<br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">This is terminal IPython and IPython Notebook. (I noticed it first in the IPython Notebook). The backends are the same in both Python and IPython (and IPython Notebook). I have not changed any of the default IPython settings.<div>

<br></div><div>I'm wondering if this is a path issue of some sorts…namely IPython is picking up an old version of geos that I cannot seem to find. At least this is the angle I'm currently trying to work on. I should add that I've remove all my manually installed modules and "started over". I built Numpy, Matplotlib, Basemap, and then IPython (in that order), and still have the same segfault issue.</div>

<div><br></div><div><br></div><div>Patrick</div><div><br></div></div><div class="gmail_extra"><div><div dir="ltr"><br></div></div><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 1:15 PM, MinRK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is terminal IPython?<div><br></div><div>Is there a chance that the matplotlib backend is different in each case? Have you enabled matplotlib eventloop integration in IPython (otherwise, it will block when you draw a plot).</div>



</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Sep 3, 2013 at 9:36 AM, Patrick Marsh <span dir="ltr"><<a href="mailto:patrickmarshwx@gmail.com" target="_blank">patrickmarshwx@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:11px">Hi, All,</div>

<div style="font-family:arial,sans-serif;font-size:11px">

<br></div><div style="font-family:arial,sans-serif;font-size:11px">I'm not sure what is going on, but the following fails in IPython (terminal and notebook) but works just fine in regular Python.<br>

</div><div style="font-family:arial,sans-serif;font-size:11px"><br></div><div style="font-family:arial,sans-serif;font-size:11px">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). </div>





<div style="font-family:arial,sans-serif;font-size:11px"><br></div><div style="font-family:arial,sans-serif;font-size:11px">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.</div>





<div style="font-family:arial,sans-serif;font-size:11px"><br></div><div style="font-family:arial,sans-serif;font-size:11px">What I cannot figure out is why this would work with a pure Python interpreter, but fail in the IPython console.</div>





<div dir="ltr" style="font-family:arial,sans-serif;font-size:11px"><br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px"><br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">





=====</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">import matplotlib.pyplot as plt</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">from mpl_toolkits.basemap import Basemap</div>





<div dir="ltr" style="font-family:arial,sans-serif;font-size:11px"><br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">m = Basemap()    # This is where the segfault occurs</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">





<br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">m.drawcoastlines()</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">plt.show()</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">





=====</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px"><br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px"><br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">





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. </div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">





<br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px"><br></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">Thanks for any help or ideas on fixing this issue, or at least on how to track down this issue...<span><font color="#888888"><br>





</font></span></div><span><font color="#888888"><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px"><div><br></div><div><br></div></div><div dir="ltr" style="font-family:arial,sans-serif;font-size:11px">

<div>Patrick</div></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div></div>