Am 25.03.2016 um 22:57 schrieb Andrea Mastrangelo: > Hello, I'm a newbie of Pyinstaller and I have a big problem with my > executable containing PyQt gui. > > In particular when i compile simple script (without gui) or script > with a simple gui (downloaded) written in wxPython everything is ok. > > When i use PyQt the executable doesn't work (both *.exe and *.app). > > If i compile a script with a written gui the executable not work (red > rect in the image), but if i entered in the nameFile directory i find > an other executable file that will make it works (green rect). > Instead if i compile a script with an external gui (from *.ui file) > the executable doesn't work and the other executable oper the termina > that gives me an error: computer doesn't find gui file. > > I proceed in this way: > > 1) terminal: pyi-makespec nomefile.py > 2) modify spec file adding bundle (i find it somewhere in interne) > 3) terminal: pyinstaller --onefile --windowed nomefile.spec
a) Did you already follow the tips at <https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong>? b) Neither --onefile nor --windowed have eny effect when used with a .spec-file. c) There should be no need to add BUNDLE toe eht spec file manually. Esp. if you "found (it) somewhere in the internet". b+c): Simply using pyinstaller --onefile --windowed nomefile.py should do the job But note: For finding errors, *Do not use --onefile*, see <https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong> -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Information Security Management, Security Governance, Secure Software Development Goebel Consult, Landshut http://www.goebel-consult.de Blog: http://www.goebel-consult.de/blog/bestanden-iso-27001-lead-implementer Kolumne: http://www.cissp-gefluester.de/2010-01-hinterturen-allen-ortes -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.
