[Twisted-Python] python and twisted and openssl
glyph at twistedmatrix.com
Wed Apr 21 20:13:11 EDT 2010
On Apr 21, 2010, at 2:47 PM, gary clark wrote:
> undefined symbol: PyUnicodeUCS2_Decode
> What is this PyUnicodeUCS2_Decode? Has anybody else seen this blighter?
When you build Python, you either build its Unicode support with support for UCS2 (2-byte, 16-bit code points) or UCS4 (4-byte, 32-bit code points). Extension modules must be built in the same configuration as the Python interpreter in order to be loaded and dynamically linked correctly, since UCS4 python is missing the UCS2 symbols and vice versa.
It looks like you have a UCS4 python and a UCS2 PyOpenSSL. You need to re-build PyOpenSSL against the Python installation that you are using, or at least one built with the same options.
This is a pretty common build problem; if you search for mailing list threads about it on python-list or python-dev you should find plenty.
More information about the Twisted-Python