Can not extract a volum archive
H2Sxxa opened this issue · comments
Describe the bug
When I try to extract a volume file.it got "py7zr.exceptions.Bad7zFile: invalid header data"
Related issue
To Reproduce
- prepare a volum 7z archive
- use this code to extract it
import py7zr
print(py7zr.__version__)
with py7zr.SevenZipFile("file.7z.001") as f:
f.extractall()
Expected behavior
Traceback (most recent call last):
File "....test.py", line 3, in <module>
with py7zr.SevenZipFile("file.7z.001") as f:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\py7zr\py7zr.py", line 399, in __init__
raise e
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\py7zr\py7zr.py", line 385, in __init__
self._real_get_contents(password)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\py7zr\py7zr.py", line 425, in _real_get_contents
raise Bad7zFile("invalid header data")
py7zr.exceptions.Bad7zFile: invalid header data
Environment (please complete the following information):
- OS: Windows 7
- Python 3.8.10
- py7zr version: 0.19.0
Test data(please attach in the report):
Download the file and code
Additional context
Thx,it works successfully now