undefined symbol: PyUnicodeUCS2_FromUnicode

Daniel Dittmar daniel.dittmar at sap.com
Tue Feb 24 13:52:49 CET 2004

Eric Moors wrote:
> /home/me>redhat-config-services
> ImportError: /usr/lib/python2.2/site-packages/gtk-2.0/gtk/_gtk.so:
> 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.


More information about the Python-list mailing list