[Numpy-discussion] ImportError: /usr/lib/python2.6/dist-packages/numpy/core/multiarray.so: undefined symbol: NPY_COPY_PYOBJECT_PTR

Sandro Tosi morph@debian....
Sat Jun 19 09:13:37 CDT 2010

I'm upgrading the Debian package for Numpy to 1.4.1.

Compilation goes well, but when I install the package for test and
import numpy I got this traceback:

$ python -V
Python 2.6.5+
$ python -c "import numpy"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/numpy/__init__.py", line 132,
in <module>
    import add_newdocs
  File "/usr/lib/python2.6/dist-packages/numpy/add_newdocs.py", line
9, in <module>
    from lib import add_newdoc
  File "/usr/lib/python2.6/dist-packages/numpy/lib/__init__.py", line
4, in <module>
    from type_check import *
  File "/usr/lib/python2.6/dist-packages/numpy/lib/type_check.py",
line 8, in <module>
    import numpy.core.numeric as _nx
  File "/usr/lib/python2.6/dist-packages/numpy/core/__init__.py", line
5, in <module>
    import multiarray
ImportError: /usr/lib/python2.6/dist-packages/numpy/core/multiarray.so:
undefined symbol: NPY_COPY_PYOBJECT_PTR

If I look at the symbols table for multiarray.so I see none exposed:

$ objdump -t /usr/lib/python2.6/dist-packages/numpy/core/multiarray.so

/usr/lib/python2.6/dist-packages/numpy/core/multiarray.so:     file
format elf64-x86-64

no symbols

Could you please tell me if I'm making some evident mistake? :) I'm
also attaching the build log, so that you might spot something in it
not correctly done.

Thanks in advance for your help,
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-numpy_1.4.1-1_amd64.build.bz2
Type: application/x-bzip2
Size: 27261 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100619/87a0fb4a/attachment-0001.bz2 

More information about the NumPy-Discussion mailing list