Unable to find assembly 'RhinoCommon'

Hi, I have install Rhino 7 and PyCharm. In a Conda environment with python 3.8 I pip install rhinoinside and import it. However, when I exectute rhinoinside.load() I get the following error:

clr.AddReference("RhinoCommon")
System.IO.FileNotFoundException: Unable to find assembly 'RhinoCommon'.
   at Python.Runtime.CLRModule.AddReference(String name)

If I send in the path to the Rhino system folder to rhinoinside.load(rhino_dir) it works. However, this should not be necessary and I would like to resolve the issue rather than working around it. Actually, I had the problem a couple of years ago as well, but I cannot remember how I managed to solve it. Anyone who have experienced this and have a solution?

I wonder if this has to do with a number parsing bug I fixed but haven’t updated the rhinoinside package for on pypi yet. Do you use a comma or period as a decimal separator?

I use a comma as decimal separator.

I just pushed a new version of rhinoinside for cpython to pypi. Try installing this version to see if if fixes the issue you are seeing

Thank you, I will!

The new rhinoinside version seems to resolve the issue. Thank you very much!

1 Like