Blosc / bloscpack

Command line interface to and serialization format for Blosc
BSD 3-Clause "New" or "Revised" License
122 stars 27 forks source link

Value error when compressing file #80

Closed eduardosm closed 5 years ago

eduardosm commented 5 years ago
Traceback (most recent call last):
  File "/bin/blpk", line 11, in <module>
    load_entry_point('bloscpack==0.14.0', 'console_scripts', 'blpk')()
  File "/usr/lib/python3.7/site-packages/bloscpack/cli.py", line 460, in main
    metadata_args=MetadataArgs())
  File "/usr/lib/python3.7/site-packages/bloscpack/file_io.py", line 464, in pack_file
    metadata_args=metadata_args)
  File "/usr/lib/python3.7/site-packages/bloscpack/abstract_io.py", line 153, in pack
    max_app_chunks=max_app_chunks
  File "/usr/lib/python3.7/site-packages/bloscpack/headers.py", line 295, in __init__
    % (last_chunk, chunk_size))
ValueError: 'last_chunk' (854860) is larger than 'chunk_size' (854856)

When trying to compress the following file: test.zip

blosc 1.14.4 python-blosc 1.6.1 bloscpack 0.14.0

esc commented 5 years ago

Can you try #81 please?

eduardosm commented 5 years ago

Tested, it seems to work without issues

esc commented 5 years ago

@eduardosm thanks for the feedback, the issue will be fixed in the next release of Bloscpack.