Skip to content

Failed to invoke sphinx.ext.intersphinx module #9718

Closed

Description

@tk0miya

Describe the bug

Failed to invoke sphinx.ext.intersphinx module

How to Reproduce

$ python -m sphinx.ext.intersphinx https://example.com/objects.inv
Traceback (most recent call last):
  File "/Users/tkomiya/.pyenv/versions/3.9.7/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/tkomiya/.pyenv/versions/3.9.7/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/tkomiya/work/sphinx/sphinx/ext/intersphinx.py", line 40, in <module>
    from sphinx.addnodes import pending_xref
  File "/Users/tkomiya/work/sphinx/sphinx/addnodes.py", line 16, in <module>
    from sphinx.util import docutils
  File "/Users/tkomiya/work/sphinx/sphinx/util/__init__.py", line 35, in <module>
    from sphinx.util.nodes import (caption_ref_re, explicit_title_re,  # noqa
  File "/Users/tkomiya/work/sphinx/sphinx/util/nodes.py", line 183, in <module>
    addnodes.versionmodified,
AttributeError: partially initialized module 'sphinx.addnodes' has no attribute 'versionmodified' (most likely due to a circular import)

Expected behavior

Check inventory without error

Your project

N/A

Screenshots

No response

OS

Mac

Python version

3.9.7

Sphinx version

HEAD of 4.x

Sphinx extensions

intersphinx

Extra tools

No response

Additional context

No response

Activity

  1. added this to the 4.3.0 milestone on Oct 9, 2021
  2. added a commit that references this issue on Oct 9, 2021
    2adc41c
  3. added a commit that references this issue on Oct 10, 2021
    56f97d7
  4. locked as resolved and limited conversation to collaborators on Nov 10, 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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions