From: John H. <jdh...@ac...> - 2003-11-06 17:57:50
|
>>>>> "Flavio" == Flavio C Coelho <fcc...@fi...> writes: Flavio> Thanks a lot John, to my surprise, the example above Flavio> worked perfectly, but if I try that same thing with the Flavio> gtk backend it crashes at the very moment I issue the Flavio> command "from matplotlib.matlab import *" It must really Flavio> be a problem with gtk, I use pygtk 2.0 on a mandrake 9.1 Flavio> linux system. Other apps that use pygtk run without Flavio> problems... What version of pygtk are you running? matplotlib requires 1.99.16. don't know about Mandrake, but Redhat 9 comes with 1.99.14, so it is possible you don't have a recent enough version of pygtk. If you would be willing to install pygtk-2.0.0 (it's just a 'python setup.py install') and let me know if you can run the simple_plot.py example from the command line, and then let me know if the crash goes away in pycrust and Boaconstructor. ftp://ftp.gtk.org/pub/gtk/python/v2.0/pygtk-2.0.0.tar.gz Flavio> Why do you have to import matplotlib and matplotlib.matlab Flavio> separately? the first import is not a problem on my Flavio> system. only the second crashes gtk-based tools (it Flavio> crashes Boa-constructor too) This is the way to select among various backends (PS, GD, GTK, WX) that the matlab module uses. It can only use one, so you have to select it before you import the matplotlib.matlab module. JDH |