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

Issues decompressing bytes from files #252

Closed
brendanofallon opened this issue Sep 28, 2021 · 1 comment
Closed

Issues decompressing bytes from files #252

brendanofallon opened this issue Sep 28, 2021 · 1 comment

Comments

@brendanofallon
Copy link

This is probably user error, but I'm running into an issue compressing a file on the command line and decompressing it inside python. For example:

$ blpk --version                                                            
bloscpack: '0.16.0' python-blosc: '1.10.2' blosc: '1.21.0'

$ blpk compress foo.csv foo.csv.blp

$ ipython
 In [1]: import blosc
 In [2]: blosc.__version__
 Out[2]: '1.10.2'
 In [3]: blosc.decompress(open('foo.csv.blp', 'rb').read())
 ...
 error: Error 39148941 : not a Blosc buffer or header info is corrupted

The file decompresses just fine using blpk on the command line, but doesn't seem to work using python-blosc for some reason. When saving compressed data from within python, I am able to decompress it without issue, but something about the format of the command-line produced data seems to cause an issue with decompression. Similar code works fine with other compression utilities like gzip and lz4

@FrancescAlted
Copy link
Member

This is related to bloscpack package, not this one. In case this is still an issue, please open a ticket there.

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

2 participants