when trying to get some scripts to run I am seeing odd issues with Python environments and I am not really sure what is the current “supposed to be” state for G 3.
In the Preferences, I have these — from another thread I gathered there should be a “Glyphs” python version there as well?
Particularly, there seems to be no “GlyphsApp” module available. As you can see in the above (two up) Macro window screenshot, the path seems to include the G 3 folders though.
Hard to understand what should be used and why it’s failing. Also, my Python environments I use are installed via pyenv. Is there supposed to be Glyph’s own Python version in the preferences? And if so, how do you install packages there? Or if any can be picked, how and where from do you get it to use the GlyphsApp module (which supposedly needs the objc to be already loaded, first)?
Install the Glyphs Python from Window → Plugin Manager → Modules → Python. After installing, relaunch Glyphs for the option to appear in preferences. Select it and relaunch Glyphs again to load the new Python. Other Python version might also work, but with the Glyphs version you are on the save side of plugin compatibility.
What’s the point of being able to pick the python versions, if you need to install the Glyphs-python and can only use that one (I mean, … you likely want access to the GlyphsApp module, so any other python versions will always miss that one, no?)?
So with Glyph’s python active, how do I pip install for Glyphs to find those modules? Without hijacking stuff into one of those path folders?
Hm, not sure then what is causing this. Seems to be same python environment (?), but in the macro window objc seems missing. Maybe something to do with the PATH order?
Also, @GeorgSeifert , this defeats the entire point of having separate pyenv versions if you have to install whatever some script needs into your global python which all pyenv’s inherit from when created, no? I mean, I cannot have several brew python@3.9’s, but only the one I’m messing up now…