GH Python3 Component "No module named Grasshopper.Versioning"

I’m unable to access the Grasshopper Version class in a Python 3 component. Running Rhino 8.6. Has anyone else had this issue? It seems to work fine in an IronPython component.

Thanks!

@bfrederick Versioning is a type in the Grasshopper namespace. IronPython 2 allowed importing types like import Grasshopper.Versioning but this is invalid in Python 3 as Versioning is not a submodule. Importing like this works both in python 3 and 2:

from Grasshopper import Versioning as V

print(V.Version)
2 Likes