-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Secure coding is not enabled for restorable state! WARNING on Mac OS Sonoma 14.0 #110950
Comments
For anyone's information, |
Minimal reproducer: This is a problem in Tk, not in Tkinter as we don't use Cocoa in the Tkinter source code. |
i'm also facing same error - do we have nay resolution for this? |
I just created a ticket in Tcl/Tk project: https://core.tcl-lang.org/tk/tktview/10b38a7a7c13235296cb0fbc6205f591d5ed15a4 |
what to do with this error? |
It looks just a warning to me. I haven't seen any misbehaviour in my app after upgrading to Sonoma. So I guess for now you can just ignore it. |
That's correct, this is just a warning from a system library about using functionality that's deprecated in macOS Sonoma. |
I am using PyCharm, so the problem is that the UI is not working, all parameters are set well, but all I am seeing is white color background |
Minimal reproducer with pygame: import pygame
pygame.init()
screen = pygame.display.set_mode((800, 600)) |
@SimpungaElias, that issue sounds unrelated to the |
Upstream Tcl/Tk has implemented the method suggested by the warning. I have verified that doing so prevents the warning in Tcl/Tk. However, I currently do not have a Python framework build which I can both observe the warning from Tkinter and see whether the upstream fix makes a difference. I have opened #111041 in case Python is interested in backporting the upstream fix to the macOS installers, and assuming it does work for Tkinter. |
Did anyone find a solution to this problem? Also this problem started popping up when I installed Pyinstaller. |
I work with Python 3.11.1 and I use matplotlib.pyplot. |
I am facing the same issue and don't really know how to fix it |
This is warning, not an error and therefore you don't have to do anything. The cause for the warning is fixed in the codebase of Tcl/Tk and will be included in a future release of Tcl/Tk and then in a future release of Python. |
Ok, thanks for the reply
…On Mon, Nov 13, 2023 at 9:53 AM Ronald Oussoren ***@***.***> wrote:
I work with Python 3.11.1 and I use matplotlib.pyplot. Since Sonoma 14.0 I
get a warning: Secure coding is not enabled for restorable state! When I
don't plot there is no warning. Can Apple resolve this for us?
I am facing the same issue and don't really know how to fix it
This is warning, not an error and therefore you don't *have* to do
anything. The cause for the warning is fixed in the codebase of Tcl/Tk and
will be included in a future release of Tcl/Tk and then in a future release
of Python.
—
Reply to this email directly, view it on GitHub
<#110950 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDVHVZLLDKUZCARYBGJ5V73YEHNX5AVCNFSM6AAAAAA6C2NL6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBXG4YDAOBUGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
wait guys i also have this problem, when i implement tkinter even though it pops up a showing window, there is nothing on it even though i followed the steps, but it is just not printing, in the console, there is this line of warning which is simular to the description above. from tkinter import * |
I also had such a warning, but only when working with matplotlib |
Yes also having the same problem here… |
I am facing the same issue and I am fed up. I decided to use Pycharm and it works swiftly. |
Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) Co-authored-by: Ned Deily <[email protected]>
…111041) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (pythongh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (pythongh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (pythongh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
…111041) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (pythongh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (pythongh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (pythongh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
… (#112293) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
… (#112294) Add upstream Tk patches for three problems affecting tkinter users: - Update macOS installer to include a fix accepted by upstream Tcl/Tk for a crash encountered after the first :meth:`tkinter.Tk` instance is destroyed. (gh-92603) - Update macOS installer to include an upstream Tcl/Tk fix for the ``ttk::ThemeChanged`` error encountered in Tkinter. (gh-71383) - Update macOS installer to include an upstream Tcl/Tk fix for the ``Secure coding is not enabled for restorable state!`` warning encountered in Tkinter on macOS 14 Sonoma. (gh-110950) (cherry picked from commit d67f947) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Ned Deily <[email protected]>
Thanks for the PR. The fix for Tk in the macOS installer has now been merged for release in 3.13.0a2, 3.12.1, and 3.11.7. |
I got the same issue, too. Do you fix it? |
Presently I am using Pycharm and it's not having any issue somehow and
works pretty well to date.
…On Mon, Dec 4, 2023 at 1:50 AM Feynman_W ***@***.***> wrote:
I am using PyCharm, so the problem is that the UI is not working, all
parameters are set well, but all I am seeing is white color background
I got the same issue, too. Do you fix it?
—
Reply to this email directly, view it on GitHub
<#110950 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDVHVZLG37ATJUF54NYQSILYHUM57AVCNFSM6AAAAAA6C2NL6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGY3TENBWGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I got same error pysimplegui with matplotlib. My environment configuration is Python problem is happened after I update to Sonoma. |
@u-aida: Note above: "The fix for Tk in the macOS installer has now been merged for release in 3.13.0a2, 3.12.1, and 3.11.7." And this only applies to those Pythons for macOS downloadable from the python.org website. If you are using a Python from another source, contact its distributor and ask them to update their version of Tk. |
I had the same problem. Python: 3.9.6 |
There seems to be a lot of confusion and conflation of issues here. This issue is closed and was about the Any other behavior you may be seeing is a different problem, unrelated to this issue. It might be a Tk problem or it might be a Python problem or it might be a usage problem, but it is not this problem. Anyone wanting to pursue another problem should follow the usual procedures, like looking for help in one of the many forums and checking the Python and Tk issue trackers for similar reports. In this particular case, be aware that Tk 8.5 is extremely old and unsupported and likely has many problems on more recent macOS releases but unfortunately is still shipped by Apple in macOS and is used by the |
Note that
It is highly unlikely that Apple will ever fix issues like this with Tk or upgrade Tk to a newer version. If you want to use Tkinter with Python you need to install a newer version. |
Bug report
Bug description:
With turtle_test.py containing
running
outputs:
2023-10-17 08:21:27.948 Python[19831:20908209] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
CPython versions tested on:
3.12
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: