Skip to content

build failed on read the docs #9783

Closed
Closed

Description

@cirospat

Describe the bug

hi
this is the report https://readthedocs.org/api/v2/build/15104921.txt
I received from read the docs (build failed).

I'm not a skylled tech and I'd like to understand what kind of measures it need to be activate in order to solve the problem

How to Reproduce

$ git clone https://github.com/.../some_project
$ cd some_project
$ pip install -r requirements.txt
$ cd docs
$ make html SPHINXOPTS="-D language=de"
$ # open _build/html/index and see bla bla

Expected behavior

No response

Your project

https://readthedocs.org/projects/cirospat/builds/15104921/

Screenshots

image

image

OS

Win

Python version

3.7

Sphinx version

1.8.5

Sphinx extensions

import recommonmark from recommonmark.transform
import AutoStructify

Extra tools

No response

Additional context

No response

Activity

  1. joshuacwnewton commented on Oct 27, 2021

    @joshuacwnewton

    We've run into this issue too for several projects. Here's a summary of the problem:

    • The issue is due to the recent release of docutils-0.18 (which is incompatible with Sphinx at the moment, see Update Sphinx to work with docutils-0.18.x #9777).
    • Sphinx pins docutils<0.18, so you can avoid auto-installing docutils-0.18 if your Sphinx installation is up-to-date:
      'docutils>=0.14,<0.18',
    • However, if you're building on RTD, and your project was created prior to October 2020, and you haven't explicitly specified a version of Sphinx to use, RTD will default to sphinx<2.
    • So, sphinx<2 + docutils-0.18 will be installed, causing the error.

    You can pin docutils<0.18, but since Sphinx is already doing that (and will likely become compatible with 0.18 in the future), the solution we instead settled on was to pin a more recent version of Sphinx in our RTD requirements. Please refer to RTD's "Reproducible Builds" page (and specifically the pinning dependencies section) for more information on RTD's recommendations here.


    EDIT: One additional note...

    • If your project pins the version of sphinx using extras_require keyword in your setup.py, and
    • In RTD you're installing your project via the python keyword of your .readthedocs.yaml config file

    Then you can also fix the problem by making sure you set extra_requirements key in your RTD config file.

  2. astrojuanlu commented on Oct 27, 2021

    @astrojuanlu
    Contributor

    This is an excellent summary, thanks @joshuacwnewton ! I'm going to copy it over to readthedocs/readthedocs.org#8616

  3. astrojuanlu commented on Oct 27, 2021

    @astrojuanlu
    Contributor

    In any case, this is an exact duplicate of #9727

  4. locked as resolved and limited conversation to collaborators on Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions