friends-chatbot
friends-chatbot copied to clipboard
load pickle in python3 which is written in python2
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.
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.