Bug#1087845: chirpw -h fails
Package: chirp
Version: 1:20241115-1
Severity: normal
X-Debbugs-Cc: sophie@offensive-security.com
User: devel@kali.org
Usertags: origin-kali
Hello,
The command chirpw -h fails with:
Traceback (most recent call last):
File "/usr/bin/chirpw", line 33, in <module>
sys.exit(load_entry_point('chirp==20241115', 'console_scripts', 'chirpw')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/chirp/wxui/__init__.py", line 122, in chirpmain
args = parser.parse_args()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 1918, in parse_args
args, argv = self.parse_known_args(args, namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 1928, in parse_known_args
return self._parse_known_args2(args, namespace, intermixed=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 1957, in _parse_known_args2
namespace, args = self._parse_known_args(args, namespace, intermixed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 2198, in _parse_known_args
start_index = consume_optional(start_index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 2127, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python3.12/argparse.py", line 2032, in take_action
action(self, namespace, argument_values, option_string)
File "/usr/lib/python3.12/argparse.py", line 1162, in __call__
parser.print_help()
File "/usr/lib/python3.12/argparse.py", line 2635, in print_help
self._print_message(self.format_help(), file)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 2619, in format_help
return formatter.format_help()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 300, in format_help
help = self._root_section.format_help()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 231, in format_help
item_help = join([func(*args) for func, args in self.items])
^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 338, in _format_usage
action_usage = format(optionals + positionals, groups)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 414, in _format_actions_usage
raise ValueError(f'empty group {group}')
ValueError: empty group <argparse._MutuallyExclusiveGroup object at 0x7f525c04c410>
I think it's because of the Debian patch "remove-desktop-popup.patch"
The code using "add_mutually_exclusive_group" has been removed and then
group is empty.
If I comment the line "desktop = parser.add_mutually_exclusive_group()",
I no longer get the error.
Sophie
-- System Information:
Debian Release: trixie/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.11.6-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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 chirp depends on:
ii python3 3.12.7-1
ii python3-requests 2.32.3+dfsg-1
ii python3-serial 3.5-2
ii python3-suds 1.2.0-2
ii python3-yattag 1.16.1-1
ii wxpython-tools 4.2.2+dfsg-1
chirp recommends no packages.
chirp suggests no packages.
-- no debconf information
Reply to: