pip install fails on Cento5.10

Dear All,

I’m unable to install ansible via pip on Centos 5.10:

Using version 0.11 (newest of versions: 0.11, 0.10, 0.9, 0.8, 0.7, 0.6)
Downloading from URL https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.11.tar.gz#md5=8ef586fe4dbb156697d756900cb41d7c (from https://pypi.python.org/simple/ecdsa/)
Running setup.py egg_info for package ecdsa
Traceback (most recent call last):
File “”, line 14, in ?
File “/root/build/ecdsa/setup.py”, line 5, in ?
from ecdsa.six import print_
File “ecdsa/init.py”, line 3
from .keys import SigningKey, VerifyingKey, BadSignatureError, BadDigestError
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File “”, line 14, in ?

File “/root/build/ecdsa/setup.py”, line 5, in ?

from ecdsa.six import print_

File “ecdsa/init.py”, line 3

from .keys import SigningKey, VerifyingKey, BadSignatureError, BadDigestError

^

SyntaxError: invalid syntax

Usually I have some idea on what to investigate next, but in this case. I’m stumped…

Mark

Hrm yes, that seems to be broken because of a dependency issue. You can try and install a slightly older version of the ecdsa library first, to see if that gets you around the issue?

The more correct answer here is Ansible on the control machine requires python 2.6 or higher.

The remote machines only need python 2.4 or higher.

Mark,

Were you able to install ansible? I am seeing the same error message and my python version is 2.7.2. I am installing on CentOS 5.6.

Ansible does NOT support running on CentOS 5.X as a control machine.

It will manage them as guests.

I would highly recommend installing on 6.X, a Fedora, Ubuntu, or a Mac, as good/easy alternatives.

The reason for this is python 2.6 is on the control machine - you can do this if you know what you are doing, but we can’t really spend too much time helping with it, especially when problems are reported.