For my
Windows XP machine, I downloaded enthon-python2.4-1.0.0.exe and
matplotlib-0.87.5.win32-py2.4.exe. I installed python first (it's
version 2.4.3) via the Enthought executable; it installed fine with no
errors. Then matplotlib installed fine with no errors. I installed the matplotlib_examples_0.87.1.zip examples and tried to run the barchart_demo.py script; here's the error message I got: RuntimeError: module compiled against version 1000002 of C-API but this version of numpy is 90907 The import of the numpy version of the nxutils module, _nsnxutils, failed. This is is either because numpy was unavailable when matplotlib was compiled, because a dependency of _nsnxutils could not be satisfied, or because the build flag for this module was turned off in setup.py. If it appears that _nsnxutils 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 "barchart_demo.py", line 3, in ? from pylab import * File "C:\bin\PYTHON~1\Lib\site-packages\pylab.py", line 1, in ? from matplotlib.pylab import * File "C:\bin\PYTHON~1\Lib\site-packages\matplotlib\pylab.py", line 198, in ? import mlab #so I can override hist, psd, etc... File "C:\bin\PYTHON~1\Lib\site-packages\matplotlib\mlab.py", line 64, in ? import nxutils File "C:\bin\PYTHON~1\Lib\site-packages\matplotlib\nxutils.py", line 17, in ? from matplotlib._ns_nxutils import * ImportError: numpy.core.multiarray failed to import The following shows I can import numpy OK: --> python Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2 2006, 12:09:59) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from numpy import * >>> I would very much like to be able to use matplotlib, as it looks much better suited to my needs than gnuplot. Any ideas on how to address this problem? |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users