[PyQt] Python 3 import error

Thorsten Kampe thorsten at thorstenkampe.de
Thu Dec 2 22:11:57 GMT 2010


* Hans-Peter Jansen (Thu, 2 Dec 2010 20:16:13 +0100)
> > > sip.setapi('QVariant', 2)

Unfortunately, when I set "sip.setapi('QVariant', 2)" then I can't run 
the application as stand-alone Pyinstaller[1] executable (neither under 
Windows nor Linux):
ValueError: API 'QVariant' has already been set to version 1

Okay, this is not a PyQt issue but a Pyinstaller one (I think). But 
maybe you have a solution for that?


Thorsten
[1] http://www.pyinstaller.org/



More information about the PyQt mailing list