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

Michael Abshoff michael.abshoff at googlemail.com
Wed Apr 8 04:10:17 EDT 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.
> 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.

<SNIP>

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

Cheers,

Michael

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




More information about the NumPy-Discussion mailing list