kislyuk / argcomplete

Python and tab completion, better together.
https://kislyuk.github.io/argcomplete/
Apache License 2.0
1.39k stars 129 forks source link

Python 3.7 Compatibility Issue with _check_console_script.py #435

Closed flu0r1ne closed 1 year ago

flu0r1ne commented 1 year ago

Python 3.7 is the default system Python version on Debian 10, which is currently the oldest Debian release that still receives support. I've encountered a compatibility issue with _check_console_script.py on this setup, leading to a lack of completions.

The root of this issue lies in the slightly altered interface of the importlib backport in Python 3.7. This version of importlib does not offer dictionary-style selection for groups, which is a required feature for the current implementation.

Notably, the setup.py file states that Argcomplete should be compatible with Python 3.7. As such, I propose two potential solutions:

  1. Patch the compatibility issue to ensure proper functionality with Python 3.7.
  2. Alternatively, we could increase the minimum required Python version.