Error RHEL 5.5

43 views
Skip to first unread message

stenioc1

unread,
May 10, 2015, 4:51:32 PM5/10/15
to ansible...@googlegroups.com
Hi, 

I have a problem, after I install following the howto (No known installation error): 

$ git clone git://github.com/ansible/ansible.git --recursive
$ cd ./ansible
$ make rpm
$ sudo rpm -Uvh ./rpmbuild/ansible-*.noarch.rpm

I run the command < ansible localhost -m ping >, and display this error:

[root@sever ansible]# ansible localhost -m ping
Traceback (most recent call last):
  File "/usr/local/scripts/ansible/bin/ansible", line 36, in ?
    from ansible.runner import Runner
  File "/usr/local/scripts/ansible/lib/ansible/runner/__init__.py", line 36, in ?
    import ansible.constants as C
  File "/usr/local/scripts/ansible/lib/ansible/constants.py", line 76
    except ConfigParser.Error as e:
                               ^
SyntaxError: invalid syntax
[root@sever ansible]#

Can you help me?

Best regards

Giovanni Tirloni

unread,
May 10, 2015, 4:59:29 PM5/10/15
to ansible...@googlegroups.com
It appears you need a more recent version of Python on the control
machine.

http://docs.ansible.com/intro_installation.html

Giovanni

Randy Bush

unread,
May 10, 2015, 9:00:01 PM5/10/15
to ansible...@googlegroups.com
mac, yosemite, ...

i installed ansible with homebrew. is it safe to

$ brew remove ansible
$ git clone git://github.com/ansible/ansible.git --recursive
$ cd ./ansible
$ make
$ make install

randy

Brian Coca

unread,
May 11, 2015, 9:48:44 AM5/11/15
to ansible...@googlegroups.com
python 2.6+ is required for the control machine, 2.4 (+json lib) for targets

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