473,416 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

latest numpy & scipy - incompatible ?

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
Oct 28 '06 #1
2 3895
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

Oct 28 '06 #2
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

Oct 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jason | last post by:
Hello: I am using the following versions of Python and packages on Windows XP (SP2): Python 2.4.2 NumPy 0.9.4.win32-py2.4 SciPy 0.4.4 for Python 2.4 and Pentium 4/SSE2 In the Python...
20
by: mclaugb | last post by:
Has anyone recompiled the Scientific Computing package using NumPy instead of Numeric? I need a least squares algorithm and a Newton Rhaphson algorithm which is contained in Numeric but all the...
1
by: drife | last post by:
Hello, I use the Python Numeric package extensively, and had been an avid user of the "old" scipy. In my view, both pieces of software are truly first rate, and have greatly improved my...
3
by: Iljya | last post by:
Hello, I need to pickle the type numpy.float32 but encounter an error when I try to do so. I am able to pickle the array itself, it is specifically the type that I cannot pickle. I am using:...
15
by: greg.landrum | last post by:
After using numeric for almost ten years, I decided to attempt to switch a large codebase (python and C++) to using numpy. Here's are some comments about how that went. - The code to...
18
by: robert | last post by:
Is there a ready made function in numpy/scipy to compute the correlation y=mx+o of an X and Y fast: m, m-err, o, o-err, r-coef,r-coef-err ? Or a formula to to compute the 3 error ranges? ...
5
by: robert | last post by:
Turning algs for old NumPy modules into numpy code I suffer from this: Upon further processing of returns of numpy calculations, lots of data in an apps object tree will become elementary numpy...
1
by: 1960_j | last post by:
I have tried to install numpy and scipy on python 5.2. Using gcc 2.95.3, lapack 3.1.1 and ATLAS 3.6.0. When installin numpy it seems to work but when I try to run test get error no test for numpy....
3
by: Slaunger | last post by:
I know there must be a simple method to do this. I have implemented this function for calculating a checksum based on a ones complement addition: def complement_ones_checksum(ints): """...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.