Qt Designer和PyQt5自定义插件加载TypeError

时间:2018-07-11 04:32:19

标签: python python-3.x pyqt5 qt-designer

使用Qt Designer加载自定义PyQt5插件时遇到问题。 GitHub上可用的示例插件正在运行,我用它们来创建自己的插件,该插件也能正常工作。然后昨天Designer停止加载其中的任何一个。从CLI启动Designer时,我得到:

TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyAnalogClockPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not BubblesPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not CounterLabelPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyDateEditPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyDateTimeEditPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not HelloGLWidgetPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not MultiPageWidgetPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PolygonWidgetPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PyDemoPlugin
TypeError: unwrapinstance() argument 1 must be sip.simplewrapper, not PythonConsolePlugin

我不知道从哪里开始,谷歌搜索问题也没有帮助。我正在使用Python 3.6.6,Qt 5.11.1,PyQt5 5.11.2和Linux 4.17.5-1-ARCH。

是什么导致此错误?我该如何解决?

1 个答案:

答案 0 :(得分:0)

此问题已通过PyQt5更新修复:riverbankcomputing.com/pipermail/pyqt/2018-July/040545.html