Skip to content

ExtensionError: Could not import extension sphinx.builders.latex #14186

@CarsonPagel

Description

@CarsonPagel

Describe the bug

sphinx.errors.ExtensionError: Could not import extension sphinx.builders.latex (exception: No module named 'roman_numerals')

How to Reproduce

sphinx-err-azdyvsyn.log

Environment Information

Platform:              win32; (Windows-11-10.0.26100-SP0)
Python version:        3.13.3 (tags/v3.13.3:6280bb5, Apr  8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)])
Python implementation: CPython
Sphinx version:        8.2.3
Docutils version:      0.21.2
Jinja2 version:        3.1.6
Pygments version:      2.19.2

Sphinx extensions

Additional context

    Traceback (most recent call last):
      File "C:\Users\userl\AppData\Local\pypoetry\Cache\virtualenvs\python-reporting-5iUxT0VP-py3.13\Lib\site-packages\sphinx\registry.py", line 541, in load_extension
        mod = import_module(extname)
      File "C:\Users\userl\AppData\Local\Programs\Python\Python313\Lib\importlib\__init__.py", line 88, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
               ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
      File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
      File "C:\Users\userl\AppData\Local\pypoetry\Cache\virtualenvs\python-reporting-5iUxT0VP-py3.13\Lib\site-packages\sphinx\builders\latex\__init__.py", line 36, in <module>
        from sphinx.writers.latex import LaTeXTranslator, LaTeXWriter
      File "C:\Users\userl\AppData\Local\pypoetry\Cache\virtualenvs\python-reporting-5iUxT0VP-py3.13\Lib\site-packages\sphinx\writers\latex.py", line 15, in <module>
        from roman_numerals import RomanNumeral
    ModuleNotFoundError: No module named 'roman_numerals'
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "C:\Users\userl\AppData\Local\pypoetry\Cache\virtualenvs\python-reporting-5iUxT0VP-py3.13\Lib\site-packages\sphinx\cmd\build.py", line 414, in build_main
        app = Sphinx(
            srcdir=args.sourcedir,
        ...<14 lines>...
            exception_on_warning=args.exception_on_warning,
        )
      File "C:\Users\userl\AppData\Local\pypoetry\Cache\virtualenvs\python-reporting-5iUxT0VP-py3.13\Lib\site-packages\sphinx\application.py", line 287, in __init__
        self.setup_extension(extension)
        ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
      File "C:\Users\userl\AppData\Local\pypoetry\Cache\virtualenvs\python-reporting-5iUxT0VP-py3.13\Lib\site-packages\sphinx\application.py", line 489, in setup_extension
        self.registry.load_extension(self, extname)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
      File "C:\Users\userl\AppData\Local\pypoetry\Cache\virtualenvs\python-reporting-5iUxT0VP-py3.13\Lib\site-packages\sphinx\registry.py", line 544, in load_extension
        raise ExtensionError(
            __('Could not import extension %s') % extname, err
        ) from err
    sphinx.errors.ExtensionError: Could not import extension sphinx.builders.latex (exception: No module named 'roman_numerals')

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting:responseWaiting for a response from the author of this issuetype:bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions