-
-
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: ['BROTLI', 'GZIP', 'UNCOMPRESSED'] #563
Comments
This seems to be a problem with snappy, not fastparquet. However, I am surprised, as your conda listing does suggest you have snappy/python-snappy correctly installed, and you should not need anything else. Maybe you can try installing them from defaults rather than conda-forge? If you search on your error message, you'll find lots of hits and suggestions, but I don't know what would work for you. cc #488 (this PR stalled, but is not a bad idea) |
@martindurant Thanks a lot for reply! I tried to reinstall them from default, unfortunately it did not help. Weirdly, I tried the same codes as above in jupyter notebook and it works. Do you happen to know what the problem is? |
In that case it sounds like a paths problem, perhaps you are not running the ptyhon you thought you were. Check you have activated the correct conda environment. One thing that sometimes happens to me, is I try to run |
Indeed, it just happend to me somehow. I just uninstalled snappy from all my environments (as default |
@martindurant, a related question. Shouldn't fastparquet tests not run if one does not have snappy installed? |
Ideally there should be a pytest.importorskip to safely deal with the lack of snappy
…On February 13, 2021 10:44:55 AM EST, yohplala ***@***.***> wrote:
> In that case it sounds like a paths problem, perhaps you are not
running the ptyhon you thought you were. Check you have activated the
correct conda environment. One thing that sometimes happens to me, is I
try to run `ipython`, but it's not installed in this environment, so
the system picks up one in another environment, and then I have a mix
of pythons conflicting.
@martindurant, a related question. Shouldn't fastparquet tests not run
if one does not have snappy installed?
It turns out I had the same error message when running `python3 -m
pytest` to check my fastparquet branch, and as a result I installed
SNAPPY to have the test running properly.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#563 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
I come to make an update for a workaround I just found to solve this temprarily: I downloaded the wheel file of python-snappy from the PyPI website and manually installed it via |
Btw. the reason why I used |
What happened:
I got this error as in the title while trying to read parquet files.
What you expected to happen:
This parque file could be read.
Minimal Complete Verifiable Example:
Anything else we need to know?:
Then I tried the following codes from this post
And got the following error:
Could someone please tell me where the problem is?
Environment:
The text was updated successfully, but these errors were encountered: