You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助: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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.23 14:07:17