當我嘗試用pyqt4應用程序創建一個onefile exe時,我有4個腳本組成了整個程序。我已經創建了一個exe,但是當我執行文件時,我從追溯中獲取了file "<string>" line 172 in <module>file "<string>" line 33 in __init__AttributeError: 'QAction' object has no attribute 'activated'不知道我可能會缺少什么。我遵循了pyinstaller文檔。任何幫助都將受到高度贊賞。這些線路已激活self.ui.actionExport_Database.activated.connect(self.dbexport)self.ui.actionExport_Entire_Database.activated.connect(self.dbexportall)self.ui.actionClose.activated.connect(self.close)我用于exe的命令是python pyinstaller.py --onefile yourprogram.pywpython pyinstaller.py --onefile your-program.spec不知道我是否應該等到第二個命令使用onefile選項。
Pyinstaller PyQt4 QAction錯誤
慕的地6264312
2021-03-30 04:40:00
