# app.setWindowIcon(QtGui.QIcon(':/icons/icon.png'))
the PyInstaller single-dir and single-file bundles crash with no error reported. (Before bundling the app, everything works fine in the standard console).
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2012-12-in-die-cloud-in-die-cloud-ab-wo-soll-die-sein
Blog:
http://www.goebel-consult.de/blog/20050401
Goebel Consult ist Mitglied bei http://www.7-it.de/
Am 14.05.2013 06:14, schrieb Laurence:
# app.setWindowIcon(QtGui.QIcon(':/icons/icon.png'))
Am 14.05.2013 06:14, schrieb Laurence:
# app.setWindowIcon(QtGui.QIcon(':/icons/icon.png'))
I Doubt, this is working at all. AFAIK ":/" ist not a valid path-begin on any system.
Also you should split this into two statements, using an intermediate assign. So you can test whether QIcon() *or* setWindowIcon is failing -- which might be a big difference for debugging.
What do you mean wirh "standard console"? Are you running on Windows? Do you get error-output when starting the program from the console/shell?the PyInstaller single-dir and single-file bundles crash with no error reported. (Before bundling the app, everything works fine in the standard console).
Am 14.05.2013 12:52, schrieb Hartmut Goebel:
I forgot:Am 14.05.2013 06:14, schrieb Laurence:
# app.setWindowIcon(QtGui.QIcon(':/icons/icon.png'))
Of course the filepath must be relative to the application directory and you must COLLECT the image-file in your .spec-file.
And, I repeat, the original program runs fine. The crash only happens after I bundle it with PyInstaller 2.0. (And with PyInstaller 1.5.1, it runs fine, too).
Goebel Consult
http://www.goebel-consult.de
So it comes down that you need to compare the result of the bundle made by PyInstaller 2.0 with th one made by PyInstaller 1.5.1. There ought to some difference in what is bundled. Did you already compare the content? http://www.pyinstaller.org/wiki/HowtoReportBugs#Beforesubmittingareport:Makesureeverythingispackaged should tell you how to do this.
(I do not understand this resource.py stuff, but this seams to be some QT magic.)
I suspected that 1.5.1 and 2.0 are quite different and that I'd find all kinds of differences.
Am 14.05.2013 13:47, schrieb Laurence Anthony:
Well, the *results* should be quite each other, since in the *result* both bundels sould work.I suspected that 1.5.1 and 2.0 are quite different and that I'd find all kinds of differences.
When comparing, mind to bundle in --onedir mode. This makes comparing easier.
Laurence píše v Út 21. 05. 2013 v 05:44 -0700:
So, the conclusion is *do not use UPX=True when using PyQt*.
Goebel Consult
http://www.goebel-consult.de
Monatliche Kolumne:
http://www.cissp-gefluester.de/2012-02-bring-your-own-life-glosse
Blog:
http://www.goebel-consult.de/blog/20050707
Am 21.05.2013 15:45, schrieb Martin Zibricky:
Laurence píše v Út 21. 05. 2013 v 05:44 -0700:So, the conclusion is *do not use UPX=True when using PyQt*.
Hmm, would it make sense to make the pyqt-hook *disable* UPX?
Laurence píše v So 25. 05. 2013 v 03:30 -0700:
> Also, in my view, I think the default setting for UPX should beSo do you think it is safer and less error prone to have upx disabled by
> *disabled* regardless of the application. In my view, the main problem
> of single file bundles is not their size but their slow startup time.
> Disabling UPX should speed up this process slightly. As we know UPX is
> also sometimes creating completely broken PyQT (Pyside?) applications,
> there is a chance that it is breaking other applications too. The
> console error reports are not helpful either. Python just crashes.
> Users of PyInstaller will just think that it doesn't work.
default?
Does anyone else think upx should be disabled by default?
So then we should replace the option --noupx by --upx?