[Pkg-libvirt-maintainers] Bug#1088142: virt-manager: FTBFS: AttributeError: 'MonkeyPatchedIntrospectiveArgumentParser' object has no attribute '_action_conflicts'

Santiago Vila sanvila at debian.org
Sat Nov 23 19:54:13 GMT 2024


Package: src:virt-manager
Version: 1:4.1.0-4
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  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
I: pybuild base:311: python3.12 setup.py config
running config
    dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build
running build
Generating /<<PKGBUILDDIR>>/build/virt-install
Generating /<<PKGBUILDDIR>>/build/virt-clone
Generating /<<PKGBUILDDIR>>/build/virt-xml
Generating /<<PKGBUILDDIR>>/build/virt-manager

[... snipped ...]

   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 223, in _get_completions
     completions = self.collect_completions(active_parsers, parsed_args, cword_prefix)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 440, in collect_completions
     completions += self._get_option_completions(active_parser, cword_prefix)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 326, in _get_option_completions
     if not self._action_allowed(action, parser):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 336, in _action_allowed
     for conflict_action in parser._action_conflicts.get(action, []):
                            ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MonkeyPatchedIntrospectiveArgumentParser' object has no attribute '_action_conflicts'


TESTSUITE: Expected command to pass, but it didn't.


___________________________ testCLI0438virt_install ____________________________
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call
     result: TResult | None = func()
                              ^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in <lambda>
     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 92, in pytest_runtest_call
     yield from thread_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 68, in thread_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 70, in unraisable_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 846, in pytest_runtest_call
     yield from self._runtest_for(item, "call")
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 829, in _runtest_for
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/capture.py", line 880, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call
     item.runtest()
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest
     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
     result = testfunction(**testargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 1645, in cmdtemplate
     cmd.run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 348, in run
     self._run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 335, in _run
     _raise_error("Expected command to %s, but it didn't.\n" %
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 327, in _raise_error
     raise AssertionError(
AssertionError: Command was: virt-install --unattended
Error code : -1
Output was:

Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 234, in _launch_command
     ret = virtinstall.main(conn=conn)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtinstall.py", line 1185, in main
     options = parse_args()
               ^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtinstall.py", line 1141, in parse_args
     cli.autocomplete(parser)
   File "/<<PKGBUILDDIR>>/virtinst/cli.py", line 577, in autocomplete
     argcomplete.autocomplete(parser, **kwargs)
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 174, in __call__
     completions = self._get_completions(comp_words, cword_prefix, cword_prequote, last_wordbreak_pos)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 223, in _get_completions
     completions = self.collect_completions(active_parsers, parsed_args, cword_prefix)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 440, in collect_completions
     completions += self._get_option_completions(active_parser, cword_prefix)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 326, in _get_option_completions
     if not self._action_allowed(action, parser):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 336, in _action_allowed
     for conflict_action in parser._action_conflicts.get(action, []):
                            ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MonkeyPatchedIntrospectiveArgumentParser' object has no attribute '_action_conflicts'


TESTSUITE: Expected command to pass, but it didn't.


___________________________ testCLI0439virt_install ____________________________
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call
     result: TResult | None = func()
                              ^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in <lambda>
     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 92, in pytest_runtest_call
     yield from thread_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 68, in thread_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 70, in unraisable_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 846, in pytest_runtest_call
     yield from self._runtest_for(item, "call")
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 829, in _runtest_for
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/capture.py", line 880, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call
     item.runtest()
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest
     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
     result = testfunction(**testargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 1645, in cmdtemplate
     cmd.run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 348, in run
     self._run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 335, in _run
     _raise_error("Expected command to %s, but it didn't.\n" %
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 327, in _raise_error
     raise AssertionError(
AssertionError: Command was: virt-install --unattended a
Error code : -1
Output was:

Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 234, in _launch_command
     ret = virtinstall.main(conn=conn)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtinstall.py", line 1185, in main
     options = parse_args()
               ^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtinstall.py", line 1141, in parse_args
     cli.autocomplete(parser)
   File "/<<PKGBUILDDIR>>/virtinst/cli.py", line 577, in autocomplete
     argcomplete.autocomplete(parser, **kwargs)
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 174, in __call__
     completions = self._get_completions(comp_words, cword_prefix, cword_prequote, last_wordbreak_pos)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 223, in _get_completions
     completions = self.collect_completions(active_parsers, parsed_args, cword_prefix)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 440, in collect_completions
     completions += self._get_option_completions(active_parser, cword_prefix)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 326, in _get_option_completions
     if not self._action_allowed(action, parser):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 336, in _action_allowed
     for conflict_action in parser._action_conflicts.get(action, []):
                            ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MonkeyPatchedIntrospectiveArgumentParser' object has no attribute '_action_conflicts'


TESTSUITE: Expected command to pass, but it didn't.


____________________________ testCLI0440virt_clone _____________________________
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call
     result: TResult | None = func()
                              ^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in <lambda>
     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 92, in pytest_runtest_call
     yield from thread_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 68, in thread_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 70, in unraisable_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 846, in pytest_runtest_call
     yield from self._runtest_for(item, "call")
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 829, in _runtest_for
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/capture.py", line 880, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call
     item.runtest()
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest
     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
     result = testfunction(**testargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 1645, in cmdtemplate
     cmd.run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 348, in run
     self._run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 335, in _run
     _raise_error("Expected command to %s, but it didn't.\n" %
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 327, in _raise_error
     raise AssertionError(
AssertionError: Command was: virt-clone --preserve
Error code : -1
Output was:

Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 236, in _launch_command
     ret = virtclone.main(conn=conn)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtclone.py", line 135, in main
     options = parse_args()
               ^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtclone.py", line 128, in parse_args
     cli.autocomplete(parser)
   File "/<<PKGBUILDDIR>>/virtinst/cli.py", line 577, in autocomplete
     argcomplete.autocomplete(parser, **kwargs)
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 174, in __call__
     completions = self._get_completions(comp_words, cword_prefix, cword_prequote, last_wordbreak_pos)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 223, in _get_completions
     completions = self.collect_completions(active_parsers, parsed_args, cword_prefix)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 440, in collect_completions
     completions += self._get_option_completions(active_parser, cword_prefix)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 326, in _get_option_completions
     if not self._action_allowed(action, parser):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 336, in _action_allowed
     for conflict_action in parser._action_conflicts.get(action, []):
                            ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MonkeyPatchedIntrospectiveArgumentParser' object has no attribute '_action_conflicts'


TESTSUITE: Expected command to pass, but it didn't.


_____________________________ testCLI0441virt_xml ______________________________
Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call
     result: TResult | None = func()
                              ^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 242, in <lambda>
     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 92, in pytest_runtest_call
     yield from thread_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/threadexception.py", line 68, in thread_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_call
     yield from unraisable_exception_runtest_hook()
   File "/usr/lib/python3/dist-packages/_pytest/unraisableexception.py", line 70, in unraisable_exception_runtest_hook
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 846, in pytest_runtest_call
     yield from self._runtest_for(item, "call")
   File "/usr/lib/python3/dist-packages/_pytest/logging.py", line 829, in _runtest_for
     yield
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/capture.py", line 880, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 122, in _multicall
     teardown.throw(exception)  # type: ignore[union-attr]
     ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/skipping.py", line 257, in pytest_runtest_call
     return (yield)
             ^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 174, in pytest_runtest_call
     item.runtest()
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1627, in runtest
     self.ihook.pytest_pyfunc_call(pyfuncitem=self)
   File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513, in __call__
     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120, in _hookexec
     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 139, in _multicall
     raise exception.with_traceback(exception.__traceback__)
   File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103, in _multicall
     res = hook_impl.function(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
     result = testfunction(**testargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 1645, in cmdtemplate
     cmd.run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 348, in run
     self._run()
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 335, in _run
     _raise_error("Expected command to %s, but it didn't.\n" %
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 327, in _raise_error
     raise AssertionError(
AssertionError: Command was: virt-xml --sound mode
Error code : -1
Output was:

Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/tests/test_cli.py", line 238, in _launch_command
     ret = virtxml.main(conn=conn)
           ^^^^^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtxml.py", line 440, in main
     options = parse_args()
               ^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/virtinst/virtxml.py", line 429, in parse_args
     cli.autocomplete(parser)
   File "/<<PKGBUILDDIR>>/virtinst/cli.py", line 577, in autocomplete
     argcomplete.autocomplete(parser, **kwargs)
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 174, in __call__
     completions = self._get_completions(comp_words, cword_prefix, cword_prequote, last_wordbreak_pos)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 223, in _get_completions
     completions = self.collect_completions(active_parsers, parsed_args, cword_prefix)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 440, in collect_completions
     completions += self._get_option_completions(active_parser, cword_prefix)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 326, in _get_option_completions
     if not self._action_allowed(action, parser):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/argcomplete/finders.py", line 336, in _action_allowed
     for conflict_action in parser._action_conflicts.get(action, []):
                            ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MonkeyPatchedIntrospectiveArgumentParser' object has no attribute '_action_conflicts'


TESTSUITE: Expected command to pass, but it didn't.


=========================== short test summary info ============================
SKIPPED [2] tests/test_checkprops.py:15: Other tests failed or were skipped, don't do prop checks
================== 16 failed, 525 passed, 2 skipped in 12.68s ==================
make[1]: *** [debian/rules:10: override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: binary] Error 2
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/202411/

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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-libvirt-maintainers mailing list