fancycode / pylzma

Python bindings for the LZMA library
http://www.joachim-bauch.de/projects/pylzma/
GNU Lesser General Public License v2.1
234 stars 72 forks source link

Decompressing encrypted 7z file? #30

Closed rsm-gh closed 9 years ago

rsm-gh commented 9 years ago

Hello, I installed pylzma over Debian jessie by doing "pip install pylzma", and it seems that it is faling to decompress an encrypted 7z file that I just created.


import pylzma, os from py7zlib import Archive7z

with open('./1.7z', 'rb') as f: archive = Archive7z(f, password='abc') # the indentation over github is wrong


Traceback (most recent call last): File "test.py", line 11, in archive = Archive7z(f, password='abc') File "/usr/local/lib/python2.7/dist-packages/py7zlib.py", line 742, in init data += pylzma.decompress(props+tmp, maxlength=folder.unpacksizes[idx]) TypeError: Error while decompressing: 1


Is this a bug, or I'm doing something wrong?

fancycode commented 9 years ago

I'm assuming this is a duplicate of #26 which has already been fixed in master. Could you please try from there? I will push out a new version later today, so this should then also work with pip install pylzma.

fancycode commented 9 years ago

Released as v0.4.8 (v0.4.7 contained the test files and therefore would have been too large) https://pypi.python.org/pypi/pylzma/0.4.8