Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load pickle in python3 which is written in python2 #1

Open
parthjpandya opened this issue Aug 14, 2018 · 1 comment
Open

load pickle in python3 which is written in python2 #1

parthjpandya opened this issue Aug 14, 2018 · 1 comment

Comments

@parthjpandya
Copy link

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.

@npow
Copy link
Owner

npow commented Feb 1, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants