[Numpy-discussion] Got: "undefined symbol: PyUnicodeUCS2_FromUnicode" error

charlie charlie.xia.fdu at gmail.com
Wed Apr 8 04:05:00 EDT 2009


Hi All,

I got the  "undefined symbol: PyUnicodeUCS2_FromUnicode" error when
importing numpy.

I have my own non-root version of python 2.5.4 final installed with
--prefix=$HOME/usr.
PYTHONHOME=$HOME/usr;
PYTHONPATH="$PYTHONHOME/lib:$PYTHONHOME/lib/python2.5/site-packages/"
install and import other modules works fine.
I install numpy-1.3.0rc2 from the svn repository with "python setup.py
install"
then import numpy results in following error:
*Python 2.5 (release25-maint, Jul 23 2008, 17:54:01)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "numpy/__init__.py", line 130, in <module>
    import add_newdocs
  File "numpy/add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "numpy/lib/__init__.py", line 4, in <module>
    from type_check import *
  File "numpy/lib/type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "numpy/core/__init__.py", line 5, in <module>
    import multiarray
ImportError: numpy/core/multiarray.so: undefined symbol:
PyUnicodeUCS2_FromUnicode
>>> import Bio
>>> import sys*
I am not sure where is trick is. As I checked the previous discussion, I
found several people raised similar issue but no one has posted a final
solution to this yet. So I can only ask for help here again! Thanks in
advance!

Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090408/1d550b7d/attachment.html>


More information about the NumPy-Discussion mailing list