pyinstaller / pyinstaller/pyinstaller
MacOS --windowed .app Crashes when clicked But Runs From Console
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.1k
- Forks
- 2k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 11
Description
I have seen a few other similar issues but none of them giving any solution which is why I'm opening this ticket :
Using :
Python 2.7
Pyinstaller (tried latest release and dev version same results)
PyQt4
I tried compiling with --onedir to see if anything was missing but everything seemed OK
Also tried --debug and no error messages there, app runs perfect from contents/macOS but still not clickable
The --onefile option does work but since the terminal is visible not good
since there aren't any errors/warnings in --debug mode and all the files that are supposed to be copied are indeed included im wondering if anyone knows a fix ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the clickable .app failure with Python 2.7, PyInstaller, and PyQt4 using --windowed and --onedir, then compare it with the successful console launch and --onefile behavior. Done means the generated macOS app opens by clicking without showing a terminal or producing the reported crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, python
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100