求助:Ansible启动报错module 'argcomplete' has no attribute 'autocomplete'
Ansible启动报错:module 'argcomplete' has no attribute 'autocomplete'
- 通过brew安装Ansible后,卸载某无关软件时误删大量依赖包,导致启动Ansible触发以下错误:
ERROR! Unexpected Exception, this is probably a bug: module 'argcomplete' has no attribute 'autocomplete'
- 已尝试
brew uninstall ansible、pip3 install ansible及多种卸载重装组合,问题仍未解决。
完整报错栈信息:
ansible ERROR! Unexpected Exception, this is probably a bug: module 'argcomplete' has no attribute 'autocomplete' the full traceback was: Traceback (most recent call last): File "/opt/homebrew/Cellar/ansible/9.6.0/libexec/lib/python3.12/site-packages/ansible/cli/__init__.py", line 659, in cli_executor exit_code = cli.run() ^^^^^^^^^ File "/opt/homebrew/Cellar/ansible/9.6.0/libexec/lib/python3.12/site-packages/ansible/cli/adhoc.py", line 104, in run super(AdHocCLI, self).run() File "/opt/homebrew/Cellar/ansible/9.6.0/libexec/lib/python3.12/site-packages/ansible/cli/__init__.py", line 156, in run self.parse() File "/opt/homebrew/Cellar/ansible/9.6.0/libexec/lib/python3.12/site-packages/ansible/cli/__init__.py", line 462, in parse argcomplete.autocomplete(self.parser) ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'argcomplete' has no attribute 'autocomplete'
后续找到解决方案会在此更新,同时希望得到大家的帮助。
内容的提问来源于stack exchange,提问作者Elijah Lynn
相关产品推荐
相关产品推荐

