Hi,
I’m trying to run a demo example,
http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/figures/demo_axes_grid.py
ran into this problem saying pygtk was needed:
$ curl http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/figures/demo_axes_grid.py > demo_axes_grid.py
$ python demo_axes_grid.py
Traceback (most recent call last):
File “demo_axes_grid.py”, line 1, in
import matplotlib.pyplot as plt
File “/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/matplotlib/pyplot.py”, line 78, in
new_figure_manager, draw_if_interactive, show = pylab_setup()
File “/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/matplotlib/backends/init.py”, line 25, in pylab_setup
globals(),locals(),[backend_name])
File “/Library/Frameworks/Python.framework/Versions/Current/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/Current/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.
Then I tried to install pygtk:
$ pip install pygtk
Downloading/unpacking pygtk
Running setup.py egg_info for package pygtk
Traceback (most recent call last):
File “”, line 14, in
File “/Users/michaelanderson/root/mikeWork/2010June/temp/build/pygtk/setup.py”, line 22, in
from dsextras import get_m4_define, getoutput, have_pkgconfig, \
ImportError: No module named dsextras
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File “”, line 14, in
File “/Users/michaelanderson/root/mikeWork/2010June/temp/build/pygtk/setup.py”, line 22, in
from dsextras import get_m4_define, getoutput, have_pkgconfig, \
ImportError: No module named dsextras
···
Command python setup.py egg_info failed with error code 1
Storing complete log in /Users/michaelanderson/.pip/pip.log
Ok, then I tried to install dsextras:
$ pip install dsextras
Downloading/unpacking dsextras
Could not find any downloads that satisfy the requirement dsextras
No distributions at all found for dsextras
Storing complete log in /Users/michaelanderson/.pip/pip.log
What is this obscure package (dsextras) and is it really necessary to run the shared axes demo?
Mike