{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker-py/issues/1395","repository_url":"https://api.github.com/repos/docker/docker-py","labels_url":"https://api.github.com/repos/docker/docker-py/issues/1395/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker-py/issues/1395/comments","events_url":"https://api.github.com/repos/docker/docker-py/issues/1395/events","html_url":"https://github.com/docker/docker-py/issues/1395","id":201636854,"node_id":"MDU6SXNzdWUyMDE2MzY4NTQ=","number":1395,"title":"docker-py installation breaks docker-compose","user":{"login":"serialdoom","id":6338625,"node_id":"MDQ6VXNlcjYzMzg2MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/6338625?v=4","gravatar_id":"","url":"https://api.github.com/users/serialdoom","html_url":"https://github.com/serialdoom","followers_url":"https://api.github.com/users/serialdoom/followers","following_url":"https://api.github.com/users/serialdoom/following{/other_user}","gists_url":"https://api.github.com/users/serialdoom/gists{/gist_id}","starred_url":"https://api.github.com/users/serialdoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serialdoom/subscriptions","organizations_url":"https://api.github.com/users/serialdoom/orgs","repos_url":"https://api.github.com/users/serialdoom/repos","events_url":"https://api.github.com/users/serialdoom/events{/privacy}","received_events_url":"https://api.github.com/users/serialdoom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-01-18T17:17:06Z","updated_at":"2018-08-14T15:32:55Z","closed_at":"2017-01-20T00:19:29Z","author_association":"NONE","body":"im not quite sure if this is correct, but trying to install `docker-py` through pip after i've installed `docker-compose` breaks `docker-compose` with\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/docker-compose\", line 7, in <module>\r\n    from compose.cli.main import main\r\n  File \"/usr/local/lib/python2.7/site-packages/compose/cli/main.py\", line 20, in <module>\r\n    from ..bundle import get_image_digests\r\n  File \"/usr/local/lib/python2.7/site-packages/compose/bundle.py\", line 13, in <module>\r\n    from .network import get_network_defs_for_service\r\n  File \"/usr/local/lib/python2.7/site-packages/compose/network.py\", line 7, in <module>\r\n    from docker.types import IPAMConfig\r\nImportError: cannot import name IPAMConfig\r\n```\r\n\r\nTo fix that error, i just need to do the installations in this order:\r\n```\r\npip install docker-py\r\npip install docker-compose\r\n```\r\n\r\n\r\ngist:\r\nhttps://gist.github.com/serialdoom/3a443c420aa29f9422f8c5fc73f46602\r\n\r\npython/pip versions tried:\r\n```\r\ndocker run -it python:2.7.13 bash -c 'pip --version'\r\npip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)\r\ndocker run -it python:2.7.12 bash -c 'pip --version'\r\npip 8.1.2 from /usr/local/lib/python2.7/site-packages (python 2.7)\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker-py/issues/comments/412914447","html_url":"https://github.com/docker/docker-py/issues/1395#issuecomment-412914447","issue_url":"https://api.github.com/repos/docker/docker-py/issues/1395","id":412914447,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjkxNDQ0Nw==","user":{"login":"isaacweathers","id":693607,"node_id":"MDQ6VXNlcjY5MzYwNw==","avatar_url":"https://avatars2.githubusercontent.com/u/693607?v=4","gravatar_id":"","url":"https://api.github.com/users/isaacweathers","html_url":"https://github.com/isaacweathers","followers_url":"https://api.github.com/users/isaacweathers/followers","following_url":"https://api.github.com/users/isaacweathers/following{/other_user}","gists_url":"https://api.github.com/users/isaacweathers/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacweathers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacweathers/subscriptions","organizations_url":"https://api.github.com/users/isaacweathers/orgs","repos_url":"https://api.github.com/users/isaacweathers/repos","events_url":"https://api.github.com/users/isaacweathers/events{/privacy}","received_events_url":"https://api.github.com/users/isaacweathers/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T15:32:55Z","updated_at":"2018-08-14T15:32:55Z","author_association":"NONE","body":"Old but fixed for this issue:\r\n1.  `pip install --upgrade pip`\r\n2.  `pip install -e 'git+https://github.com/shin-/compose.git@1.6.2#egg=docker-compose'`\r\n3. `pip uninstall docker-py`\r\n4. `sudo pip install docker-py`\r\n\r\nThis seemed to work for me on Mac. "}}
{"actor":{"display_login":"isaacweathers"}}