Package: src:mkdocstrings-python-legacy
Version: 0.2.7-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:mkdocstrings-python-legacy, so that this is 
still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:131: Building wheel for python3.14 with "build" 
module
I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_mkdocstrings  
* Building wheel...
 - Adding src/mkdocstrings_handlers/_internal/__init__.py -> 
mkdocstrings_handlers/_internal/__init__.py

[... snipped ...]

E           mkdocstrings._internal.handlers.base.CollectionError: module 
'mkdocstrings' has no attribute 'handlers'
E           Traceback (most recent call last):
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 216, 
in main
E               output = json.dumps(process_json(line))
E                                   ~~~~~~~~~~~~^^^^^^
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 128, 
in process_json
E               return process_config(json.loads(json_input))
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 106, 
in process_config
E               obj = loader.get_object_documentation(path, members)
E             File "/usr/lib/python3/dist-packages/pytkdocs/loader.py", line 
336, in get_object_documentation
E               leaf = get_object_tree(dotted_path, self.new_path_syntax)
E             File "/usr/lib/python3/dist-packages/pytkdocs/loader.py", line 
265, in get_object_tree
E               obj = getattr(current_node.obj, obj_name)
E           AttributeError: module 'mkdocstrings' has no attribute 'handlers'. 
Did you mean: 'Handlers'?

mkdocstrings_handlers/python/handler.py:293: CollectionError
____ test_render_themes_templates[mkdocstrings.handlers.rendering-plugin1] _____

module = 'mkdocstrings.handlers.rendering'
plugin = <mkdocstrings._internal.plugin.MkdocstringsPlugin object at 
0x7f522098fed0>

    @pytest.mark.parametrize(
        "plugin",
        [
            {"theme": "mkdocs"},
            {"theme": "readthedocs"},
            {"theme": {"name": "material"}},
        ],
        indirect=["plugin"],
    )
    @pytest.mark.parametrize(
        "module",
        [
            "mkdocstrings.extension",
            "mkdocstrings.inventory",
            "mkdocstrings.loggers",
            "mkdocstrings.handlers.base",
            "mkdocstrings.handlers.rendering",
            "mkdocstrings_handlers.python.handler",
            "mkdocstrings_handlers.python.rendering",
        ],
    )
    def test_render_themes_templates(module: str, plugin: MkdocstringsPlugin) 
-> None:
        """Test rendering of a given theme's templates.
    
        Parameters:
            module: The module to load and render (parametrized).
            plugin: The plugin instance (parametrized fixture).
        """
        handler = plugin.handlers.get_handler("python")
        handler._update_env(plugin.md, config=plugin.handlers._tool_config)  # 
type: ignore[attr-defined]
        options = handler.get_options({})
>       data = handler.collect(module, options)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_themes.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <mkdocstrings_handlers.python.handler.PythonHandler object at 
0x7f52209d6d50>
identifier = 'mkdocstrings.handlers.rendering'
options = {'filters': ['!^_[^_]'], 'group_by_category': True, 'heading_level': 
2, 'members_order': 'alphabetical', ...}

    def collect(self, identifier: str, options: MutableMapping[str, Any]) -> 
