Looking here, https://docs.python.org/3/library/pickle...-unpickled, it seems only native python objects can be pickled, and not all of them. Thus someone wrote an extension to pickle called dill, but it too only pickles native python objects. The message about cffi backend indicates that some of what you are trying to pickle is in C i.e. a C object not fully exposed to python. My newb guess is that you must examine which parts of your object are not pure python and convert them to pure python objects that can be pickled. You will need to code to convert to pure python object and convert from pure python back to your object type.
Write object to file
Write object to file
|
|
Messages In This Thread |
Write object to file - by medatib531 - Apr-01-2020, 03:16 AM
RE: Write object to file - by perfringo - Apr-01-2020, 03:58 AM
RE: Write object to file - by medatib531 - Apr-01-2020, 03:12 PM
RE: Write object to file - by perfringo - Apr-01-2020, 04:07 PM
RE: Write object to file - by medatib531 - Apr-01-2020, 04:53 PM
RE: Write object to file - by BrendanD - Apr-01-2020, 05:45 PM
RE: Write object to file - by medatib531 - Apr-01-2020, 06:03 PM
RE: Write object to file - by BrendanD - Apr-01-2020, 06:25 PM
|
Users browsing this thread: 1 Guest(s)