[PyQt] Python3.2 and PyQt 4.9.5 : undefined symbol: PyUnicode_AsLatin1String

Hans-Peter Jansen hpj at urpla.net
Thu Oct 25 20:07:28 BST 2012


Am Donnerstag, 25. Oktober 2012, 11:54:24 schrieb tm at tobix.eu:
> Hello,
> 
> when using python 3.2 to run any python program that uses PyQt 4.9.5 I
> get the following error:
> 
> ImportError: /usr/local/lib/python3.2/site-packages/PyQt4/QtCore.so:
> undefined symbol: PyUnicode_AsLatin1String
> 
> My setup is:
> Ubuntu 11.10
> Qt 4.8.1
> Python 3.2.3
> Sip 4.14
> PyQt 4.9.5
> 
> Before I used Python 3.3 having no problems. Then I had to move to
> Python 3.2.3. So I compiled and installed Sip and PyQt again for use
> with Python 3.2.3.
>
> I would be pleased to get any suggestions,

Obviously, you still have a python/PyQt mismatch for some reason (probably 
because mixing distribution packages and manually installed ones).

I would start over, but build packages the way, your distribution does. 

Codeword: deterministic setups.

Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20121025/423539ca/attachment.html>


More information about the PyQt mailing list