-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED'] #366
Comments
The block that inserts Snappy into the list of compressions looks like this:
You can try to run that yourself to find out where it is failing. |
Exactly the same error:
|
Perhaps you have another package that happens to be called snappy? |
I think you are probably right. See below. But without snappy or snappy-manifolds I'm back to original runtime error.
|
Yes, it looks like intake/python-snappy#73 . You will have to remove or remove SnaPy , or make a new environment without it, I'm afraid. |
I think I've been through that loop before - FYI I've been trying to work out how to read parquet files in either Javascript or Python for several hours now :-( Here we go with a brand new virtual env...
Messy. |
It seems that snappy didn't compile successfully for you, or for some reason your pip isn't using binaries. I use conda for everything, where binaries and their dependencies are much better defined and reliable. I suggest installing fastparquet and python-snappy with conda ( https://conda.io/miniconda.html for minimal install). |
Argh I hope it works nicely with pyenv. I really like pyenv. |
The only wheel that seems to exist is 0.5.3-cp36-cp36m-macosx_10_7_x86_64, so unless you match that, you'd need to compile your own, and figure out what is failing. You may want to download the source from https://github.com/andrix/python-snappy/ and follow instructions there by hand. |
Ooh - I think I might have got somewhere with the following...
Taken from the bottom of your link @martindurant thanks for the help - fingers crossed I can finally start to have a play with this module. |
I'll close this, then - @lqueryvg , feel free to post on python-snappy if you have more info to give people that might be looking there. |
On Ubuntu linux, I simply installed python-snappy from conda-forge, and it simply avoids the error. |
RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED'] Try this please : pip install fastparquet pyarrow dask |
I only had to install |
@RabiaMelhem -- I'm trying to replace pyarrow with fastparquet. As I understand, only one of those should be needed. So installing both not a good answer for me. |
@bhazard if you are running into problems I would recommend open a new issue. With that said, I understand the desire to reduce space but installing pyarrow and fastparquet into the same python env should not cause any conflicts |
Indeed, fastparquet does not pull in snappy since, although it is common, you can handle many parquet files without it. It appears that pyarrow has an everything philosophy on this (perhaps it even bundles and compiles the snappy code with pip, not sure). In any case, if you pip install snappy, you will need the C libraries - for example by executing the apt-get command above, or the equivalent for your system. If you install via conda, then the binary compiled version can be installed directly (python-snappy: the python library along, snappy: the compiled C library). |
Output:
Code:
Environment:
I've tried install snappy instead of python-snappy. Still no joy because with these installed...
I get the error:
The text was updated successfully, but these errors were encountered: