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

Unsupported pickle protocol error with Python 3.7 #42

Open
Bioruebe opened this issue Jan 3, 2023 · 0 comments
Open

Unsupported pickle protocol error with Python 3.7 #42

Bioruebe opened this issue Jan 3, 2023 · 0 comments

Comments

@Bioruebe
Copy link

Bioruebe commented Jan 3, 2023

Problem

Newer archives (Ren'Py 8) fail to extract when using Python 3.7, because the built-in pickle library does not support the pickle 5 format.

Unrpa crashes with the message

File "unrpa\__main__.py", line 196, in <module>
  File "unrpa\__main__.py", line 189, in main
  File "unrpa\__init__.py", line 123, in extract_files
  File "unrpa\__init__.py", line 217, in get_index
ValueError: unsupported pickle protocol: 5

Solution

There are two options to address this issue: either require Python 3.8.3+ or - for better compatibility - use the pickle5 library to make the newer format available on older versions of python. (Preferably as a dynamic import, so python 3.8 and newer don't require an additional dependency.)

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

1 participant