installation

Hi,

I' ve just started with matplotlib for the first time. After installation I
get the following error:

from pylab import *

...

/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py
      4 def fn_name(): return sys._getframe(1).f_code.co_name
      5
----> 6 import gobject
      7 import gtk; gdk = gtk.gdk
      8 import pango

ImportError: No module named gobject

If someone has seen this befor, please tell me how to solve the problem...

cheers

Jens

/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py
     4 def fn_name(): return sys._getframe(1).f_code.co_name
     5
----> 6 import gobject
     7 import gtk; gdk = gtk.gdk
     8 import pango

ImportError: No module named gobject

If someone has seen this befor, please tell me how to solve the problem...

looks like for me the gobject module is here:
/usr/lib/python2.3/site-packages/gtk-2.0/gobject.so

so probably you don't have the python gtk-2.0 bindings installed...

you don't mention which distro you use.. but say if it's debian based (or fedora/redhat with apt-get installed), do:

$> apt-cache search pygtk

then

$> apt-get install <pygtk2 package>

... might need pygtk2-devel as well, if you're building matplotlib... can't remember.

cheers,
peter

···

--
Peter Groszkowski Gemini Observatory
Tel: +1 808 9742509 670 N. A'ohoku Place
Fax: +1 808 9359235 Hilo, Hawai'i 96720, USA