[Numpy-discussion] numpy broken by r8077?

David Cournapeau david@silveregg.co...
Thu Jan 21 20:12:52 CST 2010


Fernando Perez wrote:
> Hi all,
> 
> This simple-looking change:
> 
> http://projects.scipy.org/numpy/changeset/8077
> 
> is giving me a wholly broken (unimportable) numpy on ubuntu 9.10, 64-bit:
> 
> uqbar[junk]> python -c 'import numpy'
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/home/fperez/usr/opt/lib/python2.6/site-packages/numpy/__init__.py",
> line 136, in <module>
>     import add_newdocs
>   File "/home/fperez/usr/opt/lib/python2.6/site-packages/numpy/add_newdocs.py",
> line 9, in <module>
>     from numpy.lib import add_newdoc
>   File "/home/fperez/usr/opt/lib/python2.6/site-packages/numpy/lib/__init__.py",
> line 4, in <module>
>     from type_check import *
>   File "/home/fperez/usr/opt/lib/python2.6/site-packages/numpy/lib/type_check.py",
> line 8, in <module>
>     import numpy.core.numeric as _nx
>   File "/home/fperez/usr/opt/lib/python2.6/site-packages/numpy/core/__init__.py",
> line 5, in <module>
>     import multiarray
> ImportError: /home/fperez/usr/opt/lib/python2.6/site-packages/numpy/core/multiarray.so:
> undefined symbol: PyUnicodeUCS2_AsASCIIString

This is typically caused by incompatible python (e.g. you build with one 
python using 4-bytes/char unicode, and numpy is built against a python 
using 2-bytes/char). Anyway, very unlikely to be caused by r8077.

I suspect some mixedup in your build - can you build numpy r8077 from 
scratch, after having removed installed and build directories ?

David


More information about the NumPy-Discussion mailing list