latest numpy & scipy - incompatible ?

Discussion in 'Python' started by robert, Oct 28, 2006.

  1. robert

    robert Guest

    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
     
    robert, Oct 28, 2006
    #1
    1. Advertising

  2. robert

    Robert Kern Guest

    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
     
    Robert Kern, Oct 28, 2006
    #2
    1. Advertising

  3. 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
     
    Travis E. Oliphant, Oct 29, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Terry Reedy

    Re: numpy and scipy for Python 2.3

    Terry Reedy, Jul 10, 2003, in forum: Python
    Replies:
    0
    Views:
    460
    Terry Reedy
    Jul 10, 2003
  2. Paxcal
    Replies:
    0
    Views:
    1,856
    Paxcal
    Feb 11, 2004
  3. ago
    Replies:
    1
    Views:
    281
  4. robert

    numpy/scipy: correlation

    robert, Nov 11, 2006, in forum: Python
    Replies:
    18
    Views:
    6,919
    robert
    Nov 16, 2006
  5. vml
    Replies:
    3
    Views:
    697
Loading...

Share This Page