The simplest "program" is two lines long -- the problems are related to matplotlib only: import matplotlib.pyplot as plt plt.figure()
I set the environment variable TM_PYTHON to /sw/bin/python In Terminal, "which ipython" returns /sw/bin/ipython If I execute both lines in ipython, the matplotlib window pops up, as expected. While my two-line script is running in TextMate, ps -Am returns two (why two?) python processes: 1835 ?? 0:00.83 /sw/bin/python -u /Users/claushaslauer/Desktop/present work/test/mtplTest.py 1812 ?? 0:00.89 /sw/bin/python -u /Users/claushaslauer/Desktop/present work/test/mtplTest.py
sampling those two processes results in essentially identical files, only difference is the number in front of each line. I attached both files, because I can't interpret them.
For matplotlib: In [3]: matplotlib.__version__ Out[3]: '1.0.svn' installed via http://macinscience.org/?page_id=6
Does this point to any issue? Thanks, Claus
On 2010-01-10, at 4:35 PM, textmate-request@lists.macromates.com wrote:
Message: 6 Date: Sun, 10 Jan 2010 15:59:02 +0100 From: Allan Odgaard mailinglist@textmate.org Subject: [TxMt] Re: still problems with matplotlib To: TextMate users textmate@lists.macromates.com Message-ID: 4DF5B26D-1A4B-4F45-89E7-94A5C7DF9A17@textmate.org Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes
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.