Lattyware / unrpa

A program to extract files from the RPA archive format.
http://www.lattyware.co.uk/projects/unrpa/
GNU General Public License v3.0
589 stars 74 forks source link

LookupError: unknown encoding: bytes, python 3.3 is not supported? #16

Closed Chtobi closed 5 years ago

Chtobi commented 5 years ago

It seems, this script is not fully supports "python 3.x" . I've got this error in Python 3.3.7

  File "f:\unrpa.py", line 207, in get_index
    index = pickle.loads(zlib.decompress(f.read()), encoding="bytes")
LookupError: unknown encoding: bytes

The reason is simple: python 3.3 doesn't support encoding="bytes" , only encoding="ASCII" So this script requires python 3.4 or later.

Lattyware commented 5 years ago

Thanks for the heads-up. I'll fix the documentation to note you need >=3.4.