【发布时间】:2018-07-11 04:32:19
【问题描述】:
我在使用 Qt Designer 加载自定义 PyQt5 插件时遇到问题。 GitHub 上可用的示例插件正在运行,我使用它们创建了我自己的插件,该插件也运行良好。然后昨天设计师停止加载其中任何一个。当我从 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。
是什么导致了这个错误?我该如何解决?
【问题讨论】:
-
为了清晰起见,我已经用系统信息更新了 OP。
标签: python python-3.x pyqt5 qt-designer