Skip to content

sphinx raises an exception when trying to build python 3.13 doc with devhelp #12416

Closed
@danigm

Description

@danigm

Describe the bug

Sphinx raises an exception when trying to build the Python 3.13 documentation:

$ cd Doc
$ sphinx-build -a -b devhelp . build/devhelp
...
dumping devhelp index...
 
Exception occurred:
File "/usr/lib/python3.11/site-packages/sphinx/environment/__init__.py", line 603, in get_doctree
    with open(filename, 'rb') as f:
         ^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/abuild/rpmbuild/BUILD/Python-3.13.0b2/Doc/build/devhelp/.doctrees/index.doctree'

This is due to the removal of master_doc = 'contents' in the conf.py file done in this PR: python/cpython#117853

I've reported this in cpython project: python/cpython#120150, but maybe the problem is in sphinx or sphinxcontrib-devhelp project.

How to Reproduce

Download python 3.13 beta code and try to build the doc:

$ cd Doc
$ sphinx-build -a -b devhelp . build/devhelp

Environment Information

Platform:              linux; (Linux-6.9.1-1-default-x86_64-with-glibc2.39)
Python version:        3.11.9 (main, Apr 08 2024, 06:18:15) [GCC])
Python implementation: CPython
Sphinx version:        7.2.6
Docutils version:      0.20.1
Jinja2 version:        3.1.4
Pygments version:      2.18.0

OS:                    **openSUSE Tumbleweed**
sphinxcontrib-devhelp: **1.0.6**

Sphinx extensions

extensions = [
    'asdl_highlight',
    'c_annotations',
    'escape4chm',
    'glossary_search',
    'peg_highlight',
    'pyspecific',
    'sphinx.ext.coverage',
    'sphinx.ext.doctest',
    'sphinx.ext.extlinks',
]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions