mydata = pickle.load(myfile, "rb")
ValueError: unsupported pickle protocol: 3
This is related to: ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle?
So clearly, with foresight, you must set protocol=2
when you dump your pickle file in python3 if you want to be able to unpickle it with python2.
However what if you unfortunately are stuck with files that were pickled in python 3 using protocol 3 and now you must read them with python2? Is there any workaround?
There is a related question, but it seems to be a different core issue: unpickle OrderedDict from python3 in python2