Python Bindings for LZMA.
Questions tagged [py7zlib]
8 questions
12
votes
3 answers
How to read from a text file compressed with 7z?
I would like to read (in Python 2.7), line by line, from a csv (text) file, which is 7z compressed. I don't want to decompress the entire (large) file, but to stream the lines.
I tried pylzma.decompressobj() unsuccessfully. I get a data error. Note…

Yariv
- 12,945
- 19
- 54
- 75
2
votes
0 answers
7z segmentation fault when creating archive
I'm using 7zip to compress a large folder into an archive and I'm password protecting it.
I installed 7zip through the mirrors:
wget…

williamrfry
- 350
- 3
- 11
2
votes
1 answer
Cannot install py7zlib package using Python 3.6
I am trying to install py7zlib package, however I am getting below error:
ERROR: Could not find a version that satisfies the requirement py7zlib (from versions: none)
ERROR: No matching distribution found for py7zlib
I am using Python 3.6.
I…

b36
- 105
- 1
- 8
2
votes
1 answer
Decompressing 7z archive using py7zlib gives *** ValueError: data error during decompression
My code is as follows (from here: Example of how to use PyLZMA)
import py7zlib
...
#filename.__class__ is
archive = py7zlib.Archive7z(filename)
data =…

A G
- 997
- 2
- 18
- 36
1
vote
1 answer
pysftp + py7zr decompress is hanging on archive
A little context : a client is putting 7-zip archive on a remote sftp server and i process them.
My issue is that on some 7-zip file my program is hanging and the decompress function is never ending but all the files of the archive are found…

nathdev
- 61
- 5
0
votes
0 answers
Extract a file from zip inside 7z
I have a 7z file that contains folders and can also have .zip archives inside it.
Given a filepath inside the zip archive, I would like to extract only this file without its path. So far, all I managed to do is to extract a file that's inside a…
0
votes
0 answers
Memory leak when using py7zlib to open .7z archives
I am trying to use py7zlib to open and read files stored in .7z archives. I am able to do this, but it appears to be causing a memory leak. After scanning through a few hundred .7z files using py7zlib, Python crashes with a MemoryError. I don't have…

David Pitchford
- 61
- 7
0
votes
0 answers
How to install the pylzma library on Linux?
The pylzma library is a requirement for another tool that I would like to use. I am new to python and programming and have a few questions:
I have already followed the procedure to download and install pylzma from the following site since it seems…

S.Poon
- 1
- 2