mcneel / ghpython

A Grasshopper component for Rhino.Python
http://www.food4rhino.com/project/ghpython
117 stars 34 forks source link

Issue importing python modules (AppKit) #75

Open gorjious opened 5 years ago

gorjious commented 5 years ago

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?