GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Secure coding is not enabled for restorable state! WARNING on Mac OS Sonoma 14.0 · Issue #110950 · python/cpython

Secure coding is not enabled for restorable state! WARNING on Mac OS Sonoma 14.0 #110950

New issue
Copy link
New issue
Copy link
Closed
Closed
Secure coding is not enabled for restorable state! WARNING on Mac OS Sonoma 14.0#110950
Copy link
Assignees
ned-deily
Labels
OS-macpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@eamarten
eamarten
opened on Oct 16, 2023
Issue body actions

Bug report

Bug description:

With turtle_test.py containing

from turtle import home
home()

running

python turtle_test.py

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

  • gh-110950: add upstream Tk fixes to macOS installer. #111041
  • [3.11] gh-110950: add upstream Tk fixes to macOS installer. (GH-111041) #112293
  • [3.12] gh-110950: add upstream Tk fixes to macOS installer. (GH-111041) #112294
Reacted by Benjamin and AmirSoroush

Activity

Next
  1. eamarten
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Oct 16, 2023
  2. AlexWaygood
    added
    OS-mac
    on Oct 16, 2023
  3. terryjreedy commented on Oct 17, 2023

    @terryjreedy
    terryjreedy
    on Oct 17, 2023
    Member
    More actions

    For anyone's information, turtle.home should turtle screen to appear with the turtle at the home (origin) position and orientation.

  4. ronaldoussoren commented on Oct 17, 2023

    @ronaldoussoren
    ronaldoussoren
    on Oct 17, 2023
    Contributor
    More actions

    Minimal reproducer: import tkinter; tkinter.Tk().

    This is a problem in Tk, not in Tkinter as we don't use Cocoa in the Tkinter source code.

    Reacted by Christopher Chavez
  5. ronaldoussoren
    added
    topic-tkinter
    on Oct 17, 2023
  6. terryjreedy
    added
    pendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is provided
    on Oct 17, 2023
  7. ugandhar84 commented on Oct 18, 2023

    @ugandhar84
    ugandhar84
    on Oct 18, 2023
    More actions

    i'm also facing same error - do we have nay resolution for this?

  8. aivarannamaa commented on Oct 18, 2023

    @aivarannamaa
    aivarannamaa
    on Oct 18, 2023
    Contributor
    More actions

    I just created a ticket in Tcl/Tk project: https://core.tcl-lang.org/tk/tktview/10b38a7a7c13235296cb0fbc6205f591d5ed15a4

    Reacted by Christopher Chavez, Loc and Oleg Iarygin
  9. SimpungaElias commented on Oct 18, 2023

    @SimpungaElias
    SimpungaElias
    on Oct 18, 2023
    More actions

    what to do with this error?

    Reacted by bounlu
  10. aivarannamaa commented on Oct 18, 2023

    @aivarannamaa
    aivarannamaa
    on Oct 18, 2023
    Contributor
    More actions

    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.

  11. ronaldoussoren commented on Oct 18, 2023

    @ronaldoussoren
    ronaldoussoren
    on Oct 18, 2023
    Contributor
    More actions

    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.

  12. SimpungaElias commented on Oct 18, 2023

    @SimpungaElias
    SimpungaElias
    on Oct 18, 2023
    More actions

    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

  13. BenjaminIsMyName commented on Oct 18, 2023

    @BenjaminIsMyName
    BenjaminIsMyName
    on Oct 18, 2023
    More actions

    Minimal reproducer with pygame:

    import pygame
    
    pygame.init()
    screen = pygame.display.set_mode((800, 600))
  14. chrstphrchvz
    added a commit that references this issue on Oct 18, 2023

    pythongh-110950: add upstream fix to macOS installer

    2cae8a5
  15. chrstphrchvz commented on Oct 18, 2023

    @chrstphrchvz
    chrstphrchvz
    on Oct 18, 2023
    Contributor
    More actions

    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

    @SimpungaElias, that issue sounds unrelated to the Secure coding is not enabled for restorable state! warning.

  16. 11 remaining items

  17. ned-deily
    added a commit that references this issue on Nov 21, 2023

    gh-110950: add upstream Tk fixes to macOS installer. (GH-111041)

    d67f947
  18. miss-islington
    added 2 commits that reference this issue on Nov 21, 2023

    pythongh-110950: add upstream Tk fixes to macOS installer. (pythonGH-…

    79e822d

    pythongh-110950: add upstream Tk fixes to macOS installer. (pythonGH-…

    d641520
  19. ned-deily
    added 2 commits that reference this issue on Nov 21, 2023

    [3.11] gh-110950: add upstream Tk fixes to macOS installer. (GH-111041)…

    253ad78

    [3.12] gh-110950: add upstream Tk fixes to macOS installer. (GH-111041)…

    fab9824
  20. ned-deily commented on Nov 21, 2023

    @ned-deily
    ned-deily
    on Nov 21, 2023
    Member
    More actions

    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.

  21. ned-deily
    closed this as completedon Nov 21, 2023
  22. iDevSpread commented on Dec 4, 2023

    @iDevSpread
    iDevSpread
    on Dec 4, 2023
    More actions

    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?

    Reacted by Sofia Imperatore
  23. Heilige-49 commented on Dec 4, 2023

    @Heilige-49
    Heilige-49
    on Dec 4, 2023 via email
    More actions
    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: ***@***.***>
  24. u-aida commented on Dec 13, 2023

    @u-aida
    u-aida
    on Dec 13, 2023
    More actions

    I got same error pysimplegui with matplotlib.

    My environment configuration is
    Python: 3.12 (Because of pysimplegui do not work with SONOMA)
    Mac OS: 14.2 (Preview version of Sonoma had same issue)

    Python problem is happened after I update to Sonoma.

  25. ned-deily commented on Dec 18, 2023

    @ned-deily
    ned-deily
    on Dec 18, 2023
    Member
    More actions

    @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.

  26. Wangsd823 commented on Dec 18, 2023

    @Wangsd823
    Wangsd823
    on Dec 18, 2023
    More actions

    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 * root = Tk() myLabel = Label(root,text="helloworld") myLabel.pack() root.mainloop()

    I had the same problem.

    Python: 3.9.6
    Tkinter: 8.5
    Mac OS: 14.2

  27. ned-deily commented on Dec 18, 2023

    @ned-deily
    ned-deily
    on Dec 18, 2023
    Member
    More actions

    I had the same problem.

    Python: 3.9.6 Tkinter: 8.5 Mac OS: 14.2

    There seems to be a lot of confusion and conflation of issues here. This issue is closed and was about the secure coding warning that may be seen when using currently released versions of Tk, which is what Python's tkinter uses as a GUI library, on macOS 14 Sonoma. This message is only a warning and can be ignored. As noted above, a patch to eliminate the warning has been applied to the Tk released with the most recent python.org macOS installers (for 3.13.0a2, 3.12.1, and 3.11.7). If you use Python on macOS from another source, the Tk versions used by them would need to be patched to eliminate the warning.

    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 python3 supplied with Xcode and the Command Line Tools. Python 3.9.6 is also very old and 3.9 is now in the security-fix-only phase of its life cycle: the most recent release of Python 3.9 is 3.9.18 and the last full bugfix release with binary installers was 3.9.13. Python 3.11.x and 3.12.x are the current fully-supported release versions.

  28. python
    locked as resolved and limited conversation to collaborators on Dec 18, 2023
  29. ronaldoussoren commented on Dec 19, 2023

    @ronaldoussoren
    ronaldoussoren
    on Dec 19, 2023
    Contributor
    More actions

    Note that /usr/bin/python3 also loudly complains about the usage of tkinter:

    DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
    

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ned-deily
    ned-deily

Labels

OS-macpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtopic-tkintertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.