С помощью модуля python's zipfile
я не смог открыть зашифрованный zip-файл и обнаружил, что тип сжатия равен 99. Я могу открыть его с помощью WinZip, но я хотел бы автоматизировать процедуру с помощью python.
Стоит ли использовать командную строку 7zip или в самом модуле zipfile
есть какой-то способ решения проблемы? Спасибо!
RuntimeError Traceback (most recent call last)
<ipython-input-43-4c4765b40715> in <module>()
3 print (info.filename, info.date_time, info.file_size, info.compress_type)
4 myzip.setpassword(b'password')
5 with myzip.open('641903.txt','r') as myfile:<-----
6 print(myfile.readline()
641903.txt (2018, 6, 26, 11, 59, 50) 342 99
RuntimeError: Bad password for file '641903.txt'