[SciPy-user] C API issue

belinda thom bthom at cs.hmc.edu
Fri Dec 29 23:33:49 EST 2006


Hi,

I'm beginning to play around w/scipy, and have some problems when  
doing "from scipy import *" that don't occur when just doing "import  
scipy" (appended below). Is there an explanation for this behavior?

The version of scipy I'm using came from http://pythonmac.org/ 
packages/py24-fat/index.html.

Thanks,

--b



8 % python
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
history mechanism set up
 >>> from scipy import *
RuntimeError: module compiled against version 1000002 of C-API but  
this version of numpy is 1000009
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/io/__init__.py", line 8, in ?
     from numpyio import packbits, unpackbits, bswap, fread, fwrite, \
ImportError: numpy.core.multiarray failed to import
 >>>

9 % python
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
history mechanism set up
 >>> import scipy
 >>> from scipy import *
RuntimeError: module compiled against version 1000002 of C-API but  
this version of numpy is 1000009
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/io/__init__.py", line 8, in ?
     from numpyio import packbits, unpackbits, bswap, fread, fwrite, \
ImportError: numpy.core.multiarray failed to import







More information about the SciPy-User mailing list