I am trying to compile matplotlib in order to use numpy as the numerix
option. I can apt-get a version of it which works, but it does not seem to
I also compiled numpy-1.0rc1 (released 2 weeks ago), and it works fine in
python. However, when I import matplotlib (0.87.6), I get the error
message below. A quick internet search suggests to me that it is some kind
of mismatch in libraries, possibly caused by compiler differences in g++ 4
(numpy at least seems to use g++.. so I tried a different g++ version,
but it made no difference).
Does someone have an idea what the problem is, or what I could try?
The import of the numpy version of the _transforms module,
_ns_transforms, failed. This is is either because numpy was
unavailable when matplotlib was compiled, because a dependency of
_ns_transforms could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_ns_transforms was not built, make sure you have a working copy of
numpy and then re-install matplotlib. Otherwise, the following
traceback gives more details:
Traceback (most recent call last):
File "/usr/bin/ipython", line 28, in ?
File "/usr/lib/python2.4/site-packages/IPython/Shell.py", line 883, in
File "/usr/lib/python2.4/site-packages/IPython/Shell.py", line 810, in
File "/usr/lib/python2.4/site-packages/IPython/Shell.py", line 618, in
File "/usr/lib/python2.4/site-packages/IPython/ipmaker.py", line 85, in
IP = shell_class('__IP',user_ns=user_ns,**kw)
File "/usr/lib/python2.4/site-packages/IPython/Shell.py", line 500, in
user_ns,b2 = self._matplotlib_config(name)
File "/usr/lib/python2.4/site-packages/IPython/Shell.py", line 373, in
from matplotlib import backends
line 55, in ?
new_figure_manager, draw_if_interactive, show = pylab_setup()
line 23, in pylab_setup
line 8, in ?
from matplotlib.figure import Figure
File "/usr/lib/python2.4/site-packages/matplotlib/figure.py", line 5, in ?
from artist import Artist
File "/usr/lib/python2.4/site-packages/matplotlib/artist.py", line 4, in ?
from transforms import identity_transform
File "/usr/lib/python2.4/site-packages/matplotlib/transforms.py", line
223, in ?
from _transforms import Value, Point, Interval, Bbox, Affine
File "/usr/lib/python2.4/site-packages/matplotlib/_transforms.py", line
17, in ?
from matplotlib._ns_transforms import *