Questions tagged [pylzma]

PyLZMA provides a platform independent way to read and write data that has been compressed or can be decompressed by the LZMA library by Igor Pavlov.

9 questions
2
votes
1 answer

Python generated lzma file with missing uncompressed size

According to https://svn.python.org/projects/external/xz-5.0.3/doc/lzma-file-format.txt The lzma header should look something like this 1.1. Header +------------+----+----+----+----+--+--+--+--+--+--+--+--+ | Properties | Dictionary Size | …
1
vote
1 answer

LZMA Decompression Returns Empty String

I have a program that is supposed to compress some data with LZMA, but it returns an empty string. # this is as much as I can isolate it. For full code, visit https://replit.com/@inyourface3445/Text-Viewer-from-Bsace-64-URL#test.py import…
0
votes
1 answer

Is there a way to compress a .npy file more tightly than by using the LZMA algorithm?

I am trying to compress some .npy files as tightly as possible. What I have read is that typically to do this you use the LZMA algorithm. So far I have tried xz tar compression level 9, and python lzma compression. This seems effective but I was…
Mira Welner
  • 409
  • 4
  • 15
0
votes
0 answers

python error:IsADirectoryError: [Errno 21] Is a directory

I am trying to decompress a list of .xz file and save them in a single folder,my code is show below import shutil path = "/content/drive/MyDrive/dataset_demo/Posts/" output_path = "/content/sample_data/output/" os.chdir(path) for file_com in…
Eave_Z
  • 5
  • 4
0
votes
1 answer

how can i use LZMA2 into python?

i know there is a module called ZipFile with LZMA, but how can i use LZMA2 multithread? I've tried the ZipFile and backports modules, but (apparently) neither of the 2 have that option.
jhown
  • 1
  • 1
0
votes
0 answers

Python lzma unable to load joblib

I have a scikit learn pipeline that I serialize using: with lzma.open('outputs/baseModel_LR.joblib',"wb") as f: dill.dump(pipeline, f) When I try to open the file and load the pipeline using: with lzma.open('outputs/baseModel_LR.joblib',"rb")…
Obiii
  • 698
  • 1
  • 6
  • 26
0
votes
2 answers

No module named '_lzma'

I'm working on Ubuntu 22.04 LTS and I'm trying to debug my python code within a virtual environment created with the help of pyenv and poetry 1.1.13 as a package manager. I get this message in the debugging console trying to…
nepipi6200
  • 1
  • 1
  • 1
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
-1
votes
1 answer

Python Compressed file ended before the end-of-stream marker was reached. But file is not Corrupted

i made a simple request code that downloads a file from a Server r = requests.get("https:.../index_en.txt.lzma") index_en= open('C:\...\index_en.txt.lzma','wb') index_en.write(r.content) index_en.close when i now extract the file manually in the…
Manu Add1
  • 3
  • 3