potiuk opened a new issue #21164:
URL: https://github.com/apache/airflow/issues/21164
### Apache Airflow version
main (development)
### What happened
When I setup autocomplete for Breeze2 on a "bare" system when I have no
packages installed, It fails autocomplete with this error:
```
ModuleNotFoundError: No module named 'click_completion'
Traceback (most recent call last):
File "/home/jarek/.pyenv/versions/3.7.9/bin/Breeze2", line 33, in <module>
sys.exit(load_entry_point('apache-airflow-breeze', 'console_scripts',
'Breeze2')())
File "/home/jarek/.pyenv/versions/3.7.9/bin/Breeze2", line 25, in
importlib_load_entry_point
return next(matches).load()
File
"/home/jarek/.local/lib/python3.7/site-packages/importlib_metadata/__init__.py",
line 194, in load
module = import_module(match.group('module'))
File
"/home/jarek/.pyenv/versions/3.7.9/lib/python3.7/importlib/__init__.py", line
127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
File "/home/jarek/code/airflow/dev/breeze/src/airflow_breeze/breeze.py",
line 24, in <module>
import click_completion
ModuleNotFoundError: No module named 'click_completion'
```
It seems that "autocomplete" feature of Breeze2 requires `click-completion`
to be installed first. This is a small issue an small prerequisite but I think
it is not handled by the currrent `setup-autocomplete`
The same happens if you install Breeze2 with `pipx`.
### What you expected to happen
I expect that `click-completion` package is automatically installled in when
`./Breeze2 setup-autocomplete` is executed.
Also it should be described in the documentation as prerequisite
### How to reproduce
* make sure you have no packages installed in your Python "system
environment" (for example: `pip list | xargs pip uninstall -y` )
* type ./Breeze2<TAB>
### Operating System
Linux Mint 20.1.3
### Versions of Apache Airflow Providers
Not relevant
### Deployment
Other
### Deployment details
No airflow deployment
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]