cant install on os x 10.11

87 views
Skip to first unread message

pixel fairy

unread,
Nov 10, 2015, 4:20:09 AM11/10/15
to Ansible Project
easy install pip worked. but when trying to install ansible, this happens. it looks like a connection error. maybe intermittent failure?

$ sudo pip install ansible
Downloading/unpacking ansible
Cleaning up...
Exception:
Traceback (most recent call last):
 
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/basecommand.py", line 122, in main
    status
= self.run(options, args)
 
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/commands/install.py", line 278, in run
    requirement_set
.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
 
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/req.py", line 1177, in prepare_files
    url
= finder.find_requirement(req_to_install, upgrade=self.upgrade)
 
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/index.py", line 194, in find_requirement
    page
= self._get_page(main_index_url, req)
 
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/index.py", line 568, in _get_page
    session
=self.session,
 
File "/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg/pip/index.py", line 694, in get_page
    req
, link, "connection error: %s" % exc, url,
TypeError: __str__ returned non-string (type Error)

Storing debug log for failure in /Users/pixel/Library/Logs/pip.log



Matt Martz

unread,
Nov 10, 2015, 8:08:10 AM11/10/15
to ansible...@googlegroups.com
Based on that error it looks like pip is failing to locate dependencies while communicating with pypi with an un caught exception.

This isn't really Ansible related.  You might want to try upgrading pip and try installing Ansible again.

sudo pip install -U pip
sudo pip install -U ansible
--
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/a4fd45e9-715d-471d-962e-806cd5c223df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

pixel fairy

unread,
Nov 10, 2015, 8:50:07 AM11/10/15
to Ansible Project
same error. i think this ones on apple. already contacted their developer forum. will gather more data and send them a bug report.

in the mean time, running it in a vm. been thinking of switching this mac over to linux anyway.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.

tiny...@gmail.com

unread,
Nov 10, 2015, 11:48:53 AM11/10/15
to Ansible Project
I believe recommended way is to use homebrew.

Matt Martz

unread,
Nov 10, 2015, 12:10:20 PM11/10/15
to ansible...@googlegroups.com
Homebrew is *not* the recommended way to install Ansible.  The recommended way to install Ansible on Mac OS, is via pip.

We specifically removed those installation instructions, as homebrew causes other issues that are much more complicated to resolve.

--
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/83284221-ff46-4523-a33a-628f69d7eb02%40googlegroups.com.

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

pixel fairy

unread,
Nov 11, 2015, 6:01:23 AM11/11/15
to Ansible Project
I ended up using homebrew to install a working python, and then was able to use pip to install ansible. So, homebrew did end up part of the solution.

Ill switch back to system python when apple fixes it.
Reply all
Reply to author
Forward
0 new messages