Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

undefined symbol: PyUnicodeUCS2_AsLatin1String

I have installed python2.7 and while executing my application getting error as like

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

Also i checked by build and displays as 'UCS2'

How can we resolve this.

like image 502
Pradeep Avatar asked Nov 09 '22 04:11

Pradeep


1 Answers

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

like image 165
Rajat Gupta Avatar answered Nov 24 '22 00:11

Rajat Gupta