benjie-git / CardStock

CardStock is a cross-platform tool for quickly and easily building programs. It provides a drawing-program-like editor for visually laying out your programs' parts, and a code editor for adding event-driven python code.
Mozilla Public License 2.0
249 stars 9 forks source link

Mac Sonoma: App does not run due to new security setting #12

Closed mikaelho closed 1 year ago

mikaelho commented 1 year ago

After installing pip install cardstock, trying to run cardstock in terminal results in this message: Python[61225:7000989] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.

Have not looked deeper, but seems to be a recent issue caused by the latest MacOS update. Could not find a related issue reported for wxPython (yet?).

benjie-git commented 1 year ago

Thanks! Does cardstock still seem to run ok anyway? Or is this breaking the app?

mikaelho commented 1 year ago

App does not start, only the error shown in terminal and OS reports that Python has stopped unexpectedly.

benjie-git commented 1 year ago

Thanks. I'm guessing this is a PyInstaller bug. I don't have a machine running Sonoma currently, but I'll try to get this working soon. In the meantime, you could try out my web-based cardstock tool: https://cardstock.run/

benjie-git commented 1 year ago

I just installed cardstock on Sonoma and it's working fine on my end. I'm on an intel mac, and installed wxpython 4.2.1. I'm using python3.11 (wxpython isn't yet compatible with python3.12)

benjie-git commented 1 year ago

Could you test out the latest MacOS build from here: https://github.com/benjie-git/CardStock/releases/tag/v0.99.4 and let me know if it works for you? It works for me on Intel Sonoma. Thanks!

mikaelho commented 1 year ago

Thanks. I am on Mac M1, but the issue is probably the Python 3.12 I was using. Looks like you have blocked 3.12 from the supported versions now, so will take me a little more time to set 3.11 up and test.

mikaelho commented 1 year ago

Tried the basic pip install cardstock with Python 3.11, and it works fine.