Hi all I am running into an issue pickling a custom class which contains Rhino Guid objects in Rhino 8 in combination with python 3.
Below is the minimal code example (this does not contain my custom class but gives the same behaviour)… which results in the following error:
TypeError: cannot pickle 'Guid' object
Code example:
#! python3
import rhinoscriptsyntax as rs
import pickle
pt = rs.AddPoint((0,0,0))
a = pickle.dumps(pt)
Converting the GUID to a string before pickling works, but is there a way to maintain the Guid class in pickling?
The same code in Rhino 7 and IronPython (using cPickle module) works without errors, and the Guid type is maintained:
import rhinoscriptsyntax as rs
import cPickle as pickle
pt = rs.AddPoint((0,0,0))
a = pickle.dumps(pt)