5

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.

yprez
  • 14,854
  • 11
  • 55
  • 70
Pradeep
  • 131
  • 1
  • 8

1 Answers1

1

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

Rajat Gupta
  • 1,909
  • 2
  • 18
  • 30
  • Actually the solution for me was to build with `--enable-unicode=ucs4`. See this question: https://stackoverflow.com/questions/1446347/how-to-find-out-if-python-is-compiled-with-ucs-2-or-ucs-4 – smac89 Jun 22 '17 at 05:32