Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > latest numpy & scipy - incompatible ?

Reply
Thread Tools

latest numpy & scipy - incompatible ?

 
 
robert
Guest
Posts: n/a
 
      10-28-2006
I'm using latest numpy & scipy. What is this problem ? :

>>> import scipy.stats

RuntimeError: module compiled against version 1000002 of C-API but this version of numpy is 1000009
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\PYTHON23\Lib\site-packages\scipy\stats\__init__.py", line 7, in ?
from stats import *
File "C:\PYTHON23\Lib\site-packages\scipy\stats\stats.py", line 191, in ?
import scipy.special as special
File "C:\PYTHON23\Lib\site-packages\scipy\special\__init__.py", line 8, in ?
from basic import *
File "C:\PYTHON23\Lib\site-packages\scipy\special\basic.py", line 8, in ?
from _cephes import *
ImportError: numpy.core.multiarray failed to import
>>> import numpy.core.multiarray
>>>
>>> import scipy
>>> scipy.__version__

'0.5.1'
>>> numpy.__version__

'1.0'
>>>



-robert
 
Reply With Quote
 
 
 
 
Robert Kern
Guest
Posts: n/a
 
      10-28-2006
robert wrote:
> I'm using latest numpy & scipy. What is this problem ? :
>
>>>> import scipy.stats

> RuntimeError: module compiled against version 1000002 of C-API but this version of numpy is 1000009


The scipy binary available on sourceforge has not been recompiled for numpy 1.0.
All you need to do is recompile, though, and everything will work.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

 
Reply With Quote
 
 
 
 
Travis E. Oliphant
Guest
Posts: n/a
 
      10-29-2006
robert wrote:
> I'm using latest numpy & scipy. What is this problem ? :
>
>>>> import scipy.stats

> RuntimeError: module compiled against version 1000002 of C-API but this version of numpy is 1000009
> Traceback (most recent call last):
> File "<interactive input>", line 1, in ?
> File "C:\PYTHON23\Lib\site-packages\scipy\stats\__init__.py", line 7, in ?
> from stats import *
> File "C:\PYTHON23\Lib\site-packages\scipy\stats\stats.py", line 191, in ?
> import scipy.special as special
> File "C:\PYTHON23\Lib\site-packages\scipy\special\__init__.py", line 8, in ?
> from basic import *
> File "C:\PYTHON23\Lib\site-packages\scipy\special\basic.py", line 8, in ?
> from _cephes import *
> ImportError: numpy.core.multiarray failed to import
>>>> import numpy.core.multiarray
>>>>
>>>> import scipy
>>>> scipy.__version__

> '0.5.1'
>>>> numpy.__version__

> '1.0'


Download the 1.0rc2 binary until SciPy 0.5.2 which should be out in a
few days. If you can recompile, SciPy yourself, then it will work fine
with 1.0

-Travis

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python,win32com,scipy and vb 6 : no module named scipy vml Python 3 05-03-2007 07:57 AM
numpy/scipy: correlation robert Python 18 11-16-2006 08:47 PM
Matplotlib 0.87.2 incompatible with numpy 0.9.8 ago Python 1 06-07-2006 06:13 PM
Scipy question about scipy.optimize.leastsq Paxcal Python 0 02-11-2004 07:52 PM
Re: numpy and scipy for Python 2.3 Terry Reedy Python 0 07-10-2003 02:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57