Your message dated Sun, 08 Dec 2024 00:20:06 +0000 with message-id <e1tk51q-00aijm...@fasolo.debian.org> and subject line Bug#1087455: fixed in python-argcomplete 3.5.2-1 has caused the Debian Bug report #1087455, regarding python3-argcomplete: tab completion fails for packages using python3-argcomplete to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 1087455: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087455 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Package: python3-argcomplete Version: 3.5.1-1 Severity: important Control: affects -1 + mailscripts sopv-gpgv Several command line tools depend on python3-argcomplete for tab completion in bash, including imap-dl and email-print-mime-structure from mailscripts and sopv-gpgv. At some point in the past, you could do: email-print-mime-structure --<TAB> and you would be presented with the options --pgpkey, --cmskey, --use-gpg-agent, --no-use-gpg-agent, --help, and so forth. Right now, that doesn't work. If i export _ARC_DEBUG=1, though, and then it tab on the same line, i get the following dumped to the terminal: ``` word -- split, lexer state: 'None' LINE: 'email-print-mime-structure --' POINT: 29 PREQUOTE: '' PREFIX: '--' SUFFIX: '' WORDS: ['email-print-mime-structure'] Active parsers: [MonkeyPatchedIntrospectiveArgumentParser(prog='email-print-mime-structure', usage=None, description='Read RFC2822 MIME message from stdin and emit a tree diagram to stdout.', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)] Visited positionals: [MonkeyPatchedIntrospectiveArgumentParser(prog='email-print-mime-structure', usage=None, description='Read RFC2822 MIME message from stdin and emit a tree diagram to stdout.', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)] invoking parser with [] exception <class 'TypeError'> IntrospectiveArgumentParser._parse_known_args() takes 3 positional arguments but 4 were given while parsing args all active parsers: [MonkeyPatchedIntrospectiveArgumentParser(prog='email-print-mime-structure', usage=None, description='Read RFC2822 MIME message from stdin and emit a tree diagram to stdout.', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)] active_parser: MonkeyPatchedIntrospectiveArgumentParser(prog='email-print-mime-structure', usage=None, description='Read RFC2822 MIME message from stdin and emit a tree diagram to stdout.', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True) Traceback (most recent call last): File "/usr/bin/email-print-mime-structure", line 230, in <module> main() File "/usr/bin/email-print-mime-structure", line 213, in main argcomplete.autocomplete(parser) 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' ``` I saw the same problem with python3 3.12.6-1 as well, i think. I'm not sure when this was introduced, if it was related to a python update, or a python3-argcomplete update, or what. ☹ I do note that when i try this on a bookworm system with python3 3.11.2-1+b1 but updated to mailscripts and python3-argcomplete from testing/unstable, the tab completion *does* work. So maybe it's some interaction with the newer version of python3? Thanks for maintaining python3-argcomplete in debian! --dkg -- System Information: Debian Release: trixie/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.11.5-amd64 (SMP w/20 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-argcomplete depends on: ii python3 3.12.7-1 python3-argcomplete recommends no packages. python3-argcomplete suggests no packages. -- no debconf information
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---Source: python-argcomplete Source-Version: 3.5.2-1 Done: Colin Watson <cjwat...@debian.org> We believe that the bug you reported is fixed in the latest version of python-argcomplete, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1087...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Colin Watson <cjwat...@debian.org> (supplier of updated python-argcomplete package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmas...@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Sun, 08 Dec 2024 00:01:53 +0000 Source: python-argcomplete Architecture: source Version: 3.5.2-1 Distribution: unstable Urgency: medium Maintainer: Debian Python Team <team+pyt...@tracker.debian.org> Changed-By: Colin Watson <cjwat...@debian.org> Closes: 1087455 1088723 Changes: python-argcomplete (3.5.2-1) unstable; urgency=medium . * New upstream release: - Fix _parse_known_args monkeypatching (closes: #1087455, #1088723). Checksums-Sha1: 6b0afa5db363db55a3445938fd7701b98b7f0471 2528 python-argcomplete_3.5.2-1.dsc bde5dd44758361e3a28129d45253db2bb379fb92 82341 python-argcomplete_3.5.2.orig.tar.gz a809c5d21c3df6edaececa454a0667258158c7f3 7144 python-argcomplete_3.5.2-1.debian.tar.xz Checksums-Sha256: 508cd113429214f7727c82b47546091ad74b9fba93bd9353141668b34f171f3c 2528 python-argcomplete_3.5.2-1.dsc 23146ed7ac4403b70bd6026402468942ceba34a6732255b9edf5b7354f68a6bb 82341 python-argcomplete_3.5.2.orig.tar.gz e1be52beef6125356f96a561e4904c6dd19ae51ec5e82d9b5d066827f2b42c58 7144 python-argcomplete_3.5.2-1.debian.tar.xz Files: 45826eaac828e023bd38cdad2b234834 2528 python optional python-argcomplete_3.5.2-1.dsc 947144ffafe463aed8c8eb97bc981d11 82341 python optional python-argcomplete_3.5.2.orig.tar.gz da55c9f85bfb89262814851d62ce82ec 7144 python optional python-argcomplete_3.5.2-1.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmdU4iYACgkQOTWH2X2G UAu9HRAAmL1QJVnos20Pa0eK9EIw7+4omgdfKuhz7DdKlOSql+zC2LgnopbKtigV wC4i+1fQCRLxrbPnYRI9N+x9sbRG+mLugMRePKx37JaOGVO6qZ+3JzmzLVcCAhDE IoERNC9l3GK1eC/l2GOdBnfZ9F/4zlRUnPT6eZCs0Bjmdnb3KFhFvwfCrOihS+bs A4atRFyxHu0LcgdMwwYgJPrqAOv8BtAe4tN9pgFoJPMzyej+z+tSUUwx9orTPHTd koNp/XD3d8Bdiysv/6b9nFD0S/FE60J3g+wd49jseFfzx15RFzlydAaDKyw8MJ2K pc0GpCpmF5b3oVduDyV4b66eVB0H/oOabeWNjcX3ozoA9pqzceT+PKWBkh57lufu mrVqM8mUiFRy9gW1GgE4yxB+1CIsCP0ReoU56VQfiwGpkQJc63Lpzl9r3VcxP5W5 JTh3ET7mc478/OuA5wZpoj0jxAs9MYkrl10sjKL66Hv9Tl7LFgKEJOmFcok3YFk1 4cfah7RnyFIkIkwxzgmHEhh8UhHT9E7/mbHKI0ffgyGoJS7RgEB4tnxCZsdgSQVY qCW1q/UgYzVIDXPd0I/XhoHLBQctteb5Jeq7YHM/6dJygsKwmcy5dpLGPJ8jUrPA gnogBgtt9oDqdgqE+/UgdS2TyIYsUR7IWZ+scVJiJ5rDftCgaCY= =sBJP -----END PGP SIGNATURE-----
pgpTZ6qA0x2PJ.pgp
Description: PGP signature
--- End Message ---