ghpython icon indicating copy to clipboard operation
ghpython copied to clipboard

Issue importing python modules (AppKit)

Open gorjious opened this issue 6 years ago • 0 comments

Hello I have the Mac version of Rhino/Grasshopper and I have been having an issue importing Python modules in GH. One thing I am not sure of is if ghpython is the same as the python node that comes default in mac GH (on the food4Rhino site it lists ghpython as being for PC). I am specifically having an issue importing AppKit.

With simple typing 'import AppKit' in the python editor window I receive the following error:

screenshot 2019-02-23 at 19 58 04

I have also tried the sys.path method to direct the path to the pyobjc folder which contains both AppKit and objc. When I am on the top-level pyobjc folder I receive the following error:

screenshot 2019-02-23 at 19 57 49

Any idea what the issue is and what I can do to import AppKit/Pyobjc and other modules?

gorjious avatar Feb 24 '19 17:02 gorjious