Skip to content

Issues with Sphinx 9.0.1 #82

@RobertoRoos

Description

@RobertoRoos

I noticed that tests are failing in Sphinx 9.0.2, which was released this week.

Locally I upgrade Sphinx with pip install -U sphinx and then try to build an example with: python -m sphinx -b html .\source\ .\build\html\ -E

The traceback I see:

Extension error!

Versions
========

* Platform:         win32; (Windows-10-10.0.19045-SP0)
* Python version:   3.13.5 (CPython)
* Sphinx version:   9.0.1
* Docutils version: 0.21.2
* Jinja2 version:   3.1.6
* Pygments version: 2.19.2

Last Messages
=============

None.

Loaded Extensions
=================

None.

Traceback
=========

      File "C:\Users\Name\Source\sphinx-argparse\.venv\Lib\site-packages\sphinx\registry.py", line 546, in load_extension
        raise ExtensionError(
            __('Could not import extension %s') % extname, err
        ) from err
    sphinx.errors.ExtensionError: Could not import extension sphinxarg.ext (exception: cannot import name 'mock' from 'sphinx.ext.autodoc' (C:\Users\Name\Source\sphinx-argparse\.venv\Lib\site-packages\sphinx\ext\autodoc\__init__.py))


The full traceback has been saved in:
C:\Users\Name\AppData\Local\Temp\sphinx-err-_h4pz5mk.log

To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.

It seems it's really autodoc that's having an issue.

Also shown in #79 , see https://github.com/sphinx-doc/sphinx-argparse/actions/runs/19854856005/job/56890142496

EDIT: Already reported higher up: sphinx-doc/sphinx#14142

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions