[Numpy-discussion] ImportError: /usr/local/lib/python2.7/site-packages/numpy-1.8.0-py2.7-linux-x86_64.egg/numpy/core/multiarray.so: undefined symbol: PyUnicodeUCS2_AsASCIIString

Benjamin Root ben.root at ou.edu
Wed Apr 16 16:48:53 EDT 2014


Did you rebuild numpy after rebuilding python? Note that if that works,
then you will likely need to recompile the entire scipy stack (matplotlib,
scipy, etc.).

Ben Root


On Wed, Apr 16, 2014 at 3:23 PM, jaylene <jaylenexue at yahoo.com> wrote:

> Hi,
>
> I rebuilt the python with -enabled_shared to resolve the following error:
> /usr/bin/ld: /usr/local/lib/libpython2.7.a(cobject.o): relocation
> R_X86_64_32S against `PyCObject_Type' can not be used when making a
> shared object; recompile with -fPIC
> /usr/local/lib/libpython2.7.a: could not read symbols: Bad value
>
> However, there is a new error with this rebuilt python "ImportError:
>
> /usr/local/lib/python2.7/site-packages/numpy-1.8.0-py2.7-linux-x86_64.egg/numpy/core/multiarray.so:
> undefined symbol: PyUnicodeUCS2_AsASCIIString".
>
> Does anyone know how to fix this error?
>
> Thanks!
>
>
>
> --
> View this message in context:
> http://numpy-discussion.10968.n7.nabble.com/ImportError-usr-local-lib-python2-7-site-packages-numpy-1-8-0-py2-7-linux-x86-64-egg-numpy-core-multg-tp37372.html
> Sent from the Numpy-discussion mailing list archive at Nabble.com.
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140416/f038f5d0/attachment.html>


More information about the NumPy-Discussion mailing list