Ansible/python error: No module named ansible.errors


I have installed Ansible using “pip” as a root user on RHEL

python version – Python 2.7.5

Ansible version –

whenever I try to use ansible as a different user getting an error


I find two ansible files located in different places, Is this abnormal?
one at /bin/ansible & other at /usr/bin/ansible

Content of /bin/ansible


can anyone help me in solving it.


In my case I was working in a venv in python and that caused Ansible to not find all it’s python modules. Might not necessarily be the OP’s issue here but it’s worth being aware of.

Leave a Reply