admin管理员组文章数量:1122832
I've been trying to create an exe file through pyinstaller for my PyQt5 program. However, even after the exe file was create, everytime I tried to run it it gave me this error:
Failed to execute script pyi_rth_pyqt5 due to unhandled exception: cannot execute runtime hook for PyQt5 because runtime hook for PyQt6 has been run before, and pyinstaller frozen applications does not support multiple Qt bindings on the same application!
I tried my best to remove any pyside and pyqt6 only modules as I'm only focusing on pyqt5 modules before creating the exe file so I'm not sure what I'm missing. Do I have to install those modules again just so it can run well? Are the frozen applications causing this? While I was using pyinstaller, I've seen "hidden imports" coming out as non-existing from the terminal so I'm not sure if that's the root of the problem and if so, how can I fix this.
本文标签: pythonquotUnhandled exception in Scriptquot on PyQt5 exe fileStack Overflow
版权声明:本文标题:python - "Unhandled exception in Script" on PyQt5 exe file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304060a1932100.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论