PDA

View Full Version : python 2.7.12 and PyQt4 UNICODE (UCS2) failure



Slav76
22nd June 2017, 16:45
Hi guys,
I have a question regarding unicode failure.
In Python 2.7.12 with enabled unicode UCS4, when I import from PyQt4.QtGui, I get the following error:

from PyQt4.QtGui import *
ImportError: /usr/local/lib/python2.7/site-packages/PyQt4/QtCore.so: undefined symbol: PyUnicodeUCS2_AsUTF8String

How can I resolve it?
the netifaces library requires UCS4.

Thanks!