Skip to content

ablog fails with sphinx 9.0 #313

@daniel-baumann

Description

@daniel-baumann

Hi,

the latest ablog release fails with newer sphinx, in my case on Debian with sphinx 9.0.4. The output is below.

Running Sphinx v9.0.4
loading translations [en]... done

Extension error!

Versions
========

* Platform:         linux; (Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41)
* Python version:   3.13.5 (CPython)
* Sphinx version:   9.0.4
* Docutils version: 0.21.2
* Jinja2 version:   3.1.6
* Pygments version: 2.18.0

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

None.

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

None.

Traceback
=========

      File "/usr/lib/python3/dist-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 ablog (exception: No module named 'ablog')


The full traceback has been saved in:
/tmp/sphinx-err-iv07rf4i.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.
make: *** [Makefile:20: html] Error 2

The full traceback from /tmp/sphinx-err-iv07rf4i.log is:

Traceback
=========

    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/sphinx/registry.py", line 543, in load_extension
        mod = import_module(extname)
      File "/usr/lib/python3.13/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 1324, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'ablog'
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-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 "/usr/lib/python3/dist-packages/sphinx/application.py", line 308, in __init__
        self.setup_extension(extension)
        ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/sphinx/application.py", line 514, in setup_extension
        self.registry.load_extension(self, extname)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-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 ablog (exception: No module named 'ablog')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions