How can I import objc? Where is it?
ImportError: cannot import name ‘objc’ from ‘AppKit’
Can you show the code that fails.
The error message indicates that you did
from AppKit import objc
This is not how it works. Objc
it its own module. Do this instead:
import objc
import vanilla
import os
import json
import textwrap
from AppKit import NSOpenPanel, NSFont, NSColor, NSEvent, NSMenu, NSMenuItem, NSApplication, objc
import GlyphsApp
import AppKit
That’s the beginning of the code
If I change it to this
import vanilla
import os
import json
import textwrap
from AppKit import NSOpenPanel, NSFont, NSColor, NSEvent, NSMenu, NSMenuItem, NSApplication
import GlyphsApp
import AppKit
import objc
Do I need to install pyobjc?
Why pyobjc is not in glyphs plugin manager?
Pyobjc is preloaded in the python installation from Glyphs. So if you use the python from the Plugin Manager, you have it already. If you install your own version, you need to install needed modules yourself, too.