Trouble on Ubuntu 7.10-Undefined Symbol

jpw27

09-03-2008 20:23:09

Following the instructions here I've downloaded and built Python-Ogre. I get through at least Step 4 successfully. I say successfully because I can run the demos (./Smoke, etc.). Step 5 goes without any warnings, but when I try to run any of the demos like
cd /home/jason/development/python-ogre/demos/ogre ; python Demo_Smoke.py
I get an import error that says
Traceback (most recent call last):
File "Demo_Smoke.py", line 4, in <module>
import ogre.renderer.OGRE as ogre
File "/home/jason/development/root/usr/lib/python2.5/site-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: /home/jason/development/root/usr/lib/libboost_python-gcc41-1_34_1.so.1.34.1: undefined symbol: PyUnicodeUCS2_FromEncodedObject


Any ideas? I've searched this forum, and Google, but none of the suggestions helped me. Following a Google link, one of the things I found was someone had this issue and because they had a Python installation in /usr/local/bin and /usr/bin, and I did, and I fixed that, and it still didn't resolve this problem.

Thanks

andy

10-03-2008 00:47:37

I've seen something like this however it was with UCS4

Recompiling python with --enable-unicode=ucs4 made the error
(undefined symbol: PyUnicodeUCS4_FromEncodedObject) go away.


Do you have something 'strange' on your system releated to Unicode support?

Regards

Andy

jpw27

10-03-2008 01:03:53

Not that I know of. Earlier today I downloaded Python-2.5.2 and ran ./configure --enable-unicode=ucs4 because I thought that might be the problem, then make and make install. Then when trying to run the demos I got PyUnicodeUCS2 for an error. I can do another recompile of Python tomorrow, just to make sure.

Edit: Hmm, now I'm getting an import error for libOgreMain-1.4.6.so because it says there's no such file. Something went wrong. I guess I may just resort to cleaning everything Python-Ogre related off my disk, recompiling Python with ./configure --enable-unicode=ucs4, and then reinstalling Python-Ogre.