How to solve AttributeError: Can't get attribute 'MYClass' while loading using pickle?

Viewed 18

I have a pickled data set that contains data of MyClass type.

While loading the data, getting the following error

AttributeError: Can't get attribute 'MyClass' on <module '__main__'>

I have tried loading the class into the jupyter environment with

import ModuleContainingMyClass

How can I load the data without dumping the data differently again?

Thank you.

0 Answers
Related