Fixed. I changed the .spec file to run windowed (not one file), then wrote a batch file with the program name and "pause". I was able to see the error then (which was a missing path in the .spec file) and fix it.
On Friday, January 24, 2020 at 1:19:36 AM UTC-8, M. Agus Setiadi wrote: > > Hi, > > How do you use pyinstaller for generating exe files? > I suggest to wrap the code using try except and log the error if possible. > > Thanks > > Pada tanggal Jum, 24 Jan 2020 pukul 03.23 Dirk Marchant < > [email protected] <javascript:>> menulis: > >> I made a .exe using pyinstaller. The .exe runs from the command line but >> when I double click the file in Windows Explorer I get the error: Failed to >> execute script. Why would the program run one way but not the other? >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pyinstaller/ccfb03b1-16a3-4eb7-82d9-524e4ce9f1e3%40googlegroups.com >> >> <https://groups.google.com/d/msgid/pyinstaller/ccfb03b1-16a3-4eb7-82d9-524e4ce9f1e3%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/03dc0454-b77f-4ca5-8343-342f596cdadc%40googlegroups.com.
