Installed version on Ubuntu noble is incompatible with default Ubuntu version

Bug #2075315 reported by Florian Pommerening
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-argcomplete (Ubuntu)
New
Undecided
Unassigned

Bug Description

The package for Ubuntu 24.04 installs argcomplete version 3.1.4 which is incompatible with Python 3.11.9+, 3.12.3+, and 3.13+. This is fixed with argcomplete version 3.3 here:
https://github.com/kislyuk/argcomplete/commit/54a4846b3a774cd9037167898f3cce38ba9d58e8

Since the default Python version on Ubuntu 24.04 is 3.12.3, argcomplete 3.1.4 is not compatible. This is even more problematic, since argcomplete cannot be installed through pip on this Ubuntu version as the Python environment is managed by apt. So it is not easily possible to install a working version.

To reproduce
1.) On Ubuntu 24.04, install python-argcomplete
2.) Save the following to `foo.py`

```
#!/usr/bin/env python

import argparse, argcomplete

parser = argparse.ArgumentParser()
parser.add_argument("--foo", choices=["a", "b"])

argcomplete.autocomplete(parser)
```
3.) Register argcomplete for foo.py by putting `eval "$(register-python-argcomplete foo.py)"` in your .bashrc and starting a new shell.
    [I'm not sure if this step is necessary, as the package activates argcomplete globally.]
4.) Type `./foo.py --foo <TAB>`. This should suggest "a" and "b" but doesn't.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.