I am trying to use ansible directly from a git checkout, on OSX 10.7.5 (which comes with python 2.7.1)
I get the following error:
$ git branch
- devel
master
$ cat test.inv
localhost
$ PYTHONPATH=lib bin/ansible localhost -i test.inv -m shell -a ‘echo hello’
localhost | FAILED => Traceback (most recent call last):
File “/Users/brian/git/ansible/lib/ansible/runner/init.py”, line 375, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/Users/brian/git/ansible/lib/ansible/runner/init.py”, line 462, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/Users/brian/git/ansible/lib/ansible/runner/init.py”, line 610, in _executor_internal_inner
conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file)
TypeError: connect() takes at most 3 arguments (7 given)
Adding -vvv doesn’t give any more info. I believe I have the correct dependencies, although they were installed a while ago and may not be the latest ones:
$ ls /Library/Python/2.7/site-packages/
Jinja2-2.6-py2.7.egg paramiko-1.7.7.2-py2.7.egg
PyYAML-3.10-py2.7-macosx-10.7-intel.egg pycrypto-2.6-py2.7-macosx-10.7-intel.egg
README vboxapi
easy-install.pth vboxapi-1.0-py2.7.egg-info
So then I updated to latest versions of paramiko/PyYAML/Jinja2:
$ ls /Library/Python/2.7/site-packages/
Jinja2-2.6-py2.7.egg paramiko-1.11.0-py2.7.egg
Jinja2-2.7.1-py2.7.egg paramiko-1.7.7.2-py2.7.egg
MarkupSafe-0.18-py2.7-macosx-10.7-intel.egg pycrypto-2.6-py2.7-macosx-10.7-intel.egg
PyYAML-3.10-py2.7-macosx-10.7-intel.egg vboxapi
README vboxapi-1.0-py2.7.egg-info
easy-install.pth
But unfortunately I get exactly the same result. Any clues?
Thanks,
Brian.