matplotlib segfault
skip at pobox.com
skip at pobox.com
Thu Mar 6 14:19:52 PST 2008
>> Is another interactive backend supported for matplotlib?
Jochen> I am happily using GTKagg with MacPort's python25 on Leopard.
I tried that but get this traceback:
% /opt/local/bin/python2.5
Python 2.5.2 (r252:60911, Mar 5 2008, 22:37:23)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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 292, in <module>
from matplotlib.pyplot import *
File "/opt/local/lib/python2.5/site-packages/matplotlib/pyplot.py", line 37, 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 29, in <module>
from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
ImportError: No module named _backend_gdk
Given that py25-matplotlib didn't depend on py25-gtk, my guess is that it
wasn't built with Gtk support. How do I do that?
Thx,
--
Skip Montanaro - skip at pobox.com - http://www.webfast.com/~skip/
More information about the macports-users
mailing list