Error module rhinoscriptsyntax not found

my code test is :

import rhinoscriptsyntax as rs
centerpoint = [1, 2, 4]
rs.AddCircle( centerpoint, 5.0 )

I get this error :

Traceback (most recent call last):
File “C:\Users\User\Desktop\”, line 1, in
import rhinoscriptsyntax as rs
ModuleNotFoundError: No module named ‘rhinoscriptsyntax’

Is this in MatrixGold too? Can you import Rhino or Grasshopper.Kernel?

Presumably sys.path hasn’t been changed?

It’s a bit of a hack (it can break other code like certain plug-ins do), but Python won’t know the difference between importing pure Python standard libraries and importing your own modules. So if you copy those files from an ordinary installation you can paste them in to a path on sys.path. I think rhinoscriptsyntax depends on rhutil and various other special libraries that might be difficult to find without a normal Rhino installation however.

1 Like

Also make sure you run this inside Rhino.

1 Like

And, make sure the IronPython plug in is actually installed and loaded: