ImportError: generic_type: type "RenderSettings" referenced unknown base type "BND_CommonObject"

Hi Guys, I’ve just installed rhino3dm via pip, and then following a start-up example code, but couldn’t execute. I figured out that something is wrong with the library itself but don’t know the cause, here is an example.

from rhino3dm import *
a = 1

COINSOLE:

c:/Users/zach/Desktop/3dZach.py
Traceback (most recent call last):
File “c:/Users/zach/Desktop/3dZach.py”, line 1, in
from rhino3dm import *
File “C:\Users\zach\AppData\Local\Programs\Python\Python37\lib\site-packages\rhino3dm_init_.py”, line 3, in
from ._rhino3dm import *
ImportError: generic_type: type “RenderSettings” referenced unknown base type “BND_CommonObject”

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\zach> python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

from rhino3dm import *
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\zach\AppData\Local\Programs\Python\Python37\lib\site-packages\rhino3dm_init_.py”, line 3, in
from ._rhino3dm import *
ImportError: generic_type: type “RenderSettings” referenced unknown base type “BND_CommonObject”

I get a different error:

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "C:\Users\Nathan\AppData\Roaming\Python\Python37\site-packages\rhino3dm\__init__.py", line 3, in <module>
    from ._rhino3dm import *
ImportError: generic_type: type "FileReference" is already registered!```

I just deleted version 0.3.2 from PyPi. Download 0.3.1 and things should work. I just added 0.3.2 this week and must have introduced a bug

1 Like