|
From: Chris S <chr...@gm...> - 2006-10-23 20:24:44
|
I've spent the last 3 hours trying to install Matplotlib 0.87.6 on
Windows, with no luck. The main problem I've run into is finding a
compatible version of Numeric/Numarry/Numpy to use, and unfortanately
the website doesn't mention this detail.
I've tried installing numpy-1.0, 0.9.8, and 0.9.6, and I get some
variation of the error below when I try to import matplotlib. What
version of Numpy should Matplotlib work with?
Regards,
Chris Spencer
RuntimeError: module compiled against version 1000002 of C-API but
this version of numpy is 90709
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:
RuntimeError: module compiled against version 1000002 of C-API but
this version of numpy is 90709
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:
E
======================================================================
ERROR: testXOGame (__main__.TestSequenceFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_reasoning.py", line 38, in testXOGame
frame.graph(all=True)
File "z:\testing\poe\model\reasoning\reasoning.py", line 446, in graph
import pylab as P
File "C:\Program Files\Python24\Lib\site-packages\pylab.py", line 1, in ?
from matplotlib.pylab import *
File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\pylab.py", line 199, in ?
import mlab #so I can override hist, psd, etc...
File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\mlab.py", line 64, in ?
import nxutils
File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\nxutils.py", line 17, in ?
from matplotlib._ns_nxutils import *
ImportError: numpy.core.multiarray failed to import
|
|
From: John H. <jdh...@ac...> - 2006-10-23 20:32:04
|
>>>>> "Chris" == Chris S <chr...@gm...> writes:
Chris> I've spent the last 3 hours trying to install Matplotlib
Chris> 0.87.6 on Windows, with no luck. The main problem I've run
Chris> into is finding a compatible version of
Chris> Numeric/Numarry/Numpy to use, and unfortanately the website
Chris> doesn't mention this detail.
Chris> I've tried installing numpy-1.0, 0.9.8, and 0.9.6, and I
Chris> get some variation of the error below when I try to import
Chris> matplotlib. What version of Numpy should Matplotlib work
Chris> with?
Chris> Regards, Chris Spencer
Chris> RuntimeError: module compiled against version 1000002 of
Chris> C-API but this version of numpy is 90709
I think that 97.6 was compiled against 1.0rc2 but Charlie Moad is the
authority on this since he did the compile. I have added this "news
flash" to the site
The latest matplotlib for windows was compiled with numpy
1.0rc2. Please do not upgrade matplotlib for windows if you are
running the latest numpy 1.0rc3. Check back soon as we hope to get a
binary build for the latest numpy ASAP. You can check your numpy
version by doing
>>> import numpy
>>> print numpy.__version
Note, the latest matplotlib compiles and runs fine against the
latest numpy -- this only affects binary builds such as the windows
installer.
|
|
From: Chris S <chr...@gm...> - 2006-10-23 20:53:52
|
> I think that 97.6 was compiled against 1.0rc2 but Charlie Moad is the > authority on this since he did the compile. I have added this "news > flash" to the site Ok, thanks. I suspected that, but since even Google isn't able to find an rc2 binary, I guess my only option is to wait for a compatible Matplotlib to be released. On a loosely-related topic, I originally tried upgrading to try out pylab.quiver. In earlier versions, the arrows drawn by quiver could not be properly scaled and were rendered at a huge size. Do you know if this was a registered bug, and if it's been fixed? Regards, Chris |
|
From: Andrea G. <and...@gm...> - 2006-10-23 20:58:20
|
Hi Chris, > Ok, thanks. I suspected that, but since even Google isn't able to find > an rc2 binary, I guess my only option is to wait for a compatible > Matplotlib to be released. Try here: http://prdownloads.sourceforge.net/numpy/numpy-1.0rc2.win32-py2.4.exe?download Or, for Python 2.5: http://prdownloads.sourceforge.net/numpy/numpy-1.0rc2.win32-py2.5.exe?download Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.virgilio.it/infinity77/ |
|
From: Charlie M. <cw...@gm...> - 2006-10-24 01:06:15
|
The latest word on the numpy list is that numpy-1.0 is coming out on Wednesday. I suggest waiting until the final 1.0 release is out before we do a new matplotlib build. I will try to push a build asap after that. Are there any show stoppers lingering that would delay a release? I would also suggest we refrain from any major commits. Charlie |
|
From: Eric F. <ef...@ha...> - 2006-10-24 01:48:29
|
Chris S wrote: >> I think that 97.6 was compiled against 1.0rc2 but Charlie Moad is the >> authority on this since he did the compile. I have added this "news >> flash" to the site > > Ok, thanks. I suspected that, but since even Google isn't able to find > an rc2 binary, I guess my only option is to wait for a compatible > Matplotlib to be released. > > On a loosely-related topic, I originally tried upgrading to try out > pylab.quiver. In earlier versions, the arrows drawn by quiver could > not be properly scaled and were rendered at a huge size. Do you know > if this was a registered bug, and if it's been fixed? There is a complete re-implementation of quiver with correct scaling and control over arrow shape, size, color, and outline. Eric |