[PyQt] Windows 7: Qtdemo.pyw won't start

Sibylle Koczian nulla.epistola at web.de
Mon Oct 12 14:26:36 BST 2015


Trying to start the PyQt demo program from the Windows command prompt I 
get this:

C:\Python34\Lib\site-packages\PyQt5\examples\qtdemo>py qtdemo.pyw
Traceback (most recent call last):
   File "qtdemo.pyw", line 77, in <module>
     MenuManager.instance().init(mainWindow)
   File 
"C:\Python34\Lib\site-packages\PyQt5\examples\qtdemo\menumanager.py", lin
e 331, in init
     self.createTicker()
   File 
"C:\Python34\Lib\site-packages\PyQt5\examples\qtdemo\menumanager.py", lin
e 748, in createTicker
     DemoItemAnimation.ANIM_IN)
   File 
"C:\Python34\Lib\site-packages\PyQt5\examples\qtdemo\demoitemanimation.py
", line 52, in __init__
     super(DemoItemAnimation, self).__init__(item, 'pos')
TypeError: arguments did not match any overloaded call:
   QPropertyAnimation(QObject parent=None): too many arguments
   QPropertyAnimation(QObject, QByteArray, QObject parent=None): 
argument 2 has u
nexpected type 'str'

Using Python 3.4.3, PyQt 5.5 on Windows 7, 64 bit.

I suppose changing 'pos' to "b'pos'" would help at this point, but I 
suspect there's more of the same distributed through the application.

Greetings,
Sibylle


More information about the PyQt mailing list