undefined symbol: PyUnicodeUCS4_FromUnicode

Bill Hodges hodges7 at cox.net
Sun Aug 15 22:38:04 CEST 2004


Martin,

Your dianosis is correct.
I compiled tcl to include UCS4 and
Python then compiled to UCS4
(nm revealed the difference).
PyQt compiled fine, However, it
still errors out the same way.
For some reason PyQt needs to be told to
include the UCS4 stuff in qt.so na d
I cannot find the key.

Do you have another suggestion.
----------------------------------------------------------
drt
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


Martin v. Löwis wrote:
> 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