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

docker pip installation is broken with pip10+ #2001

Closed
kiorky opened this issue Apr 23, 2018 · 1 comment
Closed

docker pip installation is broken with pip10+ #2001

kiorky opened this issue Apr 23, 2018 · 1 comment
Milestone

Comments

@kiorky
Copy link
Contributor

kiorky commented Apr 23, 2018

17bf6f7 from #1990 is only a partial fix.

setup.py has to be fixed.

/usr/bin/pip --version
pip 10.0.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

pip install --ignore-installed --no-deps --no-binary ':all:' "https://github.com/docker/docker-py/archive/2dcedec7c99da00ba282a669abcdb055acf7cec7.zip#egg=docker[tls]"
The directory '/home/gagaro/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/gagaro/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting docker[tls] from https://github.com/docker/docker-py/archive/2dcedec7c99da00ba282a669abcdb055acf7cec7.zip#egg=docker[tls]
  Downloading https://github.com/docker/docker-py/archive/2dcedec7c99da00ba282a669abcdb055acf7cec7.zip
     / 286kB 790kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-UvPGAE/docker/setup.py", line 12, in <module>
        if 'docker-py' in [x.project_name for x in pip.get_installed_distributions()]:
    AttributeError: 'module' object has no attribute 'get_installed_distributions'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-UvPGAE/docker/

ref #1993

kiorky added a commit to corpusops/docker-py that referenced this issue Apr 23, 2018
kiorky added a commit to corpusops/docker-py that referenced this issue Apr 23, 2018
This fixes docker#2001

Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
@shin-
Copy link
Contributor

shin- commented Apr 25, 2018

Thanks! I went ahead and removed the check altogether (accb9de) as I believe it is no longer useful.

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

Successfully merging a pull request may close this issue.

2 participants