Error while installing ansible in OS X.

111 views
Skip to first unread message

RoboWhite

unread,
Aug 20, 2016, 5:34:22 AM8/20/16
to Ansible Project

Hi,


Im getting the below error while installing the —ansible in OS X.  Help me on fixing this pls.



Rameshs-MacBook-Pro:centos-6.7 Ramesh$ sudo easy_install pip
Password:
Searching for pip
Best match: pip 8.1.2
Processing pip-8.1.2-py2.7.egg
pip 8.1.2 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin

Using /Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
Rameshs-MacBook-Pro:centos-6.7 Ramesh$ sudo pip install ansible --quiet
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-zE90eG/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4nV8nv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-zE90eG/pycrypto/

Rameshs-MacBook-Pro:centos-6.7 Ramesh$ vagrant provision
==> default: Running provisioner: ansible...
default: Running ansible-playbook...
Traceback (most recent call last):
File "/usr/local/bin/ansible-playbook", line 4, in <module>
import pkg_resources
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2793, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pycrypto>=2.6
Ansible failed to complete successfully. A
ny error output should be
visible above. Please fix these errors and try again.

pixel fairy

unread,
Aug 21, 2016, 3:56:50 PM8/21/16
to Ansible Project
this should be a faq. I dont know the causes, but ansible wont install globally on os-x. you have to install as a user.


https://gist.github.com/xahare/77ef7d3bb61f49df618ffa8bfb9142ad

Kai Stian Olstad

unread,
Aug 21, 2016, 4:08:01 PM8/21/16
to ansible...@googlegroups.com
On 21. aug. 2016 21:56, pixel fairy wrote:
> this should be a faq. I dont know the causes, but ansible wont install
> globally on os-x. you have to install as a user.

Or send a PR with updated installation instruction here
https://github.com/ansible/ansible/blob/devel/docsite/rst/intro_installation.rst

--
Kai Stian Olstad

Reply all
Reply to author
Forward
0 new messages