-
Notifications
You must be signed in to change notification settings - Fork 120
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
pickle5 problem? #14
Comments
Also present in Ren'Py 8.0.1 with MacOS 15.5 and Python 3.10. |
It seems #13 would fix this, are you able to check? |
I had the same problem and just running with python 3.9.13 fixes the pickle 5 problem On debian the current shebang
Defaults to python 2.7 for me #13 fixes the next problem |
I tested this steps having Python 3.6:
Make sure you are using correct Python version supporting pickle5 natively as interpreter and #13 should fix this problem. |
Thanks for all the work. First I applied the patch. As said above Debian Buster still uses Python 2.7 and that gives the following error:
I then changed the first line to python3 which is version 3.7 and that gives:
I then installed through pip3 the packages cloudpickle and pickle5 as suggested elsewhere on the internet. This gives still the same error. I then changed the import line as follows:
This is suggested here. That works like a charm. So the patch does it job, but I think there is more to be added. This newer archive is not compatible with Python 2.7 where the older archives work. So there should be some kind of test there? And also an check for importing the newer pickle5? |
I hadn't realized pickle 5 was a 3.8 thing. @shizmob do you want me to amend my PR to add a check on the python version and import that module if needed? |
The pickle5 backport says it works from Python 3.5 to 3.7 because from 3.8.3 it is standard. I can confirm this backport works for me in Python 3.7. However it also means that older versions can not extract the newer archives. |
#13 fixes it with later python 3s (3.9, 3.10) as far as I can see. |
I can confirm that #13 fixes the |
I can also confirm that I was perfectly able to unpack multiple Ren'Py 8 archives with the change in #13 |
I just pushed a change that will attempt to use |
I'm trying to unpack a Ren'Py 8.0.0 archive with the latest version. I get the following error:
Traceback (most recent call last): File "./rpatool", line 363, in <module> archive = RenPyArchive(archive, padlength=padding, key=key, version=version, verbose=arguments.verbose) File "./rpatool", line 65, in __init__ self.load(file) File "./rpatool", line 230, in load self.indexes = self.extract_indexes() File "./rpatool", line 111, in extract_indexes indexes = _unpickle(contents) File "./rpatool", line 24, in _unpickle return pickle.loads(data, encoding='latin1')
System is Debian Buster. I tried to force python3 and installing pickle5 through pip, but that gives the same error. May be I'm doing something wrong? Older archives works flawlessly.
The text was updated successfully, but these errors were encountered: