-
-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Description
Describe the bug
py7zr throws UnsupportedCompressionMethodError when opening a file and retrieving .archiveinfo()
To Reproduce
Create a BCJ archive: 7z a -mf=BCJ test.7z test.txt (create some test.txt before...)
Verify with 7z that it's BCJ - my archive was LZMA:12k BCJ.
Open file with 7zr and use archiveinfo().
import py7zr
archive = py7zr.SevenZipFile('test.7z', 'r').archiveinfo()Crash:
File "...\py7zr\compression.py", line 433, in get_methods_names
methods_names.append(methods_name_map[coder['method']])
KeyError: b'\x03\x03\x01\x03'
Environment (please complete the following information):
- OS: W7x64
- Python: 3.8.1 x64
- py7zr version: https://github.com/miurahr/py7zr/tree/1a1c07fe83937478b48cbdb90fbb0d1ce8765ee0 (aka the newest master as of today)
LuminairPrime
Metadata
Metadata
Assignees
Labels
No labels