Skip to content

ModuleNotFoundError: No module named 'crc32c' #3592

Closed

Description

@lispandfound

Zarr version

v3.1.3

Numcodecs version

v0.16.4

Python Version

3.13

Operating System

Linux

Installation

Using uv into virtual environment

Description

The just released numcodecs removes the crc32 dependency in favour of the google-crc32c library, but codecs/crc32c_.py in the latest pip release 3.1.3 requires crc32c.py on line 8. Obviously this is fixed in main, but it means that pip install zarr won't produce a working zarr install.

Steps to reproduce

# /// script
# requires-python = ">=3.11"
# dependencies = [
#   "zarr==3.1.3",
# ]
# ///
#

from zarr.codecs import crc32c_

Additional output

No response

Activity

  1. added
    bugPotential issues with the zarr-python library
    on Nov 20, 2025
  2. d-v-b commented on Nov 20, 2025

    @d-v-b
    Contributor

    thanks for this report, and sorry for the breakage! I'm going to get a zarr-python release out ASAP that should fix the problem of a broken pip install. For older versions of zarr-python we may need to consider reverting dropping crc32c from numcodecs.

  3. d-v-b commented on Nov 20, 2025

    @d-v-b
    Contributor
  4. jhamman commented on Nov 20, 2025

    @jhamman
    Member

    @lispandfound - are you able to install crc32c to your environment directly?

  5. lispandfound commented on Nov 20, 2025

    @lispandfound
    Author

    I certainly can do this, and it does resolve the issue when I do. The main problem with this approach is that the crash occurs in automated testing workflows so I'd have to issue updates to all those repositories to fix the issue downstream. I'm not in a huge rush, so I would rather just wait for this issue to be resolved than update it.

  6. d-v-b commented on Nov 20, 2025

    @d-v-b
    Contributor

    IMO the best solution is something that doesn't require users to manually change their dependency declaration. I think the only way to achieve that is with a rapid release of a new version of numcodecs that fixes this problem.

  7. d-v-b commented on Nov 20, 2025

    @d-v-b
    Contributor

    see zarr-developers/numcodecs#802. If we merge these changes and issue a numcodecs 0.16.5 release the breakage will be fixed. @zarr-developers/python-core-devs please look into this, or a comparable solution.

  8. maxrjones commented on Nov 21, 2025

    @maxrjones
    Member

    Thanks again for the quick bug report! This was fixed in zarr by #3515 and in numcodecs (for earlier zarr versions) in zarr-developers/numcodecs#802.

  9. d-v-b commented on Nov 21, 2025

    @d-v-b
    Contributor

    I opened #3597 as part of the post-mortem for this issue

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

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions