QuestionAccepted answer
Python 3.7 Error: Unsupported Pickle Protocol 5
hubbs5
29 Jun 2026, 23:13 UTC
31.7K views1
I'm trying to restore a pickled config file from RLLib (json didn't work as shown in this post), and getting the following error:
config = pickle.load(open(f"{path}/params.pkl", "rb"))
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-28-c964561b863c> in <module>
----> 1 config = pickle.load(open(f"{path}/params.pkl", "rb"))
ValueError: unsupported pickle protocol: 5
Python Version = 3.7.0
How can I open this file in 3.7?
1 answer
2 question comments
Use comments to ask for clarification. Post a solution as an answer.
BananaPermalink
01 Jul 2026, 11:13 UTC
Do you know in which version this file was saved?
hubbs5Permalink
02 Jul 2026, 23:13 UTC
Unfortunately, I don't. Trying to track that down though.