linux: undefined symbol: PyUnicodeUCS2_FromEncodedObject

illume

29-01-2008 04:24:32

Hello,

I had these problems trying to run the python demos on open suse.
This is with a python2.5 I compiled from source.

Any ideas?

rsd@:~/development/python-ogre/demos/ogre> python Demo_Smoke.py Traceback (most recent call last):
File "Demo_Smoke.py", line 15, in <module>
import ogre.renderer.OGRE as ogre
File "/home/rsd/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: /home/rsd/development/root/usr/lib/libboost_python-gcc41-1_34_1.so.1.34.1: undefined symbol: PyUnicodeUCS2_FromEncodedObject

jmtan

02-02-2008 06:27:39

I think that if you compiled python using —enable-unicode=ucs4, existing python libraries compiled beforehand will not work.

Are you using any prebuilt binaries? Maybe you can try recompiling libboost-python?

Hope you get everything running