Menu

#9 Linux/x86 RC4 issue: bundled numpy fails

open
nobody
None
5
2009-02-17
2009-02-17
No

The version of numpy bundled with fable on Linux/x86 fails if the host python library was compiled with a different unicode setting (choices are ucs2 or ucs4). On my debian system, libpython2.5.so.1.0 is UCS4, but multiarray.so seems to be UCS2, leading to a symbol not found error:

101 jrh@dsl-220-253-67-235 setenv PYTHONPATH /home/jrh/programs/fable/python/linux_x86
102 jrh@dsl-220-253-67-235 python
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2] 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 "/home/jrh/programs/fable/python/linux_x86/numpy/__init__.py", line 39, in <module>
import core
File "/home/jrh/programs/fable/python/linux_x86/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: /home/jrh/programs/fable/python/linux_x86/numpy/core/multiarray.so: undefined symbol: PyUnicodeUCS2_FromUnicode

Discussion

MongoDB Logo MongoDB