Public bug reported:
argcomplete doesn't work on Python 3.13 and will crash with the
following error message:
exception <class 'TypeError'> IntrospectiveArgumentParser._parse_known_args()
takes 3 positional arguments but 4 were given while parsing args
all active parsers: [MonkeyPatchedIntrospectiveArgumentParser(prog='prog',
usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>,
conflict_handler='error', add_help=True)]
active_parser: MonkeyPatchedIntrospectiveArgumentParser(prog='prog',
usage=None, description=None, formatter_class=<class 'argparse.HelpFormatter'>,
conflict_handler='error', add_help=True)
Traceback (most recent call last):
File
"/tmp/autopkgtest-virt-docker.shared.p99exm_c/downtmp/build.mF4/real-tree/test/prog",
line 48, in <module>
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'
** Affects: python-argcomplete (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2088928
Title:
python-argcomplete: crashes on Python 3.13
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-argcomplete/+bug/2088928/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs