Apr-01-2020, 03:16 AM
Hello,
I have developed my code that has several hierarchies of objects, nested in lists, nested in other objects etc, also uses external libraries and is quite complicated to post here.
All I want to do is to create an object and reuse that same object later because it takes quite a lot of time to compute.
I read that I can do a pickle.dump but I get the following error
Tried shelve but I'm getting the exact same error as well.
I have developed my code that has several hierarchies of objects, nested in lists, nested in other objects etc, also uses external libraries and is quite complicated to post here.
All I want to do is to create an object and reuse that same object later because it takes quite a lot of time to compute.
I read that I can do a pickle.dump but I get the following error
TypeError: can't pickle _cffi_backend.CData objectsIs there any other way to save my object to a file?
Tried shelve but I'm getting the exact same error as well.