rex wrote:
> Numpy builds, but fails to run with the error message:
>
>   
>> python
>>     
> Python 2.4.2 (#1, Apr 24 2006, 18:13:30)
> [GCC 4.1.0 (SUSE 10.1 Linux)] on linux2
>   
>>>> import numpy
>>>>         
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/lib/python2.4/site-packages/numpy/__init__.py", line 35, in ?
>     import core
>   File "/usr/lib/python2.4/site-packages/numpy/core/__init__.py", line 5, in ?
>     import multiarray
> ImportError: /usr/lib/python2.4/site-packages/numpy/core/multiarray.so: 
> undefined symbol: PyUnicodeUCS2_FromUnicode
>
>
>   

This error usually means that NumPy was built and linked against a 
Python build where unicode strings were 2-bytes per character but you 
are trying to import it on a Python build where unicode strings are 
4-bytes per character.   Perhaps you have changed your build of Python 
and did not remove the build directory of NumPy.

Try

rm -fr build

in the numpy directory (where you run setup.py) and build again.


You can tell how many bytes-per-unicode character your system is built 
with by looking at the output of sys.maxunicode



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to