undefined symbol: PyUnicodeUCS2_FromUnicode

Daniel Dittmar daniel.dittmar at sap.com
Tue Feb 24 07:52:49 EST 2004


Eric Moors wrote:
> /home/me>redhat-config-services
> ImportError: /usr/lib/python2.2/site-packages/gtk-2.0/gtk/_gtk.so:
undefined
> symbol: PyUnicodeUCS2_FromUnicode

Python on RedHat 9 is compiled with 4 byte unicode characters (UCS4), most
other distributions use 2 byte unicode characters (UCS2). So if you install
a rpm compiled on a different system, this error is bound to happen.
Solution: compile the python module from source, but this requires that the
sources of the module have been prepared to deal with UCS4.

Daniel






More information about the Python-list mailing list