Scripts don't work

I can’t run any scripts. They appear in the script menu, but nothing happens when I try to run them. I’ve installed Glyphs Python via Plugin Manager/Modules, and selected it in Settings. Uninstalled and reinstalled, doesn’t make a diff. Restarted the app each time.
Apple silicon/M1, MacOS14.4.1, Glyphs 3.2.1 (3258)

What does the Macro Panel show as a message? Please search the forum for this issue. There are numerous topics on this problem.

Nothing: I tried running
import objc
print(objc)
which was posted on another thread, but nothing happens.

You have Python installed; do you have the other three Modules installed also?

Thanks for the suggestion. I just installed all the modules,restarted the app, still get nothing:

What is selected in Preferences > Addons > Python Version?

I just noticed the ticked box next to “Use system…” I must have forgotten to uncheck it after I installed the other modules. I unticked it and not I’m getting something in the Macro, at least (scripts still aren’t working):

Traceback (most recent call last):
  File "Set Tool Shortcuts.py", line 10
    from mekkablue import mekkaObject
ModuleNotFoundError: No module named 'mekkablue'
<module 'objc' from '/Users/ben/Library/Application Support/Glyphs 3/Repositories/GlyphsPythonPlugin/Python.framework/Versions/3.11/lib/python3.11/site-packages/objc/__init__.py'>
<module 'objc' from '/Users/ben/Library/Application Support/Glyphs 3/Repositories/GlyphsPythonPlugin/Python.framework/Versions/3.11/lib/python3.11/site-packages/objc/__init__.py'>
<module 'objc' from '/Users/ben/Library/Application Support/Glyphs 3/Repositories/GlyphsPythonPlugin/Python.framework/Versions/3.11/lib/python3.11/site-packages/objc/__init__.py'>

Did you change the name of the subfolders in the Scripts folder? Not a good idea.

Same issue here. Output area just flashes print outputs and becomes empty again immediately (3300)

Can you remove the “GlyphsPythonPlugin” folder, restart Glyphs, and then re-install it from the Plugin Manager?

I just tested this problem on my Sonoma 14.4.1 machine using G3.3 [3300] and find the same problems with some scripts although one or two did work.

This on the Sonoma machine:
Traceback (most recent call last):
File “Guides through All Selected Nodes.py”, line 9
from mekkablue.geometry import angle
ModuleNotFoundError: No module named ‘mekkablue’

I also tested this same script on my Intel 10.13.6 machine using G3.3 [3300] and it works fine, no problems.

I tried Georg’s suggestion about manually deleting the Glyphs Python folder on Sonoma and it did not fix the issue.

I only tested two of Rainer’s scripts, one failed (above), the other worked.

Does not work. But I got closer:

print('Hello')

works, but

Glyphs.clearLog()
print('Hello')

doesn’t. (Prints, then deletes the output afterwards)

Possible clues:
G3.3 [3300] OS 14.4.1 Plugin Manager shows all of my Installed Plugins in the Installed tab but for Scripts it shows I have none installed, when I have quite a few.

Solution, at least for me:
When I first got the Sonoma machine I just copied most things over from my Intel machine. I have now reinstalled them through the Plugin Manager. Everything works now as it should.

The same here: After the automatic upgrade to 3.3 (3300), some scripts (MekkaBlue) no longer work.
For example, “Report highest and low…” starts, runs, I see “Result text” for a millisecond. Then the macro window is empty.
I have not changed anything except updating Glyphs!
This is currently causing some confusion in my work processes.

  • Removed Python from Plugins Manager
  • Relaunch
  • Installed Python from Plugins Manager
  • Relaunch
  • Selected Python 3.11.6 (Glyphs) in Settings/Addons
  • Relaunch

Still not working:

Glyphs.clearLog()
print("hello world")

Mac OS 14.4.1 (23E224)

I fixed the Glyphs.clearLog().

1 Like

Not that I recall, how do I check that/what should they be?