Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: Cannot find Ansible: Please check your installation (required version 2) #108

Open
zelentsovl opened this issue Sep 8, 2017 · 2 comments

Comments

@zelentsovl
Copy link

Getting this error on MacOS despite of ansible is installed:
ansible 2.3.2.0
config file =
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jul 18 2017, 09:17:00) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]

@Maellooou
Copy link

I have the same issue on :
ProductName: Mac OS X
ProductVersion: 10.12.6

$ kubespray --help
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/kubespray", line 27, in <module>
    raise ImportError('Cannot find Ansible: Please check your installation (required version 2)')
ImportError: Cannot find Ansible: Please check your installation (required version 2)

Ansible is well installed

$ansible --version
ansible 2.1.4.0
  config file = 
  configured module search path = Default w/o overrides

Version of pyhton

$python --version
Python 2.7.14

@mortensteenrasmussen
Copy link

Same here. Ansible was installed with Homebrew.

A workaround is to install ansible with pip: pip2 install ansible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants