Skip to content

Gsutil addlhelp crc32c should be updated to account for PEP 668 #1878

@pkillion13

Description

@pkillion13

gslib/addlhelp/crc32c.py describes a nasty issue where gsutil does not come with a pre-compiled version of crcmod. In order to ensure the version is compiled it suggests running the following for ubuntu distros:

sudo apt-get install gcc python3-dev python3-setuptools
sudo pip3 uninstall crcmod
sudo pip3 install --no-cache-dir -U crcmod

On Ubuntu 24 which has python3.12 as the system python, this results in an error:

Image

What are the updated instructions for ensuring a compiled version of crcmod is installed on an ubuntu 24 machine?

I do see that the ubuntu 24 machines i have provisioned have the gsutil version that comes with crcmod precompiled:

$ gsutil version -l | grep crcmod
compiled crcmod: True

Is the compiling issue a stale issue and we no longer have to deal with it on Ubuntu 24 or should the addlhelp be updated? Thanks!

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