Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails with ImportError: cannot import name IncompleteRead #1

Open
drmikecrowe opened this issue Mar 21, 2015 · 0 comments
Open

Fails with ImportError: cannot import name IncompleteRead #1

drmikecrowe opened this issue Mar 21, 2015 · 0 comments

Comments

@drmikecrowe
Copy link

The following error occurs:

TASK: [anarcher.docker-registry | Add docker-py python module (for ansible)] *** 
failed: [zdockreg] => {"cmd": "/usr/bin/pip install docker-py", "failed": true}
msg: 
:stderr: Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 11, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead

To fix, add this in install_docker_debian.yml:

- name: Add python-pip package (for ansible)
  apt: pkg=python-pip state=present

# New task:
- name: Make sure pip upgraded
  command: easy_install -U pip

(I supposed installing with easy_install is an option too, but this seems to work)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant