10:59 PM ansible ImportError: No module named ansible.errors |
You may be seeing this on your fresh ansible install when executing under your own login:
ansible --version But, it works just fine when you execute it from sudo or root. The issue is too tight permissions on /usr/lib/python2.6/site-packages/ansible/errors (and probably other modules too) set when you installed ansible using: sudo pip install ansible. The remedy is to become root with login shell:
sudo su -
pip uninstall ansible pip install ansible If that does not help and permissions on /usr/lib/python2.6/site-packages/ansible/errors are still not good, then Note: Your /usr/lib/python path maybe different depending on your Python version. |
|
Total comments: 0 | |