Undefined symbol: PyUnicodeUCS2_AsLatin1String

I installed python2.7 and, while running my application, I get an error like

/usr/local/lib/python2.7/site-packages/PIL/_imaging.so: undefined character: PyUnicodeUCS2_AsLatin1String

I also checked the assembly and displays as "UCS2"

How can we solve this?

+5
source share
1 answer

Hey. Just recompile your python with the option ./configure --enable-unicode=ucs2 , it will be fixed.

+1
source

Source: https://habr.com/ru/post/1232425/


All Articles