Python: PyQt4 Py2exe

落花浮王杯 提交于 2019-12-08 06:56:38

问题


Greetings!

So I've made a Python application that uses the ever so great PyQt as it's interface. Now if I was to specify the --bundle 0 option for Py2Exe the resulting compiled executable file works fine! But with all the needed files, the folder gets cluttered up. So I tried passing 1 and 2 for the --bundle option. One packs everything into file file whilst the other packs everything except the Python dll. However both of those options results in the executable file exiting upon execution. No errors are chucked back.

Another question on stackoverflow said to supply the "--includes sip" parameter for py2exe however that does not solve this issue. The sip module was already being included in all builds of the application so I can't think it has anything to do with sip.

I've used procmon to monitor what the file did upon execution. Can anyone make light of this? http://www.sendspace.com/file/z67dox

Thanks bye!


回答1:


I know that even using raw win32ui with py2exe can cause problems. Seems like they could be related, but I don't know enough about the architecture of PyQt.

Py2exeAndWin32ui

Though I realise this wouldn't give you a neat solution even if it did help.



来源:https://stackoverflow.com/questions/4640140/python-pyqt4-py2exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!