You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def_serialize_data_processor(self) ->bytes:
"""Returns the serialized representation of the data processor object. :return: The serialized representation of the data processor object. """# See below dill issue on by-value serialization of classes not in# __main__:# https://github.com/uqfoundation/dill/issues/424# The current workaround is provided here:# https://github.com/pulumi/pulumi/pull/7755obj_type=type(self.data_processor)
obj_module=obj_type.__module__try:
obj_type.__module__='__main__'returnpickle.dumps(self.data_processor, recurse=True)
finally:
obj_type.__module__=obj_module
The text was updated successfully, but these errors were encountered:
Pending a fix to uqfoundation/dill#424, remove workaround provided by pulumi/pulumi#7755. Offending code reproduced below:
The text was updated successfully, but these errors were encountered: