After that the build and install went smoothly. But now
> if I try to import pylab I get the following error:
> pixbuf_get_pixels_array ImportError: No module named
> As far as I can see it is still trying to use some
This is a bit of annoyance in the mpl setup. The backend that is
chosen at runtime is determined by the rc file (see
http://matplotlib.sf.net/.matplotlibrc) and the default backend in the
rc file is GTKAgg. Even if you turn GTK compilation off in setup.py,
the rc file still determines which backend is selected. You need to
copy that file from its default location (eg
/usr/share/matplotlib/.matplotlibrc) to your HOME directory and edit
the 'backend' setting to something else, eg TkAgg, WXAgg or QtAgg.
While debugging, it is helpful to create a simple script like
and run it with
> python myscript.py --verbose-helpful
which will show you which rc file is being loaded, which backend is
selected, what mpl version you are using, and so on.
PS: the bug in pygtk2.4 in fedora core 3 is quite ease to fix. You
simply have to replace typename with another name like typename_ or
some other name as described in the FAQ.