question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED']

See original GitHub issue

Output:

RuntimeError: Decompression 'SNAPPY' not available.  Options: ['GZIP', 'UNCOMPRESSED']

Code:

from fastparquet import ParquetFile

filename = 'somefile.parquet'
pf = ParquetFile(filename)

Environment:

$ python -V; pip list | grep -e fastparquet -e snapp
Python 3.6.5
fastparquet      0.1.6
python-snappy    0.5.3

I’ve tried install snappy instead of python-snappy. Still no joy because with these installed…

python-snappy    0.5.3
snappy           2.6.1
snappy-manifolds 1.0

I get the error:

AttributeError: module 'snappy' has no attribute 'compress'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

13reactions
RabiaMelhemcommented, Jan 26, 2020

RuntimeError: Decompression ‘SNAPPY’ not available. Options: [‘GZIP’, ‘UNCOMPRESSED’]

Try this please :

pip install fastparquet pyarrow dask

4reactions
matanstercommented, Jul 23, 2019

On Ubuntu linux, I simply installed python-snappy from conda-forge, and it simply avoids the error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decompression 'SNAPPY' not available with fastparquet
I circumvented the issue by using GZIP compression to save the Parquet file, then switching to pyarrow engine as that was far faster....
Read more >
RuntimeError: Decompression 'SNAPPY' not available. Options
Options : ['BROTLI', 'GZIP', 'UNCOMPRESSED'] What happened: I got this error as in the title while trying to read parquet files.
Read more >
Decompression 'SNAPPY' not available with fastparquet
I am trying to use fastparquet to open a file, but I get the error: RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED']....
Read more >
成功解决RuntimeError: Decompression 'SNAPPY' not ...
成功解决RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED']目录解决问题解决思路解决方法解决 ...
Read more >
Operations On A Dask Dataframe Fail When Using Snappy ...
Output: RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP' 'UNCOMPRESSED'] Code: from fastparquet import ParquetFile.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found