os x yosimite, pip tries to make ansible run in python3

170 views
Skip to first unread message

pixel fairy

unread,
Sep 2, 2015, 8:37:21 AM9/2/15
to Ansible Project
bonechar:~# pip install ansible
Collecting ansible
  Downloading ansible-1.9.2.tar.gz (927kB)
    100% |████████████████████████████████| 929kB 641kB/s
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/local/lib/python3.4/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/local/lib/python3.4/site-packages (from ansible)
...
bonechar:~ pixel$ which ansible
/usr/local/bin/ansible
bonechar:~ pixel$ ansible-vault edit --help
  File "/usr/local/bin/ansible-vault", line 148
    print "Decryption successful"
                                ^
SyntaxError: Missing parentheses in call to 'print'
bonechar:~ pixel$ ansible --version
  File "/usr/local/bin/ansible", line 203
    except errors.AnsibleError, e:
                              ^
SyntaxError: invalid syntax


the one from git runs fines, but im kinda iffy about a dev version. maybe i should check out stable?

Brian Coca

unread,
Sep 2, 2015, 8:50:15 AM9/2/15
to Ansible Project
you might be using pip3 and need pip2.



--
Brian Coca

pixel fairy

unread,
Sep 2, 2015, 8:54:39 AM9/2/15
to Ansible Project
yup, the default pip was 3. dont know how that changed.

Greg DeKoenigsberg

unread,
Sep 2, 2015, 8:55:30 AM9/2/15
to Ansible Project

May be worth a new note in our docs.

--
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/ccecdaae-8908-4d97-a9c6-7eb75c5f3a60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages