System.Uri not Working

I’m having issues importing System.Uri in Python after updating to Rhino WIP 8.0.22263.16305, 2022-09-20

URI error

Seems like a similar issue to: RH-66656

Anyone else having this problem?

import System
import clr
clr.AddReference("System.Runtime")

uri = System.Uri("https://www.rhino3d.com/")
print(uri)

– Dale

1 Like

Thanks for the simple fix @dale !
:slight_smile:

Thanks for reporting the issue, this is likely due to the change to using .NET 6 runtime by default. I’ve created RH-70626 to fix that up, as we shouldn’t require you to add a new reference just to use basic types.

1 Like