This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python Launcher Not Opening Files.
Type: behavior Stage: resolved
Components: macOS Versions: Python 3.10
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Python Launcher app on macOS 10.15+ fails to run scripts
View: 40477
Assigned To: Nosy List: AegisEmerald545, ned.deily, nicholasjbond2020, ronaldoussoren
Priority: normal Keywords:

Created on 2021-12-10 23:22 by nicholasjbond2020, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)
msg408260 - (view) Author: Nicholas Bond (nicholasjbond2020) Date: 2021-12-10 23:22
Python launcher opens its preferences and no terminal or Tkinter application opens. It appears as something was launched because for a fraction of a second, I see a window and then the icon glides back to its position on the desktop.

However, python files and Tkinter GUIs work when run through the IDLE and through other text editors, e.g. when I build the program in sublime text, the python launcher application opens and launches the Tkinter window.

Even the simplest of programs don't work. I tried opening this:
number = input("Type in a number:")

I ran this outside of the text editor(dragging the .py file onto the python launcher) and it still did not work.
msg408296 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2021-12-11 12:13
Are you on macOS 10.15 or later?  If so, this is a duplicate of issue40477.

A workaround mentioned in that issue is to make sure that Terminal.app is open.
msg408334 - (view) Author: Nicholas Bond (nicholasjbond2020) Date: 2021-12-11 20:22
I am on macOS 12 and it still doesn't work when Terminal.app is open.
msg408359 - (view) Author: AegisEmerald545 (AegisEmerald545) Date: 2021-12-12 03:16
Same here. macOS Monterey with an Apple Silicon SoC and there seems not to be any workaround this time
msg408363 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-12-12 05:36
There is definitely something odd going on here. I am seeing different behaviors across different systems: I have at least one macOS 12.0.1 system where the Launcher app seems to work OK with the current 3.10.1 (as long as the Terminal.app is already running) but then on some other 12.0.1 systems and on an 11.6.1 system it fails as you describe it. This is also across a mixture of Intel and Apple Silicon systems and VMs so no obvious correlation there. Launching via IDLE does seem to work properly on the systems I've tested so perhaps that might be a temporary workaround as well as just manually running the script in a Terminal.app window. I am going to close this issue as a duplicate of Issue40477 and am bumping the priority with the aim to have a fix prior to the next round of releases in early January.
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90201
2021-12-12 05:36:38ned.deilysetstatus: open -> closed
superseder: Python Launcher app on macOS 10.15+ fails to run scripts
messages: + msg408363

resolution: duplicate
stage: resolved
2021-12-12 03:16:47AegisEmerald545setnosy: + AegisEmerald545
messages: + msg408359
2021-12-11 20:22:30nicholasjbond2020setmessages: + msg408334
2021-12-11 12:13:26ronaldoussorensettype: crash -> behavior
messages: + msg408296
2021-12-10 23:22:33nicholasjbond2020create