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 On Tuesday, November 10, 2015, pixel fairy <[email protected]> wrote: > 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 > > > > -- > 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 [email protected] > <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/a4fd45e9-715d-471d-962e-806cd5c223df%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/a4fd45e9-715d-471d-962e-806cd5c223df%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-qmK%2BfMZmm-UJ4iCi7t8ZCbAxtaZQFz_ii4oG07qRLbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
