Skip to content

cannot import name 'cbuffer_sizes' from 'numcodecs.blosc' #721

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

Open
aamster opened this issue Apr 7, 2025 · 3 comments
Open

cannot import name 'cbuffer_sizes' from 'numcodecs.blosc' #721

aamster opened this issue Apr 7, 2025 · 3 comments

Comments

@aamster
Copy link

aamster commented Apr 7, 2025

Hi,

It looks like the latest released version 0.16.0 is not compatible with zarr < 3. It gives me

/usr/share/miniconda/envs/ome_zarr_converter/lib/python3.11/site-packages/zarr/util.py:34: in <module>
    from numcodecs.blosc import cbuffer_sizes, cbuffer_metainfo
E   ImportError: cannot import name 'cbuffer_sizes' from 'numcodecs.blosc' (/usr/share/miniconda/envs/ome_zarr_converter/lib/python3.11/site-packages/numcodecs/blosc.cpython-311-x86_64-linux-gnu.so)

Thanks!

@basnijholt
Copy link

I run into this in https://github.com/pipefunc/pipefunc as well.

Pinning to <0.16 seems to fix it.

@jakirkham
Copy link
Member

This is likely due to removal of deprecated functions in PR: #712

Looks like Zarr still needs an update to drop these names: zarr-developers/zarr-python#2963

@LCGaoZzz
Copy link

LCGaoZzz commented Apr 8, 2025

Solution #733

mvandenburgh added a commit to dandi/dandi-archive that referenced this issue Apr 8, 2025
mvandenburgh added a commit to dandi/dandi-archive that referenced this issue Apr 8, 2025
selimnairb added a commit to selimnairb/kluster that referenced this issue Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants