No module named 'Rhino.RhinoDoc' in python 3

When I try to do:

import Rhino.RhinoDoc

it works in the python 2 editor, but in the python 3 editor, I got the following error

ModuleNotFoundError: No module named 'Rhino.RhinoDoc'

Hi Danny,

This looks like a problem with the python 3 editor implementation.

As a workaround you can use the syntax

from Rhino import RhinoDoc

HTH
Jeremy

1 Like

Thx, it works! Sorry for the late reply.
Hope this get fixed later.

Still not fixed…

RhinoDoc is a class, not a module or namespace. Thus, this is correct:

import Rhino

You can also do what is suggested above:

from Rhino import RhinoDoc

– Dale

2 Likes

It is extremely confusing that a class lives at the same hierarchy as namespaces and has a similar naming convention.

You’ll get used to it. I’m sure the change between the two Pythons wasn’t without good reason.