On Nov 9, 2007 1:08 PM, Don Peterson <donp@...> wrote:
> Note: I had been using the Enthought edition of python (2.4.3 version of
> python) and matplotlib and everything worked great. I then tried to
> install the map addition to matplotlib and the installation failed. After
> that, I started getting the import error on gobject, which I assume is
> something from GTK.
> Does anyone have any suggestions on how to fix this? I'm pretty helpless
> right now without matplotlib, as I use it to generate graphs for a
> technical document I'm writing.
For some reason, your backend is being set to GTKAgg, though this
should not be the default on windows. If you want to use GTK, you can
install pygtk which has a win32 installer. But more likely, you don't
want this, so you need to find your matplotlib rc file and change the
backend bariable o TkAgg (i you ant to use TkInter) or WXAgg (if you
want to use wxpython). If you are usin the enthought tools, you may
want to consider WxAgg since many of their tools work with wx.
The easiest way to find your matplotlib rc file is to run a simple
script that imports pylab with the --verbose-helpful flag, eg
> python myscript.py --verbose-helpful
and it will print a line telling you the path to the matplotlib rc
file. Change the backend line from GTKAgg to the desired backend.