Converting a pickle to python3

Paulo da Silva psdasilva.nospam at netcabonospam.pt
Tue Jun 1 23:48:15 EDT 2010


Hi!

I have a big data structure cpickled into a datafile, by python2.
I tried to unpickle it using python3 but got the followin message:
File "/usr/lib64/python3.1/pickle.py", line 1372, in loads
    encoding=encoding, errors=errors).load()
_pickle.UnpicklingError: invalid load key, 'x'.

Is there a way to "stream" a class in python2 and then get it back in
python3?

Thanks for any help/comments.



More information about the Python-list mailing list