-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install with poetry install
broken due to missing pip
executable
#11624
Comments
For reasons that are far beyond me, running Some notes:
I don't know if this is a bug on RTD's part. I will leave the issue open even though it is resolved for me, because this seems rather unusual to me, and the error message appears completely unrelated. |
This is still a bug. |
You will able to use "partial overrides" when #11710 gets merged, with something like the following: build:
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
create_environment:
- python -m pip install poetry
install:
- python -m poetry install --with docs |
We have documented how to use poetry in our documentation: https://docs.readthedocs.com/platform/latest/build-customization.html#install-dependencies-with-poetry |
Details
Expected Result
Using the following config:
The build should successfully use Poetry, as documented here
Actual Result
The build fails on the
poetry install
step.The build also fails when removing the
python -m
substrings from the above configuration.This is the output of the failed step:
This started occurring at some point after 2024-09-05 (latest successful build), with 2024-09-10 as the earliest build that fails. There were no relevant changes to Sphinx, the RTD config, Poetry, dependencies, etc etc etc between these two dates.
Specifically, what appears to happen is this: As part of running
poetry install
, thebuild-system
dependencies frompyproject.yaml
must be installed. Snippet:As far as I can divine, Poetry (or Python?) delegates the installation of this dependency to Pip, and Pip then fails to install
poetry-core
becausepip
does not exist at a given path. I assume that:$READTHEDOCS_VIRTUALENV_PATH
;pip
is (not) located.The text was updated successfully, but these errors were encountered: