From: Don P. <do...@gd...> - 2006-09-17 23:05:12
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <font size="+1"><font face="Helvetica, Arial, sans-serif">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.<br> <br> 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:<br> <br> </font></font><font size="+1"><tt>RuntimeError: module compiled against version 1000002 of C-API but this version<br> of numpy is 90907<br> <br> The import of the numpy version of the nxutils module,<br> _nsnxutils, failed. This is is either because numpy was<br> unavailable when matplotlib was compiled, because a dependency of<br> _nsnxutils could not be satisfied, or because the build flag for<br> this module was turned off in setup.py. If it appears that<br> _nsnxutils was not built, make sure you have a working copy of<br> numpy and then re-install matplotlib. Otherwise, the following<br> traceback gives more details:<br> <br> Traceback (most recent call last):<br> File "barchart_demo.py", line 3, in ?<br> from pylab import *<br> File "C:\bin\PYTHON~1\Lib\site-packages\pylab.py", line 1, in ?<br> from matplotlib.pylab import *<br> File "C:\bin\PYTHON~1\Lib\site-packages\matplotlib\pylab.py", line 198, in ?<br> import mlab #so I can override hist, psd, etc...<br> File "C:\bin\PYTHON~1\Lib\site-packages\matplotlib\mlab.py", line 64, in ?<br> import nxutils<br> File "C:\bin\PYTHON~1\Lib\site-packages\matplotlib\nxutils.py", line 17, in ?<br> from matplotlib._ns_nxutils import *<br> ImportError: numpy.core.multiarray failed to import<br> <br> </tt></font><font size="+1"><font face="Helvetica, Arial, sans-serif">The following shows I can import numpy OK:<br> <br> </font></font><font size="+1"><tt>--> python<br> Python 2.4.3 - Enthought Edition 1.0.0 (#69, Aug 2 2006, 12:09:59) [MSC v.1310<br> 32 bit (Intel)] on win32<br> Type "help", "copyright", "credits" or "license" for more information.<br> >>> from numpy import *<br> >>></tt></font><font size="+1"><font face="Helvetica, Arial, sans-serif"><br> <br> 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?<br> <br> </font></font> </body> </html> |