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: Error In opening a file through tkinter on macOS Monterey
Type: behavior Stage: resolved
Components: macOS, Tkinter Versions: Python 3.10
process
Status: closed Resolution: duplicate
Dependencies: Superseder: tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves
View: 44828
Assigned To: Nosy List: corona10, craig.dowkes, devesh.dk373, epaine, ned.deily, ronaldoussoren, steven.daprano, terry.reedy
Priority: normal Keywords:

Created on 2021-10-28 06:38 by devesh.dk373, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Screen Shot 2021-10-28 at 1.39.08 PM.png devesh.dk373, 2021-10-28 08:09
Screen Shot 2021-10-28 at 1.41.31 PM.png devesh.dk373, 2021-10-28 08:11
Screen Shot 2021-10-28 at 1.40.04 PM.png devesh.dk373, 2021-10-28 08:14
open-error.png ronaldoussoren, 2021-10-28 09:05
Screen Shot 2021-11-02 at 10.37.23 AM.png devesh.dk373, 2021-11-02 05:08
Messages (17)
msg405149 - (view) Author: Dev Kumar (devesh.dk373) Date: 2021-10-28 06:38
there is an error that is occurring in opening a file or program & after that python is started hanging & not even quitting.
And also the file which is open by python is not even saving or executing.
msg405152 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2021-10-28 07:27
You need to give us some steps to reproduce this error, or we cannot even begin to try to fix it.

What are the minimum steps needed to reproduce the error?
msg405153 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2021-10-28 07:28
Please read:

https://stackoverflow.com/help/minimal-reproducible-example

http://www.sscce.org/
msg405155 - (view) Author: Dev Kumar (devesh.dk373) Date: 2021-10-28 08:08
For that,
First, open IDlE
Then click file & then click on Open 
After that it's showing the error THE OPEN FILE OPERATION FAILED. 
Note: I didn't open any file
msg405158 - (view) Author: Dev Kumar (devesh.dk373) Date: 2021-10-28 08:14
This is the File which is opening every time and not even saving it.
msg405165 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2021-10-28 09:05
Are you using macOS 12 (Monterey)?

I get an error as well using that version of the OS (see open-error). The error happens within a second or two after opening the open dialog, without interacting with the dialog in any way. This is on an M1 laptop running macOS 12.0.1.

This is likely the same issue as described in #44828. In particular, I get the same error message when I run the reproducer script in that issue. 

I'm adding the Tkinter component as well because this is likely a problem
msg405167 - (view) Author: Dev Kumar (devesh.dk373) Date: 2021-10-28 09:19
Yes,
 I also have a MacBook Air M1 & I recently updated it to macOS 12.0.1. 
How to get rid of this error ??
msg405169 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2021-10-28 09:47
See issue #45642
msg405171 - (view) Author: Dev Kumar (devesh.dk373) Date: 2021-10-28 09:55
Ya, I saw it, same thing is happening with me.
But now what?
what is the solution?
msg405175 - (view) Author: Craig Dowkes (craig.dowkes) Date: 2021-10-28 10:40
Same issue for me on Mac OS 12.0.1 hoping for a quick solution to this
msg405178 - (view) Author: E. Paine (epaine) * Date: 2021-10-28 11:48
> This is likely the same issue as described in #44828

I agree; Ned and Marc are working on it. I doubt the patch will be ready for 3.9.8, but it'll probably be in 3.9.9 and 3.10.1.
msg405392 - (view) Author: Dev Kumar (devesh.dk373) Date: 2021-10-31 04:32
What happened?
when is the new version is coming for tackling this problem?
msg405441 - (view) Author: E. Paine (epaine) * Date: 2021-11-01 14:03
> when is the new version is coming for tackling this problem?

The patch was merged in #44828 and backported to 3.8, 3.9 and 3.10 (i.e. it will be in 3.9.8).
msg405489 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-11-02 04:35
See msg405488: an updated macOS installer for 3.10.0 is now available as the default download from python.org.
msg405490 - (view) Author: Dev Kumar (devesh.dk373) Date: 2021-11-02 05:08
Ya, it's resolved but, The saving prompt is not closing after saving the file.
msg405491 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-11-02 05:46
Thanks for the report. We'll look into it on Issue44828.
msg405579 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-11-03 03:06
An update: we believe that the problem with the Save dialog window not closing has been fixed in a revised updated macOS installer for 3.10.0 which is now available as the default download from python.org. See Issue44828 for more details.
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89804
2022-02-21 20:57:22terry.reedysetpull_requests: - pull_request29607
2022-02-21 19:38:34corona10setpull_requests: + pull_request29607
2022-02-21 17:22:12ned.deilysetpull_requests: - pull_request29603
2022-02-21 15:42:55corona10setnosy: + corona10

pull_requests: + pull_request29603
2021-11-03 03:06:25ned.deilysetmessages: + msg405579
2021-11-02 08:03:35terry.reedysetstatus: open -> closed
assignee: terry.reedy ->
components: + macOS, Tkinter, - IDLE
2021-11-02 05:46:21ned.deilysetresolution: wont fix -> duplicate
messages: + msg405491
2021-11-02 05:08:53devesh.dk373setstatus: closed -> open
files: + Screen Shot 2021-11-02 at 10.37.23 AM.png
type: crash -> behavior

components: - macOS, Tkinter
assignee: terry.reedy
messages: + msg405490
resolution: duplicate -> wont fix
2021-11-02 04:35:10ned.deilysetmessages: + msg405489
2021-11-01 14:03:20epainesetmessages: + msg405441
2021-10-31 04:32:10devesh.dk373setmessages: + msg405392
2021-10-28 16:00:57terry.reedysetstatus: open -> closed
title: Error In opening a file through Idle -> Error In opening a file through tkinter on macOS Monterey
resolution: duplicate
assignee: terry.reedy -> (no value)
superseder: tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves
stage: resolved
2021-10-28 11:48:39epainesetnosy: + epaine
messages: + msg405178
2021-10-28 10:40:14craig.dowkessetnosy: + craig.dowkes
messages: + msg405175
2021-10-28 09:55:33devesh.dk373setmessages: + msg405171
2021-10-28 09:47:23steven.dapranosetmessages: + msg405169
2021-10-28 09:19:25devesh.dk373setmessages: + msg405167
2021-10-28 09:05:39ronaldoussorensetfiles: + open-error.png

messages: + msg405165
components: + Tkinter
2021-10-28 08:14:20devesh.dk373setfiles: + Screen Shot 2021-10-28 at 1.40.04 PM.png

messages: + msg405158
2021-10-28 08:11:51devesh.dk373setfiles: + Screen Shot 2021-10-28 at 1.41.31 PM.png
2021-10-28 08:09:23devesh.dk373setfiles: + Screen Shot 2021-10-28 at 1.39.08 PM.png
2021-10-28 08:08:18devesh.dk373setmessages: + msg405155
2021-10-28 07:28:19steven.dapranosetmessages: + msg405153
2021-10-28 07:27:22steven.dapranosetnosy: + steven.daprano
messages: + msg405152
2021-10-28 06:38:12devesh.dk373create