[TxMt] matplotlib - Re: textmate Digest, Vol 20, Issue 11

Claus clausenator at gmail.com
Mon Jan 11 09:44:07 UTC 2010


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 at lists.macromates.com wrote:
> Message: 6
> Date: Sun, 10 Jan 2010 15:59:02 +0100
> From: Allan Odgaard <mailinglist at textmate.org>
> Subject: [TxMt] Re: still problems with matplotlib
> To: TextMate users <textmate at lists.macromates.com>
> Message-ID: <4DF5B26D-1A4B-4F45-89E7-94A5C7DF9A17 at 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.
> 
> ------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100111/816c1a9b/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python_1812.LBvCby.sample.txt
URL: <http://lists.macromates.com/textmate/attachments/20100111/816c1a9b/attachment.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100111/816c1a9b/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python_1835.e3QSP3.sample.txt
URL: <http://lists.macromates.com/textmate/attachments/20100111/816c1a9b/attachment-0001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100111/816c1a9b/attachment-0002.html>


More information about the textmate mailing list