[!SPAM?:XXXII] Re: matplotlib: no interactive backends appear
to work
John Owens
john_owens at yahoo.com
Sat Jan 26 21:07:24 PST 2008
Jochen Küpper <jochen <at> fhi-berlin.mpg.de> writes:
>
> Then GTKagg works for me with python25, at least mostly.
I installed gtk2, py-gtk2, py25-gtk hoping that would
help. Alas. All of the gtk backends fail with 'no
module named _ns_backend_gdk'. Also as best I can tell,
py-gtk2 and py25-gtk can't coexist.
JDO
classico 180$ python2.5 test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pylab import *
File "/opt/local/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/opt/local/lib/python2.5/site-packages/matplotlib/pylab.py", line 222,
in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/opt/local/lib/python2.5/site-packages/matplotlib/backends/__init__.py",
line 24, in pylab_setup
globals(),locals(),[backend_name])
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtkcairo.py",
line 10, in <module>
from matplotlib.backends.backend_gtk import *
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py",
line 21, in <module>
from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gdk.py",
line 35, in <module>
from matplotlib.backends._ns_backend_gdk import pixbuf_get_pixels_array
ImportError: No module named _ns_backend_gdk
classico 181$ python2.5 test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pylab import *
File "/opt/local/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/opt/local/lib/python2.5/site-packages/matplotlib/pylab.py", line 222,
in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/opt/local/lib/python2.5/site-packages/matplotlib/backends/__init__.py",
line 24, in pylab_setup
globals(),locals(),[backend_name])
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py",
line 21, in <module>
from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gdk.py",
line 35, in <module>
from matplotlib.backends._ns_backend_gdk import pixbuf_get_pixels_array
ImportError: No module named _ns_backend_gdk
classico 182$ python2.5 test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pylab import *
File "/opt/local/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/opt/local/lib/python2.5/site-packages/matplotlib/pylab.py", line 222,
in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/opt/local/lib/python2.5/site-packages/matplotlib/backends/__init__.py",
line 24, in pylab_setup
globals(),locals(),[backend_name])
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtkagg.py",
line 10, in <module>
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,\
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gtk.py",
line 21, in <module>
from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
File
"/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_gdk.py",
line 35, in <module>
from matplotlib.backends._ns_backend_gdk import pixbuf_get_pixels_array
ImportError: No module named _ns_backend_gdk
More information about the macports-users
mailing list