CollectorItem:
        """Collect the documentation tree given an identifier and selection 
options.
    
        In this method, we feed one line of JSON to the standard input of the 
subprocess that was opened
        during instantiation of the collector. Then we read one line of JSON on 
its standard output.
    
        We load back the JSON text into a Python dictionary.
        If there is a decoding error, we log it as error and raise a 
CollectionError.
    
        If the dictionary contains an `error` key, we log it  as error (with 
the optional `traceback` value),
        and raise a CollectionError.
    
        If the dictionary values for keys `loading_errors` and `parsing_errors` 
are not empty,
        we log them as warnings.
    
        Then we pick up the only object within the `objects` list (there's 
always only one, because we collect
        them one by one), rebuild it's categories lists
        (see 
[`rebuild_category_lists()`][mkdocstrings_handlers.python.rendering.rebuild_category_lists]),
        and return it.
    
        Arguments:
            identifier: The dotted-path of a Python object available in the 
Python path.
            options: Selection options, used to alter the data collection done 
by `pytkdocs`.
    
        Raises:
            CollectionError: When there was a problem collecting the object 
documentation.
    
        Returns:
            The collected object-tree.
        """
        pytkdocs_options = {}
        for option in ("filters", "members", "docstring_style", 
"docstring_options"):
            if option in options:
                pytkdocs_options[option] = options[option]
    
        logger.debug("Preparing input")
        json_input = json.dumps({"objects": [{"path": identifier, 
**pytkdocs_options}]})
    
        logger.debug("Writing to process' stdin")
        self.process.stdin.write(json_input + "\n")  # type: ignore[union-attr]
        self.process.stdin.flush()  # type: ignore[union-attr]
    
        logger.debug("Reading process' stdout")
        stdout = self.process.stdout.readline()  # type: ignore[union-attr]
    
        logger.debug("Loading JSON output as Python object")
        try:
            result = json.loads(stdout)
        except json.decoder.JSONDecodeError as exception:
            error = "\n".join(("Error while loading JSON:", stdout, 
traceback.format_exc()))
            raise CollectionError(error) from exception
    
        if "error" in result:
            error = result["error"]
            if "traceback" in result:
                error += f"\n{result['traceback']}"
>           raise CollectionError(error)
E           mkdocstrings._internal.handlers.base.CollectionError: module 
'mkdocstrings' has no attribute 'handlers'
E           Traceback (most recent call last):
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 216, 
in main
E               output = json.dumps(process_json(line))
E                                   ~~~~~~~~~~~~^^^^^^
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 128, 
in process_json
E               return process_config(json.loads(json_input))
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 106, 
in process_config
E               obj = loader.get_object_documentation(path, members)
E             File "/usr/lib/python3/dist-packages/pytkdocs/loader.py", line 
336, in get_object_documentation
E               leaf = get_object_tree(dotted_path, self.new_path_syntax)
E             File "/usr/lib/python3/dist-packages/pytkdocs/loader.py", line 
265, in get_object_tree
E               obj = getattr(current_node.obj, obj_name)
E           AttributeError: module 'mkdocstrings' has no attribute 'handlers'. 
Did you mean: 'Handlers'?

mkdocstrings_handlers/python/handler.py:293: CollectionError
____ test_render_themes_templates[mkdocstrings.handlers.rendering-plugin2] _____

module = 'mkdocstrings.handlers.rendering'
plugin = <mkdocstrings._internal.plugin.MkdocstringsPlugin object at 
0x7f522098ec10>

    @pytest.mark.parametrize(
        "plugin",
        [
            {"theme": "mkdocs"},
            {"theme": "readthedocs"},
            {"theme": {"name": "material"}},
        ],
        indirect=["plugin"],
    )
    @pytest.mark.parametrize(
        "module",
        [
            "mkdocstrings.extension",
            "mkdocstrings.inventory",
            "mkdocstrings.loggers",
            "mkdocstrings.handlers.base",
            "mkdocstrings.handlers.rendering",
            "mkdocstrings_handlers.python.handler",
            "mkdocstrings_handlers.python.rendering",
        ],
    )
    def test_render_themes_templates(module: str, plugin: MkdocstringsPlugin) 
-> None:
        """Test rendering of a given theme's templates.
    
        Parameters:
            module: The module to load and render (parametrized).
            plugin: The plugin instance (parametrized fixture).
        """
        handler = plugin.handlers.get_handler("python")
        handler._update_env(plugin.md, config=plugin.handlers._tool_config)  # 
type: ignore[attr-defined]
        options = handler.get_options({})
>       data = handler.collect(module, options)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_themes.py:44: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <mkdocstrings_handlers.python.handler.PythonHandler object at 
0x7f52209d65d0>
identifier = 'mkdocstrings.handlers.rendering'
options = {'filters': ['!^_[^_]'], 'group_by_category': True, 'heading_level': 
2, 'members_order': 'alphabetical', ...}

    def collect(self, identifier: str, options: MutableMapping[str, Any]) -> 
CollectorItem:
        """Collect the documentation tree given an identifier and selection 
options.
    
        In this method, we feed one line of JSON to the standard input of the 
subprocess that was opened
        during instantiation of the collector. Then we read one line of JSON on 
its standard output.
    
        We load back the JSON text into a Python dictionary.
        If there is a decoding error, we log it as error and raise a 
CollectionError.
    
        If the dictionary contains an `error` key, we log it  as error (with 
the optional `traceback` value),
        and raise a CollectionError.
    
        If the dictionary values for keys `loading_errors` and `parsing_errors` 
are not empty,
        we log them as warnings.
    
        Then we pick up the only object within the `objects` list (there's 
always only one, because we collect
        them one by one), rebuild it's categories lists
        (see 
[`rebuild_category_lists()`][mkdocstrings_handlers.python.rendering.rebuild_category_lists]),
        and return it.
    
        Arguments:
            identifier: The dotted-path of a Python object available in the 
Python path.
            options: Selection options, used to alter the data collection done 
by `pytkdocs`.
    
        Raises:
            CollectionError: When there was a problem collecting the object 
documentation.
    
        Returns:
            The collected object-tree.
        """
        pytkdocs_options = {}
        for option in ("filters", "members", "docstring_style", 
"docstring_options"):
            if option in options:
                pytkdocs_options[option] = options[option]
    
        logger.debug("Preparing input")
        json_input = json.dumps({"objects": [{"path": identifier, 
**pytkdocs_options}]})
    
        logger.debug("Writing to process' stdin")
        self.process.stdin.write(json_input + "\n")  # type: ignore[union-attr]
        self.process.stdin.flush()  # type: ignore[union-attr]
    
        logger.debug("Reading process' stdout")
        stdout = self.process.stdout.readline()  # type: ignore[union-attr]
    
        logger.debug("Loading JSON output as Python object")
        try:
            result = json.loads(stdout)
        except json.decoder.JSONDecodeError as exception:
            error = "\n".join(("Error while loading JSON:", stdout, 
traceback.format_exc()))
            raise CollectionError(error) from exception
    
        if "error" in result:
            error = result["error"]
            if "traceback" in result:
                error += f"\n{result['traceback']}"
>           raise CollectionError(error)
E           mkdocstrings._internal.handlers.base.CollectionError: module 
'mkdocstrings' has no attribute 'handlers'
E           Traceback (most recent call last):
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 216, 
in main
E               output = json.dumps(process_json(line))
E                                   ~~~~~~~~~~~~^^^^^^
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 128, 
in process_json
E               return process_config(json.loads(json_input))
E             File "/usr/lib/python3/dist-packages/pytkdocs/cli.py", line 106, 
in process_config
E               obj = loader.get_object_documentation(path, members)
E             File "/usr/lib/python3/dist-packages/pytkdocs/loader.py", line 
336, in get_object_documentation
E               leaf = get_object_tree(dotted_path, self.new_path_syntax)
E             File "/usr/lib/python3/dist-packages/pytkdocs/loader.py", line 
265, in get_object_tree
E               obj = getattr(current_node.obj, obj_name)
E           AttributeError: module 'mkdocstrings' has no attribute 'handlers'. 
Did you mean: 'Handlers'?

mkdocstrings_handlers/python/handler.py:293: CollectionError
=========================== short test summary info ============================
FAILED tests/test_collector.py::test_collect_result_error[retval0-error1\nhello]
FAILED tests/test_collector.py::test_collect_result_error[retval1-error1] - T...
FAILED tests/test_collector.py::test_collect_result_error[retval2-\nhello] - ...
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.extension-plugin0]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.extension-plugin1]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.extension-plugin2]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.inventory-plugin0]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.inventory-plugin1]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.inventory-plugin2]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.loggers-plugin0]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.loggers-plugin1]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.loggers-plugin2]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.handlers.base-plugin0]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.handlers.base-plugin1]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.handlers.base-plugin2]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.handlers.rendering-plugin0]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.handlers.rendering-plugin1]
FAILED 
tests/test_themes.py::test_render_themes_templates[mkdocstrings.handlers.rendering-plugin2]
========================= 18 failed, 7 passed in 3.34s =========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_mkdocstrings/build; python3.13 -m 
pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to