pyinstaller / pyinstaller/pyinstaller

MacOS --windowed .app Crashes when clicked But Runs From Console

Open
#3,416 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.