Open carmenbianca opened 1 month ago
For reasons that are far beyond me, running poetry lock
to re-generate poetry.lock
has fixed the issue. See this PR: https://github.com/fsfe/reuse-tool/pull/1081
Some notes:
poetry.lock
files.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 https://github.com/readthedocs/readthedocs.org/pull/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
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.