[Numpy-discussion] C-API change for 1.2

Charles R Harris charlesr.harris at gmail.com
Sat Aug 16 14:05:01 EDT 2008


On Sat, Aug 16, 2008 at 11:56 AM, Charles R Harris <
charlesr.harris at gmail.com> wrote:

>
>
> On Sat, Aug 16, 2008 at 11:44 AM, Jon Wright <wright at esrf.fr> wrote:
>
>> David Cournapeau wrote:
>> > Does that mean we will continue breaking the ABI from time to time
>> > during the 1.* cycle ?
>>
>>
>> Can someone help me to understand me what is the compelling reason for
>> this change? If it only means everyone recompiles, it is hard to see
>> what we, as users, are gaining by doing that.
>>
>
> Turns out that ipython needs to be recompiled also because of the newly
> added version checking.
>

Looks like there is a bug in the new API version tracking:

>>> import numpy as np
RuntimeError: module compiled against version 1000009 of C-API but this
version of numpy is 100000a
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 132, in
<module>
    import add_newdocs
  File "/usr/lib/python2.5/site-packages/numpy/add_newdocs.py", line 9, in
<module>
    from lib import add_newdoc
  File "/usr/lib/python2.5/site-packages/numpy/lib/__init__.py", line 4, in
<module>
    from type_check import *
  File "/usr/lib/python2.5/site-packages/numpy/lib/type_check.py", line 8,
in <module>
    import numpy.core.numeric as _nx
  File "/usr/lib/python2.5/site-packages/numpy/core/__init__.py", line 19,
in <module>
    import scalarmath
ImportError: numpy.core.multiarray failed to import

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080816/6a66e9f1/attachment.html>


More information about the NumPy-Discussion mailing list