Allan Odgaard wrote:
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.
I'm having the same problem as Claus; removing tm_interactive_input.dylib did not help on my system either.
This problem can be reproduced with the following 2 lines:
import matplotlib.pyplot as plt plt.plot([0,1])
Unfortunately, the script doesn't appear in the list of processes displayed by "ps", but it shows up as a Python process that's "not responding" in the Quit Applications menu (Command-Option-Escape) and Activity Monitor.
Claus; to answer your earlier question (off list): I'm relatively certain this issue is not related to your particular install of matplotlib. I've tried older revisions of Matplotlib (where previously, I did not observe this issue) and they now exhibit this issue.
I noticed this issue shortly after updating to TextMate r1589 (automatic "cutting-edge" update) and OS X 10.6.2 (minor version update): both around the same time. Is there a way to revert to an older revision of TextMate to see if this issue was caused by something in the update?
Also of note: A friend of mine has the same issue, but, only on his machine running 10.6---another machine runs 10.5 and does not have this issue.
-Tony
I was having this problem as well but removing the dylib file corrected it on my system.
The sample script is now working: http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples...
I just installed scipy superpack today
TextMate (CE), 10.6.2. , Python 2.6.1
MP
On 2010-01-13, at 2:32 PM, Tony S Yu wrote:
Allan Odgaard wrote:
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.
I'm having the same problem as Claus; removing tm_interactive_input.dylib did not help on my system either.
This problem can be reproduced with the following 2 lines:
import matplotlib.pyplot as plt plt.plot([0,1])
Unfortunately, the script doesn't appear in the list of processes displayed by "ps", but it shows up as a Python process that's "not responding" in the Quit Applications menu (Command-Option-Escape) and Activity Monitor.
Claus; to answer your earlier question (off list): I'm relatively certain this issue is not related to your particular install of matplotlib. I've tried older revisions of Matplotlib (where previously, I did not observe this issue) and they now exhibit this issue.
I noticed this issue shortly after updating to TextMate r1589 (automatic "cutting-edge" update) and OS X 10.6.2 (minor version update): both around the same time. Is there a way to revert to an older revision of TextMate to see if this issue was caused by something in the update?
Also of note: A friend of mine has the same issue, but, only on his machine running 10.6---another machine runs 10.5 and does not have this issue.
-Tony
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Feb 9, 2010, at 4:14 PM, Mark Perrin wrote:
I was having this problem as well but removing the dylib file corrected it on my system.
The sample script is now working: http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples...
I just installed scipy superpack today
TextMate (CE), 10.6.2. , Python 2.6.1
MP
Strange. I tried removing the dylib file again from both of the following directories:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Nevertheless, python still hangs on plot calls. Just out of curiosity, did you upgrade from 10.5 to 10.6, or do you have a clean install of 10.6. (I'm just grasping at straws at this point.)
-Tony
On 2010-01-13, at 2:32 PM, Tony S Yu wrote:
Allan Odgaard wrote:
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.
I'm having the same problem as Claus; removing tm_interactive_input.dylib did not help on my system either.
This problem can be reproduced with the following 2 lines:
import matplotlib.pyplot as plt plt.plot([0,1])
Unfortunately, the script doesn't appear in the list of processes displayed by "ps", but it shows up as a Python process that's "not responding" in the Quit Applications menu (Command-Option-Escape) and Activity Monitor.
Claus; to answer your earlier question (off list): I'm relatively certain this issue is not related to your particular install of matplotlib. I've tried older revisions of Matplotlib (where previously, I did not observe this issue) and they now exhibit this issue.
I noticed this issue shortly after updating to TextMate r1589 (automatic "cutting-edge" update) and OS X 10.6.2 (minor version update): both around the same time. Is there a way to revert to an older revision of TextMate to see if this issue was caused by something in the update?
Also of note: A friend of mine has the same issue, but, only on his machine running 10.6---another machine runs 10.5 and does not have this issue.
-Tony
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Jan 13, 2010, at 11:32 AM, Tony S Yu wrote:
import matplotlib.pyplot as plt plt.plot([0,1])
If I remove the interactive input dylib and add a call to “plt.show()”, this script works. Actually, this script doesn't even work from Terminal unless I'm in interactive mode with python. This is because “plot” is non-blocking, it just draws the plot in the window, and returns. Python then exits, and the window disappears. The “show” *is* blocking, so python remains running until you close the window. In interactive python you don't need the call to show, because python is going to block waiting for user input anyway.
As for why the dylib breaks matplotlib, I'm not exactly sure yet. Looking into it…
—Alex
On Feb 9, 2010, at 7:40 PM, Alex Ross wrote:
On Jan 13, 2010, at 11:32 AM, Tony S Yu wrote:
import matplotlib.pyplot as plt plt.plot([0,1])
If I remove the interactive input dylib and add a call to “plt.show()”, this script works. Actually, this script doesn't even work from Terminal unless I'm in interactive mode with python. This is because “plot” is non-blocking, it just draws the plot in the window, and returns. Python then exits, and the window disappears. The “show” *is* blocking, so python remains running until you close the window. In interactive python you don't need the call to show, because python is going to block waiting for user input anyway.
As for why the dylib breaks matplotlib, I'm not exactly sure yet. Looking into it…
Actually, on my system, I have issues before even calling plt.show(). The example above (w/o plt.show) should quit without showing any sort of plot, but on my system, python/textmate just hangs. The hanging happens regardless of whether or not I call plt.show.
Since both you and Mark (see previous reply) can get around this issue by removing dylib but I can't, either there are two different issues or I have tm_interactive_input.dylib in some as-yet-undiscovered location. So far I've removed the dylib from:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Is this file copied or cached anywhere else? (I've already searched with Finder and the locate command.)
-Tony
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Feb 9, 2010, at 6:16 PM, Tony S Yu wrote:
On Feb 9, 2010, at 7:40 PM, Alex Ross wrote:
On Jan 13, 2010, at 11:32 AM, Tony S Yu wrote:
import matplotlib.pyplot as plt plt.plot([0,1])
If I remove the interactive input dylib and add a call to “plt.show()”, this script works. Actually, this script doesn't even work from Terminal unless I'm in interactive mode with python. This is because “plot” is non-blocking, it just draws the plot in the window, and returns. Python then exits, and the window disappears. The “show” *is* blocking, so python remains running until you close the window. In interactive python you don't need the call to show, because python is going to block waiting for user input anyway.
As for why the dylib breaks matplotlib, I'm not exactly sure yet. Looking into it…
Actually, on my system, I have issues before even calling plt.show(). The example above (w/o plt.show) should quit without showing any sort of plot, but on my system, python/textmate just hangs. The hanging happens regardless of whether or not I call plt.show.
Since both you and Mark (see previous reply) can get around this issue by removing dylib but I can't, either there are two different issues or I have tm_interactive_input.dylib in some as-yet-undiscovered location. So far I've removed the dylib from:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Is this file copied or cached anywhere else? (I've already searched with Finder and the locate command.)
Can you use Activity Monitor to sample the hung process?
The dylib could also been in: /Library/Application\ Support/TextMate/Support/lib/
On Feb 9, 2010, at 9:25 PM, Alex Ross wrote:
On Feb 9, 2010, at 6:16 PM, Tony S Yu wrote:
Actually, on my system, I have issues before even calling plt.show(). The example above (w/o plt.show) should quit without showing any sort of plot, but on my system, python/textmate just hangs. The hanging happens regardless of whether or not I call plt.show.
Since both you and Mark (see previous reply) can get around this issue by removing dylib but I can't, either there are two different issues or I have tm_interactive_input.dylib in some as-yet-undiscovered location. So far I've removed the dylib from:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Is this file copied or cached anywhere else? (I've already searched with Finder and the locate command.)
Can you use Activity Monitor to sample the hung process?
Yes, I can. I get back a ridiculously call graph, but I'm not sure if it's actually helpful (but, then again I don't really know what I'm looking at). If it'd be helpful, I could post the full graph somewhere.
The dylib could also been in: /Library/Application\ Support/TextMate/Support/lib/
Thanks for the suggestion. Unfortunately, there wasn't a copy of the dylib there.
-Tony
On Feb 9, 2010, at 8:01 PM, Tony S Yu wrote:
On Feb 9, 2010, at 9:25 PM, Alex Ross wrote:
On Feb 9, 2010, at 6:16 PM, Tony S Yu wrote:
Actually, on my system, I have issues before even calling plt.show(). The example above (w/o plt.show) should quit without showing any sort of plot, but on my system, python/textmate just hangs. The hanging happens regardless of whether or not I call plt.show.
Since both you and Mark (see previous reply) can get around this issue by removing dylib but I can't, either there are two different issues or I have tm_interactive_input.dylib in some as-yet-undiscovered location. So far I've removed the dylib from:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Is this file copied or cached anywhere else? (I've already searched with Finder and the locate command.)
Can you use Activity Monitor to sample the hung process?
Yes, I can. I get back a ridiculously call graph, but I'm not sure if it's actually helpful (but, then again I don't really know what I'm looking at). If it'd be helpful, I could post the full graph somewhere.
Yes, if you could post it that would (could?) be helpful.
On Feb 9, 2010, at 11:05 PM, Alex Ross wrote:
On Feb 9, 2010, at 8:01 PM, Tony S Yu wrote:
On Feb 9, 2010, at 9:25 PM, Alex Ross wrote:
On Feb 9, 2010, at 6:16 PM, Tony S Yu wrote:
Actually, on my system, I have issues before even calling plt.show(). The example above (w/o plt.show) should quit without showing any sort of plot, but on my system, python/textmate just hangs. The hanging happens regardless of whether or not I call plt.show.
Since both you and Mark (see previous reply) can get around this issue by removing dylib but I can't, either there are two different issues or I have tm_interactive_input.dylib in some as-yet-undiscovered location. So far I've removed the dylib from:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Is this file copied or cached anywhere else? (I've already searched with Finder and the locate command.)
Can you use Activity Monitor to sample the hung process?
Yes, I can. I get back a ridiculously call graph, but I'm not sure if it's actually helpful (but, then again I don't really know what I'm looking at). If it'd be helpful, I could post the full graph somewhere.
Yes, if you could post it that would (could?) be helpful.
Done: http://pastie.textmate.org/817687
Just to be clear, this graph is using Qt as the backend for Matplotlib, but the error also occurs when using Tk or the native OSX backends.
Thanks for your help, -Tony
On Feb 9, 2010, at 8:14 PM, Tony S Yu wrote:
On Feb 9, 2010, at 11:05 PM, Alex Ross wrote:
On Feb 9, 2010, at 8:01 PM, Tony S Yu wrote:
On Feb 9, 2010, at 9:25 PM, Alex Ross wrote:
On Feb 9, 2010, at 6:16 PM, Tony S Yu wrote:
Actually, on my system, I have issues before even calling plt.show(). The example above (w/o plt.show) should quit without showing any sort of plot, but on my system, python/textmate just hangs. The hanging happens regardless of whether or not I call plt.show.
Since both you and Mark (see previous reply) can get around this issue by removing dylib but I can't, either there are two different issues or I have tm_interactive_input.dylib in some as-yet-undiscovered location. So far I've removed the dylib from:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Is this file copied or cached anywhere else? (I've already searched with Finder and the locate command.)
Can you use Activity Monitor to sample the hung process?
Yes, I can. I get back a ridiculously call graph, but I'm not sure if it's actually helpful (but, then again I don't really know what I'm looking at). If it'd be helpful, I could post the full graph somewhere.
Yes, if you could post it that would (could?) be helpful.
This is the same trace I get with the dylib *enabled*, which leads me to believe that you've still got a dylib somewhere. You can make sure it's disabled by setting the variable TM_INTERACTIVE_INPUT_DISABLED=true in TextMate's shell variables preference pane.
TextMate will always use the dylib at $TM_SUPPORT_PATH/lib/tm_interactive_input.dylib. You can find $TM_SUPPORT_PATH by entering “echo $TM_SUPPORT_PATH” in a TextMate document and press CTRL+R to run that line with bash.
If you meant to send me a trace with the dylib enabled, could you also send one with the dylib disabled?
—Alex
On Feb 10, 2010, at 2:46 AM, Alex Ross wrote:
On Feb 9, 2010, at 8:14 PM, Tony S Yu wrote:
On Feb 9, 2010, at 11:05 PM, Alex Ross wrote:
On Feb 9, 2010, at 8:01 PM, Tony S Yu wrote:
On Feb 9, 2010, at 9:25 PM, Alex Ross wrote:
On Feb 9, 2010, at 6:16 PM, Tony S Yu wrote:
Actually, on my system, I have issues before even calling plt.show(). The example above (w/o plt.show) should quit without showing any sort of plot, but on my system, python/textmate just hangs. The hanging happens regardless of whether or not I call plt.show.
Since both you and Mark (see previous reply) can get around this issue by removing dylib but I can't, either there are two different issues or I have tm_interactive_input.dylib in some as-yet-undiscovered location. So far I've removed the dylib from:
~/Library/Application\ Support/TextMate/Support/lib/ /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
Is this file copied or cached anywhere else? (I've already searched with Finder and the locate command.)
Can you use Activity Monitor to sample the hung process?
Yes, I can. I get back a ridiculously call graph, but I'm not sure if it's actually helpful (but, then again I don't really know what I'm looking at). If it'd be helpful, I could post the full graph somewhere.
Yes, if you could post it that would (could?) be helpful.
This is the same trace I get with the dylib *enabled*, which leads me to believe that you've still got a dylib somewhere. You can make sure it's disabled by setting the variable TM_INTERACTIVE_INPUT_DISABLED=true in TextMate's shell variables preference pane.
TextMate will always use the dylib at $TM_SUPPORT_PATH/lib/tm_interactive_input.dylib. You can find $TM_SUPPORT_PATH by entering “echo $TM_SUPPORT_PATH” in a TextMate document and press CTRL+R to run that line with bash.
Alex,
Thanks for all your suggestions. Both of these suggestions worked for me. Setting the environment variable seems to be the easiest solution. Also, your second suggestion allowed me to find a third (and final?) copy of the dylib in:
~/Library/Application Support/TextMate/Pristine Copy/Support/lib/
Thank you for your help and your patience. -Tony
If you meant to send me a trace with the dylib enabled, could you also send one with the dylib disabled?
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate