undefined symbol: PyUnicodeUCS4_FromUnicode

"Martin v. Löwis" martin at v.loewis.de
Fri Aug 13 02:09:50 EDT 2004


Bill Hodges wrote:
> output is:
> 
> psyco installed and used
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.3/site-packages/drt/drt.py", line 40, in ?
>     from qt import *
> ImportError: /usr/lib/python2.3/site-packages/qt.so: undefined symbol: 
> PyUnicodeUCS4_FromUnicode
> 
> Any pointers on how to resolve?

It appears that you have built qt.so for UCS-4, but the installed Python
is UCS-2. Do "nm -D /usr/bin/python2.3|grep UCS" to verify that.

If so, make sure the pyconfig.h that you are using belongs to the
/usr/bin/python you are using.

Regards,
Martin



More information about the Python-list mailing list