Skip to content

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

Open

Description

@aamster

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!

Activity

  1. basnijholt commented on Apr 7, 2025

    @basnijholt
  2. jakirkham commented on Apr 7, 2025

    @jakirkham
    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

  3. LCGaoZzz commented on Apr 8, 2025

    @LCGaoZzz

    Solution #733

  4. added a commit that references this issue on Apr 29, 2025
  5. yarikoptic commented on Apr 21, 2026

    @yarikoptic

    oh hoh, ping on this anniversary + 2 weeks .

  6. added a commit that references this issue on Apr 21, 2026
  7. Zeitsperre commented on May 13, 2026

    @Zeitsperre

    A user from one of my libraries ran into this issue recently as well:

    Traceback (most recent call last):
      File "C:\Users\username\redacted\main.py", line 4, in <module>
        import xscen
    ...
    ImportError: cannot import name 'cbuffer_sizes' from 'numcodecs.blosc' (C:\ProgramData\anaconda3\envs\env_name\Lib\site-packages\numcodecs\blosc.cp313-win_amd64.pyd)
    

    Downgrading numcodecs seemed to be the workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions