[TxMt] still problems with matplotlib

0 views
Skip to first unread message

Claus

unread,
Jan 10, 2010, 8:04:15 AM1/10/10
to text...@lists.macromates.com
Message: 3
Date: Sat, 9 Jan 2010 17:20:24 +0100
From: Allan Odgaard <maili...@textmate.org>
Subject: [TxMt] Re: textmate and matplotlib
To: TextMate users <text...@lists.macromates.com>
Message-ID: <D146CDDD-8300-445F...@textmate.org>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
delsp=yes
On 8 Jan 2010, at 14:44, Claus wrote:

I can execute scripts that contain matplotlib code perfectly well  
from the command line (this one http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/scatter_hist.py 
for example), but when I run them from within TextMate, python  
keeps running endlessly, no error.

This could be caused by the interactive input library we inject into  
Python (or the enabling of a flat namespace for the linker, whcih a  
Python library has previously been incompatible with).

The easy fix is to:

   rm /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ 
tm_interactive_input.dylib

There is also an environment variable you can set, but I can?t find it  
ATM (away from my regular machine), I?ll have the troubleshooting  
pages updated with this info.

I removed the tm_interactive_input.dylib, however TM (python bundle -- run script) is still keeps running for a long time until I "stop task", no error message.

Does anybody have other ideas?
Thank you,
Claus

Allan Odgaard

unread,
Jan 10, 2010, 9:59:02 AM1/10/10
to TextMate users
On 10 Jan 2010, at 14:04, Claus wrote:

> I removed the tm_interactive_input.dylib, however TM (python bundle
> -- run script) is still keeps running for a long time until I "stop
> task", no error message.
>
> Does anybody have other ideas?

Run ps/pstree to see if Python is running.

Use ‘sample «pid»’ to sample the python process, that might give an
idea of why it is stalling.

Try minimize your script to the smallest possible that can reproduce
the problem.

_______________________________________________
textmate mailing list
text...@lists.macromates.com
http://lists.macromates.com/listinfo/textmate

Reply all
Reply to author
Forward
0 new messages