You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: Warning after update to macOS 14 "WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES." #27389
After updating to macOS 14, importing matplotlib generated a warning repeatably in multiple ipython or python sessions:
In [1]: import matplotlib
In [2]: 2023-11-28 21:33:05.230 Python[48540:342836] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
After terminating and restarting the python environment, the warning was no longer generated.
Code for reproduction
importmatplotlib
Actual outcome
❯ ipython
Python 3.8.18 |Enthought, Inc. (x86_64)| (default, Oct 16 2023, 18:04:34)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import matplotlib
In [2]: 2023-11-28 21:33:05.230 Python[48540:342836] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
Expected outcome
In [1]: import matplotlib
Additional information
I'm using Enthought's edm for my Python environment. This warning happened consistently in multiple ipython sessions in the first python environment I opened after upgrading to macOS 14. After closing the shell and re-opening it, the warning is gone.
This phenomenon was briefly discussed here