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
Pickle TypeError: a bytes-like object is required, not 'str' #31
Comments
Googling the error would get the answer quickly, but because you asked it here I might as well give you the answer.
should be
You should do the same for any other times this error appears. For some explanation, this will make cPickle load the file as a byte object instead of String, as Sources: |
That wasn't a solution I was looking for. |
I used the module P.S. this isn't my project ;) |
Can load the file as below code? It gives the pickle TypeError: a bytes-like object is required, not 'str' |
Getting this error:
Traceback (most recent call last):
File "chatbot.py", line 301, in
main()
File "chatbot.py", line 35, in main
sample_main(args)
File "chatbot.py", line 60, in sample_main
saved_args = cPickle.load(f)
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered: