-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
enum_tools.autoenum fails with Sphinx >= 9.0.0. Downgrading Sphinx to <9.0.0 seems to resolve the issue.
There are some incompatible changes in autodoc mentioned by Sphinx 9.0.0 release notes:
https://www.sphinx-doc.org/en/master/changes/9.0.html#incompatible-changes
Steps to Reproduce
$ pip install "sphinx>=9.0.0" enum_tools
$ cat docs/source/conf.py
...
extensions = [
"enum_tools.autoenum",
"sphinx.ext.autodoc",
]
...
$ make html
Actual result:
Running Sphinx v9.1.0
loading translations [en]... done
Extension error!
Versions
========
* Platform: linux; (Linux-6.17.12-300.fc43.x86_64-x86_64-with-glibc2.42)
* Python version: 3.13.9 (CPython)
* Sphinx version: 9.1.0
* Docutils version: 0.21.2
* Jinja2 version: 3.1.6
* Pygments version: 2.19.2
Last Messages
=============
None.
Loaded Extensions
=================
None.
Traceback
=========
File "/home/user/project/.venv/lib/python3.13/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 enum_tools.autoenum (exception: cannot import name 'logger' from 'sphinx.ext.autodoc' (/home/user/project/.venv/lib/python3.13/site-packages/sphinx/ext/autodoc/__init__.py))
Expected result:
build succeeded
Version
- Operating System: Fedora 43
- Python: CPython 3.13.9
- enum_tools: 0.13.0
Installation source
pypi
romantolkachyov, carterbox, adamtheturtle and casbjorn
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working