Hi,
I'm new with matplotlib and
I'm trying to embed matplotlib objects into pygtk.
I tried different backend imports (GTKAgg, GTK, GTKCairo) and always get the same error (attached below) referring to the missing _backend_gdk package.
I work with MAC os x 10.6, python 2.6, pygtk2, matplotlib 0.99.1.1, all installed via macports , even though I tried to install matplotlib from source via the setup.py script and I get exactely the same problem.
Could you help?
Many thans in advance,
Federico
···
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/Volumes/froncaro/LINAC4/SOURCE/python/maplotlib_test.py in <module>()
9 #from matplotlib.backends.backend_gtk import FigureCanvasGTK, NavigationToolbar
10
---> 11 from matplotlib.backends.backend_gtkcairo import FigureCanvasGTKCairo as FigureCanvas
12
13
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtkcairo.py in <module>()
8
9 from matplotlib.backends import backend_cairo
---> 10 from matplotlib.backends.backend_gtk import *
11
12 backend_version = 'PyGTK(%d.%d.%d) ' % gtk.pygtk_version + \
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py in <module>()
23 from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
24 FigureManagerBase, FigureCanvasBase, NavigationToolbar2, cursors
---> 25 from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
26 from matplotlib.cbook import is_string_like, is_writable_file_like
27 from matplotlib.colors import colorConverter
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gdk.py in <module>()
27 from matplotlib.mathtext import MathTextParser
28 from matplotlib.transforms import Affine2D
---> 29 from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
30
31
ImportError: No module named _backend_gdk