Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zcat dependency on linux #2

Open
brokensound77 opened this issue Jan 13, 2017 · 1 comment
Open

zcat dependency on linux #2

brokensound77 opened this issue Jan 13, 2017 · 1 comment

Comments

@brokensound77
Copy link
Owner

the __gz_handler() method has a dependency on zcat (Linux) whenever incomplete gz compressed data is parsed (which is quite often within actual AL events):

output = subprocess.Popen(["zcat", tmp_file_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()

As a quick, interim solution, I can just skip over this part (sys.platform == 'win32') and return an unable to parse incomplete info in windows, but I would much prefer to be able to do the partial decompress directly within zlib (which I have attempted unsuccessfully several times).

@brokensound77
Copy link
Owner Author

brokensound77 commented Jan 15, 2017

Partially addressed in 6a57200 though it is an interim fix.

Now it will return Currently only able to decompress data on linux... only. Most immediate fix would be to implement gzip.open() directly on the data rather than the file (this is because it references /tmp/ to write the files), while the permanent fix would be to use zlib. Will implement the temp fix soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant