-
Describe the bug When I try to extract a volume file.it got "py7zr.exceptions.Bad7zFile: invalid header data" Related issue To Reproduce
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):
Test data(please attach in the report): Download the file and code Additional context |
Beta Was this translation helpful? Give feedback.
Answered by
miurahr
Jul 28, 2022
Replies: 2 comments
-
please see https://py7zr.readthedocs.io/en/latest/user_guide.html#extraction-from-multi-volume-archive |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
H2Sxxa
-
Thx,it works successfully now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please see https://py7zr.readthedocs.io/en/latest/user_guide.html#extraction-from-multi-volume-archive