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

Michael Abshoff michael.abshoff@googlemail....
Wed Apr 8 03:10:17 CDT 2009

charlie wrote:
> Hi All,

Hi Charlie,

> 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.
> 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.


> PyUnicodeUCS2_FromUnicode

numpy was build with a python configured with ucs2 while the python you 
have is build with ucs4.

>>>> 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!

To fix this build python with ucs2, i.e. "check configure --help" and 
set python to use ucs2.

> Charlie



> ------------------------------------------------------------------------
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

More information about the Numpy-discussion mailing list