After packing, binary file runs fine, but .app file quits immediately after double click in Finder

26 views
Skip to first unread message

张超

unread,
Dec 25, 2020, 8:42:07 AM12/25/20
to PyInstaller
hello,

I'm using PyInstaller 4.2dev0 on macOS Big Sur 11.1. After two days' struggle, I finally managed to pack my script, now the binary file can run smoothly without any warning or error, but the .app file closes immediately after double clicked in Finder. I googled but could not find a solution. Could anyone help me figure it out?

Best Regards,
Dax

张超

unread,
Dec 28, 2020, 3:58:55 AM12/28/20
to PyInstaller
and today strange things happened, I use the same spec file, but now there is no .app file created. How can I solve it?

张超

unread,
Dec 29, 2020, 3:55:43 AM12/29/20
to PyInstaller
sorry for bothering, at last I walk through it. I downgrade Python to 3.7.2, and studied PyInstaller manual and corrected my spec file settings. I am so happy I made a first APP. :D

gpraceman

unread,
Dec 29, 2020, 3:56:32 AM12/29/20
to pyins...@googlegroups.com
Hello Dax,

Try the following:

 

+ In Finder, do a right mouse click over the app file

+ Select the "Show Package Contents" option

+ Go to the Contents/MacOS folder

+ Double click on the executable file


That will show the console as it executes the app.  Hopefully, you will see some error message that will help steer you in the right direction.

Randy


--
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 pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/7ed5978e-62c8-4184-a282-6b5ae6a3e0bdn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages