friends-chatbot icon indicating copy to clipboard operation
friends-chatbot copied to clipboard

load pickle in python3 which is written in python2

Open parthjpandya opened this issue 6 years ago • 1 comments

triturns = joblib.load('blobs/triturns.pkl')

ValueError: You may be trying to read with python 3 a joblib pickle generated with python 2. This feature is not supported by joblib.

parthjpandya avatar Aug 14 '18 05:08 parthjpandya

According to this post, if you specify the encoding as latin1 in pickle.load(f, encoding='latin1') it will work. This code was written in python 2, so there may be other changes required to make it work with python 3.

npow avatar Feb 01 '19 20:02 npow