Skip to content

Conversation

ArthurSonzogni
Copy link
Contributor

The local/install_deps.bash script fails on Python 3.11 due to an outdated pipenv version. The pinned version, 2022.8.5, relies on distutils.sysconfig, which is removed in Python 3.11, causing a ModuleNotFoundError.

This change upgrades pipenv to version 2025.0.4 in Pipfile and updates the Pipfile.lock file accordingly. This new version is compatible with Python 3.11 and resolves the installation failure.

Fixes #4899

The `local/install_deps.bash` script fails on Python 3.11 due to an
outdated `pipenv` version. The pinned version, `2022.8.5`, relies on
`distutils.sysconfig`, which is removed in Python 3.11, causing a
`ModuleNotFoundError`.

This change upgrades `pipenv` to version `2025.0.4` in `Pipfile` and
updates the `Pipfile.lock` file accordingly. This new version is
compatible with Python 3.11 and resolves the installation failure.

Fixes google#4899
@jonathanmetzman
Copy link
Collaborator

/gcbrun

@letitz
Copy link
Collaborator

letitz commented Aug 18, 2025

IIRC a newer pipenv unblocks custom package categories that would simplify the story around Pipfile and src/Pipfile:

clusterfuzz/src/Pipfile

Lines 43 to 45 in da67082

# Hack: We are using this to specify App Engine packages,
# since there is no support for custom package sets.
aiohttp = "==3.10.5"

See https://pipenv.pypa.io/en/latest/pipfile.html#custom-package-categories.

Also it supports platform specifications that might make src/platform_requirements.txt obsolete too: https://pipenv.pypa.io/en/latest/pipfile.html#packages-section

Copy link

This pull request has not had any activity for 60 days and will be automatically closed in two weeks

@github-actions github-actions bot added the stale label Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

python butler.py bootstrap -> ModuleNotFoundError: No module named 'distutils.sysconfig'

3 participants