GTk backend problem

Hello,

I recently upgraded to Enthought python 2.6 an so I have now matplotlib
0.99.3

My scripts now no longer seem to find the pyGTK since when I run them I
got this message:

Traceback (most recent call last):

File “./sed_plotb_v2.py”, line 14, in

from pylab import *

File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pylab.py”,
line 1, in

from matplotlib.pylab import *

File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pylab.py”,
line 247, in

from matplotlib.pyplot import *

File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pyplot.py”,
line 78, in

new_figure_manager, draw_if_interactive, show = pylab_setup()

File “init.py”, line 25, in pylab_setup
globals(),locals(),[backend_name])
File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py”,
line 10, in
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,
File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py”,
line 11, in
raise ImportError(“Gtk* backend requires pygtk to be installed.”)
ImportError: Gtk* backend requires pygtk to be installed.
is any way to help matplotlib to point the where pyGTK is or go around
the problem with another backend?
Thanks,
Nino
Hello,
I recently upgraded to Enthought python 2.6 an so I have now matplotlib
0.99.3
My scripts now no longer seem to find the pyGTK since when I run them I
got this message:
Traceback (most recent call last):
File “./sed_plotb_v2.py”, line 14, in
from pylab import *
File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pylab.py”,
line 1, in
from matplotlib.pylab import *
File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pylab.py”,
line 247, in
from matplotlib.pyplot import *
File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/pyplot.py”,
line 78, in
new_figure_manager, draw_if_interactive, show = pylab_setup()
File “init.py”, line 25, in pylab_setup
globals(),locals(),[backend_name])
File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py”,
line 10, in
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,
File
“/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py”,
line 11, in
raise ImportError(“Gtk* backend requires pygtk to be installed.”)
ImportError: Gtk* backend requires pygtk to be installed.
is any way to help matplotlib to point the where pyGTK is or go around
the problem with another backend?
Changing the matplotlibrc to TKAgg works fine though.
Thanks,
Nino

···

Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends//
Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/matplotlib/backends//


-- Antonino Cucchiara, PhD
Postdoctoral Scholar
Lawrence Berkeley National Lab
UC Berkeley
website:

www.astro.psu.edu/~cucchiara/

2010/8/9 Antonino Cucchiara <acucchiara@...1352...>:

Hello,
I recently upgraded to Enthought python 2.6 an so I have now matplotlib
0.99.3
My scripts now no longer seem to find the pyGTK since when I run them I got
this message:

[...]

Where was your original pygtk installed, and what was your previous
Python version (and installation location, if you can provide)? I
think pygtk is compiled against Python, so it cannot be simply copied
over. How did you install pyGTK before?

Friedrich