# ERROR! Unexpected Exception, this is probably a bug: module 'argcomplete' has no attribute 'autocomplete'

**URL:** <https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38644>\
**Category:** Ansible Project\
**Created:** [January 10, 2024, 5:20am UTC](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38644 "2024-01-10T05:20:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunkumar\_Paramasiva](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Arunkumar\_Paramasiva](https://forum.ansible.com/u/Arunkumar_Paramasiva)\
**Post date:** [January 10, 2024, 5:20am UTC](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38644/1 "2024-01-10T05:20:30Z")

</div>

I installed ansible using homebrew and was working until recent update  
What am I missing? Any help would be appreciated. Thanks you

I tried adding ansible\_python\_interpreter=“/usr/bin/python3”, but no luck.

my python version in system  
╰─➤ python -m pip -V  
pip 23.3.2 from /Users/aparamasivam/Library/Python/3.11/lib/python/site-packages/pip (python 3.11)

─➤ ansible -v  
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.1.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.1.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.1.0/libexec/lib/python3.12/site-packages/ansible/cli/ **init**.py”, line 156, in run  
self.parse()  
File “/opt/homebrew/Cellar/ansible/9.1.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’

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [January 10, 2024, 9:57am UTC](https://forum.ansible.com/t/error-unexpected-exception-this-is-probably-a-bug-module-argcomplete-has-no-attribute-autocomplete/38644/2 "2024-01-10T09:57:48Z")

</div>

> I installed ansible using homebrew and was working until recent update

What was updated? Homebrew? or ansible? or both? or…?  
Also, homebrew isn’t listed as an installation method on [https://docs.ansible.com/ansible/latest/installation\_guide/intro\_installation.html](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html).  
I would recommend picking an installation method from there.
