Hi - Installed ansible (not the first time) but on a new box - and although pip install worked fine if I use ping command I get 'FAILED => paramiko is not installed'

867 views
Skip to first unread message

Shaun Barker

unread,
Nov 5, 2014, 11:36:42 AM11/5/14
to ansible...@googlegroups.com
pip install paramiko PyYAML Jinja2 httplib2 --upgrade
Requirement already up-to-date: paramiko in /usr/lib/python2.6/site-packages
Requirement already up-to-date: PyYAML in /usr/lib64/python2.6/site-packages
Requirement already up-to-date: Jinja2 in /usr/lib/python2.6/site-packages
Requirement already up-to-date: httplib2 in /usr/lib/python2.6/site-packages
Requirement already up-to-date: markupsafe in /usr/lib/python2.6/site-packages (from Jinja2)

-- so paramiko says it is registered. But:

[root@jenkins6 ansible]# paramiko
bash: paramiko: command not found


Python version:
[root@jenkins6 ansible]# python --version
Python 2.6.6
[root@jenkins6 ansible]# 

[root@jenkins6 ansible]# ansible all -m ping
127.0.0.1 | FAILED => paramiko is not installed
[root@jenkins6 ansible]# 


Any suggestions?

thanks in advance!

Brian Coca

unread,
Nov 5, 2014, 12:08:26 PM11/5/14
to ansible...@googlegroups.com
check ansible shebang and make sure it is executing the same python

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/322713b5-38c4-4fa7-961f-280098fca540%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

Shaun Barker

unread,
Nov 6, 2014, 6:47:47 AM11/6/14
to ansible...@googlegroups.com
Thanks Brian

So I think  you are correct - if I look in the 'setup.py' file the python shebang is: '#!/usr/bin/env python'
but if I type 'which python' I get '/usr/bin/python' - 

Should I expect them to be the same? If so should I symlink for python or change the ansible files (upgrade issues spring to mind) or something else?

thanks!

S

Brian Coca

unread,
Nov 6, 2014, 7:45:00 AM11/6/14
to ansible...@googlegroups.com
what about the shebang in ansible/ansible-playbook ?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages