readthedocs.org: Builds broken with `poetry` 1.8

Following the install dependencies with poetry guide, I get the following error with poetry 1.8:

no theme named 'furo' found (missing theme.conf?)

However, the theme is clearly installed!

- Installing furo (2024.1.29)

Specifically installing poetry 1.7 with fixes the issue:

- pip install 'poetry~=1.7.0'

I don’t see anything in the poetry 1.8 release notes to as a cause for the breakage. If you can pin down what the problem is, I’ll gladly follow-up with an issue on the poetry issue tracker. 🙇

Details

Expected Result

The build to pass with poetry 1.8 👍

Actual Result

The build fails with poetry 1.8 👎

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Reactions: 1
  • Comments: 16 (10 by maintainers)

Commits related to this issue

Most upvoted comments

For the record, I got a completed build in RTF with:

version: 2

build:
  os: "ubuntu-22.04"
  tools:
    python: "3.11"
  jobs:
    post_create_environment:
      # Install poetry and the export plugin for pip
      - python -m pip install poetry poetry-plugin-export
    post_install:
      - poetry export -f requirements.txt --without-hashes --only docs -o only-docs.txt
      - pip install --requirement only-docs.txt

I prefer you workaround @ewjoachim since is simpler.

Thanks!

For the record, I got a running build in RTD with:

version: 2

build:
  os: "ubuntu-22.04"
  tools:
    python: "3.10"
  jobs:
    post_create_environment:
      - python -m pip install poetry
    post_install:
      - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH python -m poetry install --with docs

I’ll open a PR for this to become “the way”. When we can improve this, we will.