【问题标题】:Qt Designer and PyQt5 custom plugin loading TypeErrorQt Designer 和 PyQt5 自定义插件加载 TypeError
【发布时间】: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。

是什么导致了这个错误?我该如何解决?

【问题讨论】:

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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2022-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多