kubespray / kubespray-cli

Easy to use command line tool for kubernetes deployment with kubespray
GNU General Public License v3.0
252 stars 62 forks source link

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

Open zelentsovl opened 7 years ago

zelentsovl commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

Same here. Ansible was installed with Homebrew.

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