dsoprea / PyEasyArchive

A very intuitive and useful adapter to libarchive for universal archive access.
MIT License
96 stars 33 forks source link

password encrypted zip files raise exception #20

Closed SkyLeach closed 7 years ago

SkyLeach commented 7 years ago

afaict libarchive does support this, does pyeasyarchive provide a hook?


 '_asdict',
 '_fields',
 '_make',
 '_replace',
 'count',
 'index']
Traceback (most recent call last):
  File "/Users/magregor/tmp/test_lafh.py", line 22, in <module>
    for block in entry.get_blocks():
  File "/Users/magregor/.virtualenvs/imgunbundler/lib/python2.7/site-packages/libarchive/adapters/archive_read.py", line 219, in get_blocks
    for block in _read_by_block(self.reader_res):
  File "/Users/magregor/.virtualenvs/imgunbundler/lib/python2.7/site-packages/libarchive/adapters/archive_read.py", line 210, in _read_by_block
    (r,))
ValueError: Read failed (archive_read_data_block): (-30)```
dsoprea commented 7 years ago

Nope.

On Wed, Jan 18, 2017 at 3:05 PM, Matt Gregory notifications@github.com wrote:

afaict libarchive does support this, does pyeasyarchive provide a hook?

'_asdict', '_fields', '_make', '_replace', 'count', 'index'] Traceback (most recent call last): File "/Users/magregor/tmp/test_lafh.py", line 22, in for block in entry.get_blocks(): File "/Users/magregor/.virtualenvs/imgunbundler/lib/python2.7/site-packages/libarchive/adapters/archive_read.py", line 219, in get_blocks for block in _read_by_block(self.reader_res): File "/Users/magregor/.virtualenvs/imgunbundler/lib/python2.7/site-packages/libarchive/adapters/archive_read.py", line 210, in _read_by_block (r,)) ValueError: Read failed (archive_read_data_block): (-30)```

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dsoprea/PyEasyArchive/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/AArrauIj6OjLAFnX5mLY9EI7qeoH3zqpks5rTnCcgaJpZM4LnVPm .