"Python cannot open files in the “property list” format."
brandazzle opened this issue · comments
When attempting to use the application built with buildapp-select.command
to open a plist, I get a popup with the following error: The document “config.plist” could not be opened. Python cannot open files in the “property list” format.
This does not happen when the app is already open and I open the plist with Cmd-O or by double-clicking in Finder; it only happens when double-clicking on a plist file with the app listed as its default opening application, when the app is not already running.
Hey there - what version of python are you using, and where did you get it? I know the older "universal" installers from python.org had some issues with the .app bundle and tk, but as of 3.10.x, I've have no issues.
-CorpNewt
I'm using Python 3.10, from the latest Universal installer from python.org.
Huh - that's odd, so am I and it works fine here. Can you zip up your copy of ProperTree.app and send it here?
-CorpNewt
The shebang points to #!/usr/local/bin/python3
- could you try building it with the full path to the python bin?
For reference, here's mine: #!/Library/Frameworks/Python.framework/Versions/3.10/bin/python3
-CorpNewt
I couldn't figure out how to change it before the build, so I modified the ProperTree.command within the built appbundle; this did not change the behavior.