[TxMt] Re: running python script with matplotlib

Tony S Yu tsyu80 at gmail.com
Mon Jul 5 17:56:44 UTC 2010

On Jul 5, 2010, at 12:02 PM, Claus wrote:

> Hi, 
> this is weird, and I know it has worked a couple of days ago. I am puzzled and not sure what to check anymore.
> I am running the MacPorts Python installation
> 	which python 
> in terminal gives
> 	/opt/local/bin/python
> In Textmate, I have the following Shell Variables set:
> TM_PYTHON = /opt/local/bin/python
> PYTHONPATH = /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
> When I run the script shown below from terminal using
> python testscript.py
> the matplotlib window pops up, and all is good. 
> 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.

I ran into similar troubles with matplotlib:

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:
1) Set TM_INTERACTIVE_INPUT_DISABLED=true in TextMate's shell variables preference pane
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).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100705/b7b25794/attachment.html>

More information about the textmate mailing list