Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS BigSur Build generates terminal app and .app which fails to open #5645

Closed
PyMarc2 opened this issue Mar 18, 2021 · 1 comment
Closed

Comments

@PyMarc2
Copy link

PyMarc2 commented Mar 18, 2021

Description of the issue

I am building a PyQt5 Application on macOS BigSur (11.1).
I have downgraded PyQt5 to 5.15.3. I still get tons of errors that seem to be related to #5464.
The program builds, but the dist folder contains a terminal file and a .app

The terminal app launches fine, except it shows the console and doesn't have the app logo.
The .app launches, but closes a couple milliseconds after the launch with no console errors or indications.
Anyone has had this behaviour before?

I used these specific commands to generate the build:
pyinstaller main.py --onefile --noconsole --clean --icon /Path/to/icon.ico

Context information (for bug reports)

  • Output of pyinstaller --version: 4.2
  • Version of Python: 3.8.4
  • Platform: macOS BigSur 11.1
  • It works on WIndows 10.
@PyMarc2 PyMarc2 closed this as completed Mar 18, 2021
@PyMarc2 PyMarc2 reopened this Mar 18, 2021
@rokm
Copy link
Member

rokm commented Mar 18, 2021

The .app launches, but closes a couple milliseconds after the launch with no console errors or indications.

.app bundles don't have console, so if application crashes due to uncaught exception, it will "close" without any error indication. To get the traceback, you could try wrapping your whole entry-point script in try-except block that saves exception information to a file.

@rokm rokm closed this as completed Apr 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants