Package: src:python-asyncclick Version: 8.1.7.2-1 Severity: serious Tags: ftbfs trixie sid
Dear maintainer: During a rebuild of all packages in unstable, your package failed to build: -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild I: pybuild base:311: python3.12 setup.py clean /usr/lib/python3/dist-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) [... snipped ...] def get_async_backend(asynclib_name: str | None = None) -> type[AsyncBackend]: if asynclib_name is None: asynclib_name = sniffio.current_async_library() # We use our own dict instead of sys.modules to get the already imported back-end # class because the appropriate modules in sys.modules could potentially be only # partially initialized try: > return loaded_backends[asynclib_name] E KeyError: 'trio' /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:162: KeyError During handling of the above exception, another exception occurred: pyfuncitem = <Function test_args[trio---foo "one two"-one two\n]> @pytest.hookimpl(tryfirst=True) def pytest_pyfunc_call(pyfuncitem: Any) -> bool | None: def run_with_hypothesis(**kwargs: Any) -> None: with get_runner(backend_name, backend_options) as runner: runner.run_test(original_func, kwargs) backend = pyfuncitem.funcargs.get("anyio_backend") if backend: backend_name, backend_options = extract_backend_and_options(backend) if hasattr(pyfuncitem.obj, "hypothesis"): # Wrap the inner test function unless it's already wrapped original_func = pyfuncitem.obj.hypothesis.inner_test if original_func.__qualname__ != run_with_hypothesis.__qualname__: if iscoroutinefunction(original_func): pyfuncitem.obj.hypothesis.inner_test = run_with_hypothesis return None if iscoroutinefunction(pyfuncitem.obj): funcargs = pyfuncitem.funcargs testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > with get_runner(backend_name, backend_options) as runner: /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:42: in get_runner asynclib = get_async_backend(backend_name) /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:164: in get_async_backend module = import_module(f"anyio._backends._{asynclib_name}") /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ from __future__ import annotations import array import math import os import socket import sys import types import weakref from collections.abc import ( AsyncGenerator, AsyncIterator, Awaitable, Callable, Collection, Coroutine, Iterable, Sequence, ) from concurrent.futures import Future from contextlib import AbstractContextManager from dataclasses import dataclass from functools import partial from io import IOBase from os import PathLike from signal import Signals from socket import AddressFamily, SocketKind from types import TracebackType from typing import ( IO, TYPE_CHECKING, Any, Generic, NoReturn, TypeVar, cast, overload, ) > import trio.from_thread E ModuleNotFoundError: No module named 'trio' /usr/lib/python3/dist-packages/anyio/_backends/_trio.py:40: ModuleNotFoundError ____________________ test_setting_prog_name_in_extra[trio] _____________________ asynclib_name = 'trio' def get_async_backend(asynclib_name: str | None = None) -> type[AsyncBackend]: if asynclib_name is None: asynclib_name = sniffio.current_async_library() # We use our own dict instead of sys.modules to get the already imported back-end # class because the appropriate modules in sys.modules could potentially be only # partially initialized try: > return loaded_backends[asynclib_name] E KeyError: 'trio' /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:162: KeyError During handling of the above exception, another exception occurred: pyfuncitem = <Function test_setting_prog_name_in_extra[trio]> @pytest.hookimpl(tryfirst=True) def pytest_pyfunc_call(pyfuncitem: Any) -> bool | None: def run_with_hypothesis(**kwargs: Any) -> None: with get_runner(backend_name, backend_options) as runner: runner.run_test(original_func, kwargs) backend = pyfuncitem.funcargs.get("anyio_backend") if backend: backend_name, backend_options = extract_backend_and_options(backend) if hasattr(pyfuncitem.obj, "hypothesis"): # Wrap the inner test function unless it's already wrapped original_func = pyfuncitem.obj.hypothesis.inner_test if original_func.__qualname__ != run_with_hypothesis.__qualname__: if iscoroutinefunction(original_func): pyfuncitem.obj.hypothesis.inner_test = run_with_hypothesis return None if iscoroutinefunction(pyfuncitem.obj): funcargs = pyfuncitem.funcargs testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > with get_runner(backend_name, backend_options) as runner: /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:42: in get_runner asynclib = get_async_backend(backend_name) /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:164: in get_async_backend module = import_module(f"anyio._backends._{asynclib_name}") /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ from __future__ import annotations import array import math import os import socket import sys import types import weakref from collections.abc import ( AsyncGenerator, AsyncIterator, Awaitable, Callable, Collection, Coroutine, Iterable, Sequence, ) from concurrent.futures import Future from contextlib import AbstractContextManager from dataclasses import dataclass from functools import partial from io import IOBase from os import PathLike from signal import Signals from socket import AddressFamily, SocketKind from types import TracebackType from typing import ( IO, TYPE_CHECKING, Any, Generic, NoReturn, TypeVar, cast, overload, ) > import trio.from_thread E ModuleNotFoundError: No module named 'trio' /usr/lib/python3/dist-packages/anyio/_backends/_trio.py:40: ModuleNotFoundError _______________ test_command_standalone_mode_returns_value[trio] _______________ asynclib_name = 'trio' def get_async_backend(asynclib_name: str | None = None) -> type[AsyncBackend]: if asynclib_name is None: asynclib_name = sniffio.current_async_library() # We use our own dict instead of sys.modules to get the already imported back-end # class because the appropriate modules in sys.modules could potentially be only # partially initialized try: > return loaded_backends[asynclib_name] E KeyError: 'trio' /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:162: KeyError During handling of the above exception, another exception occurred: pyfuncitem = <Function test_command_standalone_mode_returns_value[trio]> @pytest.hookimpl(tryfirst=True) def pytest_pyfunc_call(pyfuncitem: Any) -> bool | None: def run_with_hypothesis(**kwargs: Any) -> None: with get_runner(backend_name, backend_options) as runner: runner.run_test(original_func, kwargs) backend = pyfuncitem.funcargs.get("anyio_backend") if backend: backend_name, backend_options = extract_backend_and_options(backend) if hasattr(pyfuncitem.obj, "hypothesis"): # Wrap the inner test function unless it's already wrapped original_func = pyfuncitem.obj.hypothesis.inner_test if original_func.__qualname__ != run_with_hypothesis.__qualname__: if iscoroutinefunction(original_func): pyfuncitem.obj.hypothesis.inner_test = run_with_hypothesis return None if iscoroutinefunction(pyfuncitem.obj): funcargs = pyfuncitem.funcargs testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > with get_runner(backend_name, backend_options) as runner: /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:42: in get_runner asynclib = get_async_backend(backend_name) /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:164: in get_async_backend module = import_module(f"anyio._backends._{asynclib_name}") /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ from __future__ import annotations import array import math import os import socket import sys import types import weakref from collections.abc import ( AsyncGenerator, AsyncIterator, Awaitable, Callable, Collection, Coroutine, Iterable, Sequence, ) from concurrent.futures import Future from contextlib import AbstractContextManager from dataclasses import dataclass from functools import partial from io import IOBase from os import PathLike from signal import Signals from socket import AddressFamily, SocketKind from types import TracebackType from typing import ( IO, TYPE_CHECKING, Any, Generic, NoReturn, TypeVar, cast, overload, ) > import trio.from_thread E ModuleNotFoundError: No module named 'trio' /usr/lib/python3/dist-packages/anyio/_backends/_trio.py:40: ModuleNotFoundError _________________________ test_file_stdin_attrs[trio] __________________________ asynclib_name = 'trio' def get_async_backend(asynclib_name: str | None = None) -> type[AsyncBackend]: if asynclib_name is None: asynclib_name = sniffio.current_async_library() # We use our own dict instead of sys.modules to get the already imported back-end # class because the appropriate modules in sys.modules could potentially be only # partially initialized try: > return loaded_backends[asynclib_name] E KeyError: 'trio' /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:162: KeyError During handling of the above exception, another exception occurred: pyfuncitem = <Function test_file_stdin_attrs[trio]> @pytest.hookimpl(tryfirst=True) def pytest_pyfunc_call(pyfuncitem: Any) -> bool | None: def run_with_hypothesis(**kwargs: Any) -> None: with get_runner(backend_name, backend_options) as runner: runner.run_test(original_func, kwargs) backend = pyfuncitem.funcargs.get("anyio_backend") if backend: backend_name, backend_options = extract_backend_and_options(backend) if hasattr(pyfuncitem.obj, "hypothesis"): # Wrap the inner test function unless it's already wrapped original_func = pyfuncitem.obj.hypothesis.inner_test if original_func.__qualname__ != run_with_hypothesis.__qualname__: if iscoroutinefunction(original_func): pyfuncitem.obj.hypothesis.inner_test = run_with_hypothesis return None if iscoroutinefunction(pyfuncitem.obj): funcargs = pyfuncitem.funcargs testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} > with get_runner(backend_name, backend_options) as runner: /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/contextlib.py:141: in __enter__ return next(self.gen) /usr/lib/python3/dist-packages/anyio/pytest_plugin.py:42: in get_runner asynclib = get_async_backend(backend_name) /usr/lib/python3/dist-packages/anyio/_core/_eventloop.py:164: in get_async_backend module = import_module(f"anyio._backends._{asynclib_name}") /usr/lib/python3.13/importlib/__init__.py:88: in import_module return _bootstrap._gcd_import(name[level:], package, level) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ from __future__ import annotations import array import math import os import socket import sys import types import weakref from collections.abc import ( AsyncGenerator, AsyncIterator, Awaitable, Callable, Collection, Coroutine, Iterable, Sequence, ) from concurrent.futures import Future from contextlib import AbstractContextManager from dataclasses import dataclass from functools import partial from io import IOBase from os import PathLike from signal import Signals from socket import AddressFamily, SocketKind from types import TracebackType from typing import ( IO, TYPE_CHECKING, Any, Generic, NoReturn, TypeVar, cast, overload, ) > import trio.from_thread E ModuleNotFoundError: No module named 'trio' /usr/lib/python3/dist-packages/anyio/_backends/_trio.py:40: ModuleNotFoundError =========================== short test summary info ============================ FAILED tests/test_basic.py::test_return_values[trio] - ModuleNotFoundError: N... FAILED tests/test_commands.py::test_other_command_forward[trio] - ModuleNotFo... FAILED tests/test_commands.py::test_forwarded_params_consistency[trio] - Modu... FAILED tests/test_commands.py::test_command_parse_args_collects_option_prefixes[trio] FAILED tests/test_commands.py::test_group_parse_args_collects_base_option_prefixes[trio] FAILED tests/test_context.py::test_context_pushing[trio] - ModuleNotFoundErro... FAILED tests/test_context.py::test_async_context_mgr[trio] - ModuleNotFoundEr... FAILED tests/test_context.py::test_context_mgr[trio] - ModuleNotFoundError: N... FAILED tests/test_context.py::test_with_resource[trio] - ModuleNotFoundError:... FAILED tests/test_context.py::test_exit_not_standalone[trio] - ModuleNotFound... FAILED tests/test_custom_classes.py::test_command_context_class[trio] - Modul... FAILED tests/test_info_dict.py::test_parameter[trio-Func ParamType] - ModuleN... FAILED tests/test_info_dict.py::test_parameter[trio-UNPROCESSED ParamType] - ... FAILED tests/test_info_dict.py::test_parameter[trio-STRING ParamType] - Modul... FAILED tests/test_info_dict.py::test_parameter[trio-Choice ParamType] - Modul... FAILED tests/test_info_dict.py::test_parameter[trio-DateTime ParamType] - Mod... FAILED tests/test_info_dict.py::test_parameter[trio-INT ParamType] - ModuleNo... FAILED tests/test_info_dict.py::test_parameter[trio-IntRange ParamType] - Mod... FAILED tests/test_info_dict.py::test_parameter[trio-FLOAT ParamType] - Module... FAILED tests/test_info_dict.py::test_parameter[trio-FloatRange ParamType] - M... FAILED tests/test_info_dict.py::test_parameter[trio-Bool ParamType] - ModuleN... FAILED tests/test_info_dict.py::test_parameter[trio-UUID ParamType] - ModuleN... FAILED tests/test_info_dict.py::test_parameter[trio-File ParamType] - ModuleN... FAILED tests/test_info_dict.py::test_parameter[trio-Path ParamType] - ModuleN... FAILED tests/test_info_dict.py::test_parameter[trio-Tuple ParamType] - Module... FAILED tests/test_info_dict.py::test_parameter[trio-Option] - ModuleNotFoundE... FAILED tests/test_info_dict.py::test_parameter[trio-Flag Option] - ModuleNotF... FAILED tests/test_info_dict.py::test_parameter[trio-Argument] - ModuleNotFoun... FAILED tests/test_info_dict.py::test_command[trio-Command] - ModuleNotFoundEr... FAILED tests/test_info_dict.py::test_command[trio-Group] - ModuleNotFoundErro... FAILED tests/test_info_dict.py::test_command[trio-Nested Group] - ModuleNotFo... FAILED tests/test_info_dict.py::test_context[trio] - ModuleNotFoundError: No ... FAILED tests/test_info_dict.py::test_paramtype_no_name[trio] - ModuleNotFound... FAILED tests/test_shell_completion.py::test_command[trio] - ModuleNotFoundErr... FAILED tests/test_shell_completion.py::test_group[trio] - ModuleNotFoundError... FAILED tests/test_shell_completion.py::test_group_command_same_option[trio] FAILED tests/test_shell_completion.py::test_chained[trio] - ModuleNotFoundErr... FAILED tests/test_shell_completion.py::test_help_option[trio] - ModuleNotFoun... FAILED tests/test_shell_completion.py::test_argument_order[trio] - ModuleNotF... FAILED tests/test_shell_completion.py::test_argument_default[trio] - ModuleNo... FAILED tests/test_shell_completion.py::test_type_choice[trio] - ModuleNotFoun... FAILED tests/test_shell_completion.py::test_choice_special_characters[trio] FAILED tests/test_shell_completion.py::test_choice_conflicting_prefix[trio] FAILED tests/test_shell_completion.py::test_option_count[trio] - ModuleNotFou... FAILED tests/test_shell_completion.py::test_option_optional[trio] - ModuleNot... FAILED tests/test_shell_completion.py::test_path_types[trio-type0-file] - Mod... FAILED tests/test_shell_completion.py::test_path_types[trio-type1-file] - Mod... FAILED tests/test_shell_completion.py::test_path_types[trio-type2-dir] - Modu... FAILED tests/test_shell_completion.py::test_absolute_path[trio] - ModuleNotFo... FAILED tests/test_shell_completion.py::test_option_flag[trio] - ModuleNotFoun... FAILED tests/test_shell_completion.py::test_option_custom[trio] - ModuleNotFo... FAILED tests/test_shell_completion.py::test_option_multiple[trio] - ModuleNot... FAILED tests/test_shell_completion.py::test_option_nargs[trio] - ModuleNotFou... FAILED tests/test_shell_completion.py::test_argument_nargs[trio] - ModuleNotF... FAILED tests/test_shell_completion.py::test_double_dash[trio] - ModuleNotFoun... FAILED tests/test_shell_completion.py::test_hidden[trio] - ModuleNotFoundErro... FAILED tests/test_shell_completion.py::test_add_different_name[trio] - Module... FAILED tests/test_shell_completion.py::test_choice_case_sensitive[trio-False-expect0] FAILED tests/test_shell_completion.py::test_choice_case_sensitive[trio-True-expect1] FAILED tests/test_testing.py::test_runner[trio] - ModuleNotFoundError: No mod... FAILED tests/test_testing.py::test_echo_stdin_stream[trio] - ModuleNotFoundEr... FAILED tests/test_testing.py::test_echo_stdin_prompts[trio] - ModuleNotFoundE... FAILED tests/test_testing.py::test_runner_with_stream[trio] - ModuleNotFoundE... FAILED tests/test_testing.py::test_prompts[trio] - ModuleNotFoundError: No mo... FAILED tests/test_testing.py::test_getchar[trio] - ModuleNotFoundError: No mo... FAILED tests/test_testing.py::test_catch_exceptions[trio] - ModuleNotFoundErr... FAILED tests/test_testing.py::test_with_color[trio] - ModuleNotFoundError: No... FAILED tests/test_testing.py::test_with_color_but_pause_not_blocking[trio] - ... FAILED tests/test_testing.py::test_exit_code_and_output_from_sys_exit[trio] FAILED tests/test_testing.py::test_env[trio] - ModuleNotFoundError: No module... FAILED tests/test_testing.py::test_stderr[trio] - ModuleNotFoundError: No mod... FAILED tests/test_testing.py::test_args[trio-None-bar\n] - ModuleNotFoundErro... FAILED tests/test_testing.py::test_args[trio-args1-bar\n] - ModuleNotFoundErr... FAILED tests/test_testing.py::test_args[trio--bar\n] - ModuleNotFoundError: N... FAILED tests/test_testing.py::test_args[trio-args3-one two\n] - ModuleNotFoun... FAILED tests/test_testing.py::test_args[trio---foo "one two"-one two\n] - Mod... FAILED tests/test_testing.py::test_setting_prog_name_in_extra[trio] - ModuleN... FAILED tests/test_testing.py::test_command_standalone_mode_returns_value[trio] FAILED tests/test_testing.py::test_file_stdin_attrs[trio] - ModuleNotFoundErr... ===== 79 failed, 590 passed, 21 skipped, 1 deselected, 1 xfailed in 2.52s ====== E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-asyncclick/build; python3.13 -m pytest -k "not test_expand_args" dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.13" returned exit code 13 make: *** [debian/rules:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- The above is just how the build ends and not necessarily the most relevant part. If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202502/ 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 could not 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:python-asyncclick, so that this is still visible in the BTS web page for this package. Thanks.