I discovered I actually did have python2.5-dev (just not a python-dev version
2.5!).
I compiled and ran the code, but I'm getting errors like:
In [2]: import matplotlib.pyplot as plt
---
ImportError Traceback (most recent call last)
/home/maximus/ipython console in module()
/usr/lib/python2.5/site-packages/matplotlib/pyplot.py in module()
2
3 import matplotlib
4 from matplotlib import _pylab_helpers, interactive
5 from matplotlib.cbook import dedent, silent_list, is_string_like,
is_numlike
6 from matplotlib.figure import Figure, figaspect
ImportError: cannot import name interactive
I get errors like this too:
from pylab import *
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python2.5/site-packages/matplotlib/pylab.py, line 201, in
module
from cbook import flatten, is_string_like, exception_to_str, popd, \
File /usr/lib/python2.5/site-packages/matplotlib/cbook.py, line 6, in
module
import re, os, errno, sys, StringIO, traceback, locale, threading, types
File /usr/lib/python2.5/threading.py, line 13, in module
from collections import deque
File /usr/lib/python2.5/site-packages/matplotlib/collections.py, line 15,
in module
import matplotlib.cbook as cbook
File /usr/lib/python2.5/site-packages/matplotlib/cbook.py, line 158, in
module
class Scheduler(threading.Thread):
AttributeError: 'module' object has no attribute 'Thread'
When I built, I got a bunch of warnings:
maxi...@maximus-laptop:/usr/lib/python2.5/site-packages/matplotlib$ sudo python
setup.py build ~/matplotliberr.txt
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from ./CXX/Extensions.hxx:68,
from src/ft2font.h:4,
from src/ft2font.cpp:1:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This
file includes at least one deprecated or antiquated header which may be removed
without further notice at a future date. Please use a non-deprecated interface
with equivalent functionality instead. For a listing of replacement headers and
interfaces, consult the file backward_warning.h. To disable this warning use
-Wno-deprecated.
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from ./CXX/Extensions.hxx:68,
from CXX/cxx_extensions.cxx:37:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This
file includes at least one deprecated or antiquated header which may be removed
without further notice at a future date. Please use a non-deprecated interface
with equivalent functionality instead. For a listing of replacement headers and
interfaces, consult the file backward_warning.h. To disable this warning use
-Wno-deprecated.
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp: In member function ‘bool
VoronoiDiagramGenerator::voronoi(int)’:
lib/matplotlib/delaunay/VoronoiDiagramGenerator.cpp:923: warning:
‘newintstar.Point::y’ may be used uninitialized in this function
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option -Wstrict-prototypes is valid for