Hi Tony,
I think you have mismatching versions of numpy and scipy. I had a
similar problem on Windows.
If I recall correctly, I had compiled pysparse with on older version
on numpy (before 1.0)
and then tried using it with a newer version.
Enthought is still using the version of numpy before the magic 1.0
transition and scipy has not been compiled
with a version after 1.0. Before you do anything, check the
following to be sure.
>>> import numpy
>>> numpy.__version__
>>> import scipy
>>> scipy.__version__
The fix is probably just to get the latest version of scipy and
install it.
Cheers
On Mar 15, 2007, at 7:57 PM, Tony Pilz wrote:
Hiho
</fipy/test.py> and </examples/test.py> scripts are reporting a
testing error after installing fipy under WinXP 32bit.
Errormessage:
****************************
E:\Programme\Python24\Lib\site-packages\fipy>python test.py
.........Overwriting info=<function info at 0x01409670> from
scipy.misc.helpmod
(was <function info at 0x00BEAE70> from numpy.lib.utils)
Overwriting who=<function who at 0x00FAE3B0> from scipy.misc.common
(was <functi
on who at 0x00BEADB0> from numpy.lib.utils)
Overwriting source=<function source at 0x0140F770> from
scipy.misc.helpmod (was
<function source at 0x00BEAEB0> from numpy.lib.utils)
RuntimeError: module compiled against version 90907 of C-API but
this version of
numpy is 1000009
Fatal Python error: numpy.core.multiarray failed to import... exiting.
E:\tools\programmieren\python\packages\FiPy-1.2\examples>python
test.py
...........................................E..........Overwriting
info=<functio
n info at 0x01D0AA30> from scipy.misc.helpmod (was <function info
at 0x00BE9E70>
from numpy.lib.utils)
Overwriting who=<function who at 0x01D04FB0> from scipy.misc.common
(was <functi
on who at 0x00BE9DB0> from numpy.lib.utils)
Overwriting source=<function source at 0x01D0ACB0> from
scipy.misc.helpmod (was
<function source at 0x00BE9EB0> from numpy.lib.utils)
RuntimeError: module compiled against version 90907 of C-API but
this version of
numpy is 1000009
Fatal Python error: numpy.core.multiarray failed to import... exiting.
****************************
I installed Fipy in the following order:
1. enthon-python2.4-1.0.0.exe
2. pysparse-1.0.win32-py2.4.exe
3. FiPy-1.2.win32.exe
4. numpy-1.0.1.win32-py2.4.exe
The tests didnt work without 4. either (similar errormessage). Its
interesting that ,running examples, I mostly get an error concerning
the viewer and not that one with the C-API above:
******************
ImportError: Failed to import a viewer: ['gistViewer: No module named
gist', 'gnuplotViewer: No module named Gnuplot', 'matplotlibViewer:
Arguments x, y, z, (optional) mask must be arrays.', "mayaviViewer:
sum() got an unexpected keyword argument 'index'", "multiViewer:
'module' object has no attribute 'make'", "tsvViewer: 'module' object
has no attribute 'make'", "viewer: 'module' object has no attribute
'make'"]
******************
Some testes like <FiPy-1.2\examples\levelSet\surfactant\test.py>
are passed.
Maybe someone has an idea to that?
Tony
--
Daniel Wheeler