make install problem

Hi,

I was trying to install ansible by following the “Make Install” instruction on the Getting started page but I can’t make it work.
I’m getting this “says-me-nothing”-error:

patric@micro:~/git/ansible$ ansible 127.0.0.1 -m ping
127.0.0.1 | FAILED => Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/init.py”, line 237, in _executor
exec_rc = self._executor_internal(host)
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/init.py”, line 293, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port)
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/init.py”, line 408, in _executor_internal_inner
tmp = self._make_tmp_path(conn)
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/init.py”, line 510, in _make_tmp_path
result = self._low_level_exec_command(conn, cmd, None, sudoable=False)
File “/usr/local/lib/python2.7/dist-packages/ansible/runner/init.py”, line 448, in _low_level_exec_command
rc, stdin, stdout, stderr = conn.exec_command(cmd, tmp, sudo_user, sudoable=sudoable, executable=executable)
TypeError: exec_command() got an unexpected keyword argument ‘executable’

When I run “from checkout” with sourcing the env-setup everything works just fine
Am I reading the getting started instruction wrong or is something broken?

BR
/Patric

Do you have some mix of things running from checkout and files in the
OS install, possibly?

I ran into a similar issue upgrading from 0.7-devel (which in turn was upgraded in various stages up from 0.4) to 1.0. The problem is that there are some old /usr/local/lib/python2.7/dist-packages/ansible/runner/connection/ files left, which from what I gather at a glance now live in /usr/local/lib/python2.7/dist-packages/ansible/runner/connection_plugins/ . The former (older) were overriding the latter (newer) and they were missing the optional ‘executable’ parameter.

Solution: (re)move /usr/local/lib/python2.7/dist-packages/ansible and run make install again.