Skip to content

COMP: sphinx-dev failure with "cannot import name 'AttributeDocumenter' from 'sphinx.ext.autodoc" #222

@bsipocz

Description

@bsipocz

New sphinx-dev failure due to something that got merged in the past week (as #220 had a green status and is now failing after merge)

==================================== ERRORS ====================================
_ ERROR collecting .tox/py313-test-sphinxdev/lib/python3.13/site-packages/sphinx_automodapi/tests/test_autodoc_enhancements.py _
ImportError while importing test module '/home/runner/work/sphinx-automodapi/sphinx-automodapi/.tox/py313-test-sphinxdev/lib/python3.13/site-packages/sphinx_automodapi/tests/test_autodoc_enhancements.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.13.9/x64/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../.tox/py313-test-sphinxdev/lib/python3.13/site-packages/sphinx_automodapi/tests/test_autodoc_enhancements.py:5: in <module>
    from ..autodoc_enhancements import type_object_attrgetter
../../.tox/py313-test-sphinxdev/lib/python3.13/site-packages/sphinx_automodapi/autodoc_enhancements.py:6: in <module>
    from sphinx.ext.autodoc import AttributeDocumenter
E   ImportError: cannot import name 'AttributeDocumenter' from 'sphinx.ext.autodoc' (/home/runner/work/sphinx-automodapi/sphinx-automodapi/.tox/py313-test-sphinxdev/lib/python3.13/site-packages/sphinx/ext/autodoc/__init__.py)
=========================== short test summary info ============================
ERROR ../../.tox/py313-test-sphinxdev/lib/python3.13/site-packages/sphinx_automodapi/tests/test_autodoc_enhancements.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.65s ===============================
py313-test-sphinxdev: exit 2 (1.42 seconds) /home/runner/work/sphinx-automodapi/sphinx-automodapi/.tmp/py313-test-sphinxdev> pytest --pyargs sphinx_automodapi pid=3556
  py313-test-sphinxdev: FAIL code 2 (27.16=setup[25.49]+cmd[0.25,1.42] seconds)
  evaluation failed :( (27.22 seconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions