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
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 src/path.cpp:8:
/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.
src/path.cpp: In function ‘void clip_to_rect(PathIterator&, double, double,
double, double, bool, std::vector<std::vector<XY, std::allocator<XY> >,
std::allocator<std::vector<XY, std::allocator<XY> > > >&)’:
src/path.cpp:824: warning: ‘y’ may be used uninitialized in this function
src/path.cpp:824: warning: ‘x’ may be used uninitialized in this function
agg24/include/agg_conv_curve.h: In member function ‘unsigned int
agg::conv_curve<VertexSource, Curve3, Curve4>::vertex(double*, double*) [with
VertexSource = PathIterator, Curve3 = agg::curve3, Curve4 = agg::curve4]’:
agg24/include/agg_conv_curve.h:160: warning: ‘end_y’ may be used uninitialized
in this function
agg24/include/agg_conv_curve.h:159: warning: ‘end_x’ may be used uninitialized
in this function
agg24/include/agg_conv_curve.h:158: warning: ‘ct2_y’ may be used uninitialized
in this function
agg24/include/agg_conv_curve.h:157: warning: ‘ct2_x’ 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++
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/backend_agg.cpp:10:
/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.
In file included from src/backend_agg.cpp:37:
src/swig_runtime.h: In function ‘void SWIG_Python_AddErrorMsg(const char*)’:
src/swig_runtime.h:859: warning: format not a string literal and no format
arguments
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/_image.h:13,
from src/image.cpp:33:
/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++
In file included from /usr/include/c++/4.3/ext/hash_map:64,
from ./CXX/Extensions.hxx:68,
from src/_png.cpp:9:
/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.
src/_png.cpp: In member function ‘Py::Object _png_module::read_png(const
Py::Tuple&)’:
src/_png.cpp:275: warning: comparison between signed and unsigned integer
expressions
src/_png.cpp:279: warning: comparison between signed and unsigned integer
expressions
Thanks!
-Max
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users