<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 5, 2010, at 12:02 PM, Claus wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div>this is weird, and I know it has worked a couple of days ago. I am puzzled and not sure what to check anymore.</div><div>I am running the MacPorts Python installation</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>which python </div><div>in terminal gives</div><div><span class="Apple-tab-span" style="white-space:pre">   </span><span class="Apple-style-span" style="white-space: pre;">/opt/local/bin/python</span></div><span class="Apple-style-span" style="white-space: pre;"> </span><div><span class="Apple-style-span" style="white-space: pre;">In Textmate, I have the following Shell Variables set:</span></div><div><span class="Apple-style-span" style="white-space: pre;">TM_PYTHON = /opt/local/bin/python</span></div><div><span class="Apple-style-span" style="white-space: pre;">PYTHONPATH = /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;">When I run the script shown below from terminal using</span></div><div><span class="Apple-style-span" style="white-space: pre;">python testscript.py</span></div><div><span class="Apple-style-span" style="white-space: pre;">the matplotlib window pops up, and all is good. </span></div><div><span class="Apple-style-span" style="white-space: pre;">When I run the script from within TextMate using cmd-R the script runs fine unitl just before the plt.figure() line. Then in the dock the "python rocket" symbol launches, but no Matplotlib window pops open, no error message, just the bouncing python rocket.</span></div></div></blockquote><br></div><div>I ran into similar troubles with matplotlib:</div><div><a href="http://old.nabble.com/still-problems-with-matplotlib-td27098116.html">http://old.nabble.com/still-problems-with-matplotlib-td27098116.html</a></div><div><br></div><div>If I remember correctly, TextMate has had some issues with interactive input since the change to Snow Leopard. Alex Ross ended up giving me a couple of solutions that worked for me:</div><div>1) Set TM_INTERACTIVE_INPUT_DISABLED=true in TextMate's shell variables preference pane</div><div>2) Remove (or rename) tm_interactive_input.dylib, which is located somewhere in your support path (refer to thread to see where I found my copies).</div><div><br></div><div>Best,</div><div>-Tony</div></body></html>