Python runtime error

After updating to MacOS12.3.1 I got this error. It’d be helpful if Glyphs could explain what I need to do, rather than just giving an error.
Screenshot 2022-04-02 at 09.36.56

​​​​EDIT Now this
Screenshot 2022-04-02 at 09.48.44

I don’t understand, how can this stop working after a system update? And why can’t Glyphs sort itself out automatically?

macOS 12.3 does not include Python 2 anymore, so it needs to be installed manually. Did you update from 12.2 to 12.3.1 directly? In that case, this dialog window is as expected. Install Python 2 (if you don’t have it installed already) and the pyobjc module as described here:

If you already did that when updating to 12.3 and now get the same dialog at 12.3.1, there might be a different issue.

If you already did that when updating to 12.3 and now get the same dialog at 12.3.1, there might be a different issue.

Thanks, I updated from 12.2 to 12.3.1 directly.

I installed Python 2 and pyobjc as described in that other thread, but now all the plugins crash when starting Glyphs and none of my scripts do anything. I’ve tried reinstalling the plugins but that didn’t help.

Can you please update to version 2.6.8-1360.

1 Like

OH! I thought I just updated yesterday but that’s two versions ahead of where I was. Just updated again and it seems to work now, thank you Georg! :smiley:

Ouch, scripts are still not working:

Screenshot 2022-04-03 at 18.03.05

Screenshot 2022-04-03 at 18.04.01

You are running something from the macro panel? That works for me:

import sys, objc
print(sys.version)
print(objc)
2.7.18 (v2.7.18:8d21aa21f2, Apr 19 2020, 20:48:48) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
<module 'objc' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/objc/__init__.pyc'>
1 Like

No, I was running from the Script menu, but because it didn’t work I had a look at the macro window to see the error report.

There is a problem with new pyobjc version. I can circumvent it for now, but that might brake some scripts. But those should be easy to fix.

It’s something wrong on my machine? Or it means nobody can use scripts in G2 on OS12.3?

No. When you install pyobjc now, you get a much newer version as was default in the system before. And there are a few changes in macOS …

I just uploaded a new cutting edge version that tries to fix this. Can you try?