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
fix zstd/zstandard import error #393
fix zstd/zstandard import error #393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two packages for the zstd compression lib in python
https://github.com/indygreg/python-zstandard
and
https://github.com/sergey-dryabzhinsky/python-zstd
and we're using the first one. Installing both can have non trivial side effects.
The release notes of zstandard==0.15.0 mention already that some modules are no longer available in the zstandard
module any longer but rather in zstd
therefore I would like to change the import in our module accordingly instead of adding a redundant dependency
See also #392
So instead, I have to modify the usage of |
From the zstandard docs
|
I think the easiest way forward here is using this commit |
Yes I think too, we can use this commit [ |
Haven't tried downpinning and I do not know why tests do not detect this. However, I do not feel comfortable with installing both zstandard libs. I think reusing d8f4c22 is the proper way to go. The other PR is also supposed to deal with the doc build issues since the doc builds are also failing for some other reason |
Looks good. Please add a changelog entry |
Sure I will make the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
We can merge this now to fix the issue downstream, but I would still like to see a test for this so that we don't run into this or a similar issue next time. |
Ah, I just figured out why we weren't seeing this in our CI: zstandard is available up to 0.15.1 on PyPI but only up to 0.14.1 on conda-forge (what we're using in our CI). |
The conda package has been updated, would be nice to get people fix this when I don't have the time ;) |
Can we have a release with this fix? |
Description:
The _zmsgpack.py (kartothek.core.cube) uses zstd module for the compressor and decompressor technique. I have updated the requirements.txt with the module name.