How to install/activate Python for new Glyphs installation on new computer?

I installed the recommended Python module in Glyphs and restarted, but it’s not working. The scripts are not showing in the menu and when I run any code from the Macro window, I just get the dialog again to install Python, to no effect.

What is set in Preferences > Addons > Python Version?

Can you run Glyphs from the Terminal? Drag the app into the Terminal and add /Contents/MacOS/Glyphs\ 3 (make sure to remove the space after .app).

Is there any suspicious output?

What version of Glyphs do you have?

Python version in Preferences is “3.8.2 (Glyphs)”. Also Repositories/GlyphsPythonPlugin exists. If I dig around there, I can find a Python version 3.9.

I can run Glyphs from the Terminal, and it outputs:
2023-01-06 11:02:05.548 Glyphs 3[42849:687635] Glyphs listening on port com.GeorgSeifert.Glyphs3 2023-01-06 11:02:05.548 Glyphs 3[42849:687635] Glyphs listening on port com.GeorgSeifert.Glyphs3.3148 CoreGraphics PDF has logged an error. Set environment variable "CG_PDF_VERBOSE" to learn more. 2023-01-06 11:02:05.635 Glyphs 3[42849:687635] {{0, 0}, {650, 520}} 2023-01-06 11:02:05.635 Glyphs 3[42849:687635] {{0, 0}, {270, 520}} 2023-01-06 11:02:05.636 Glyphs 3[42849:687635] Warning: Column selection is not supported in view-based table and outline views (<NSTableView: 0x12391fe00>).

Version is 3.1.1

When you open that popup, do you see a “3.9 (Glyphs)”? Can you select it and restart?

There is no 3.9 anywhere in the UI. Only “3.8.2 (Glyphs)” in the preferences.
The 3.9 I found in the file system under the Repositories folder. If you expect that to show up in the UI, that means it’s not getting loaded ore recognized.

Can you remove all ‘GlyphsPython’ from the Repositories folder? And install it again? It takes a little while and when you restart to quickly it might be broken.

And you really should get python 3.9. So as long as you have a 3.8 somewhere, something is wrong.

Waiting worked. Thanks. I didn’t know I had to wait because there was no indication in the UI. I just kept restarting directly after the dialog disappeared.