fix(ci): use setup-python version for pipenv virtualenv by VedantMadane · Pull Request #1195 · meilisearch/meilisearch-python · GitHub
Skip to content

fix(ci): use setup-python version for pipenv virtualenv - #1195

Merged
Strift merged 1 commit into
meilisearch:mainfrom
VedantMadane:fix/doc-build-python-version
Jan 20, 2026
Merged

fix(ci): use setup-python version for pipenv virtualenv#1195
Strift merged 1 commit into
meilisearch:mainfrom
VedantMadane:fix/doc-build-python-version

Conversation

@VedantMadane

@VedantMadane VedantMadane commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1193 - The documentation workflow was failing.

Problem

The documentation workflow failed because pipenv was using the system Python 3.12.3 instead of the Python 3.10 installed by actions/setup-python. This caused an ImportError when pipdeptree tried to run in the virtualenv with a different Python version:

ImportError: cannot import name 'InterpreterQueryError' from 'pipenv.vendor.pipdeptree._discovery'

Solution

Explicitly specify --python $(which python) when creating the pipenv virtualenv to ensure it uses the Python version installed by actions/setup-python.

Testing

The fix ensures the virtualenv uses Python 3.10 as intended by the workflow configuration.

Summary by CodeRabbit

Release Notes

  • Chores
    • Enhanced the documentation build workflow to explicitly configure the Python interpreter during dependency installation. This improvement ensures more reliable and consistent documentation builds across different development and deployment environments by properly specifying which Python version is used throughout the entire dependency resolution and installation process.

✏️ Tip: You can customize this high-level summary in your review settings.

The documentation workflow was failing because pipenv was using
the system Python 3.12 instead of the Python 3.10 installed by
actions/setup-python. This caused an ImportError when pipdeptree
tried to run in the virtualenv with a different Python version.

Fix by explicitly specifying --python  to ensure
pipenv creates the virtualenv with the correct Python version.

Fixes meilisearch#1193

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

@Strift Strift added the maintenance Anything related to maintenance (CI, tests, refactoring...) label Jan 20, 2026

@Strift Strift left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @VedantMadane and thanks for this quick fix 🙌

@Strift
Strift added this pull request to the merge queue Jan 20, 2026
Merged via the queue into meilisearch:main with commit 01dfab3 Jan 20, 2026
11 checks passed
@Strift Strift mentioned this pull request Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Anything related to maintenance (CI, tests, refactoring...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix documentation build

2 participants