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-compose is installed but it runs in error on bento/centos-7 (7.8) vagrant box. #6

Closed
bayeslearner opened this issue Nov 4, 2020 · 3 comments

Comments

@bayeslearner
Copy link

Hi,
It seems that there is some version mismatch between python docker-compose etc, it seems to be an error with python 2.7 which is no longer supported?
An yum install of docker-compose seems to work ok, because it will download and install python 3.6.

I tried your roles and it seems docker-compose is installed but won't run:
[vagrant@hdp jenkins-sa]$ docker-compose up
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 7, in
from compose.cli.main import main
File "/usr/lib/python2.7/site-packages/compose/cli/main.py", line 14, in
import docker.errors
File "/usr/lib/python2.7/site-packages/docker/init.py", line 2, in
from .api import APIClient
File "/usr/lib/python2.7/site-packages/docker/api/init.py", line 2, in
from .client import APIClient
File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 5, in
import requests
File "/usr/lib/python2.7/site-packages/requests/init.py", line 58, in
from . import utils
File "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in
from .exceptions import InvalidURL
File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in
from urllib3.exceptions import HTTPError as BaseHTTPError
File "/usr/lib/python2.7/site-packages/urllib3/init.py", line 10, in
from .connectionpool import (
File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 31, in
from .connection import (
File "/usr/lib/python2.7/site-packages/urllib3/connection.py", line 45, in
from .util.ssl_ import (
File "/usr/lib/python2.7/site-packages/urllib3/util/init.py", line 5, in
from .request import make_headers
File "/usr/lib/python2.7/site-packages/urllib3/util/request.py", line 5, in
from ..exceptions import UnrewindableBodyError
ImportError: cannot import name UnrewindableBodyError

@robertdebock
Copy link
Owner

Okay, I'll try to find a solution, there is sufficient information in the issue, thanks!

robertdebock added a commit that referenced this issue Nov 4, 2020
@robertdebock
Copy link
Owner

CI confirms this issue. Still working on it.

@robertdebock
Copy link
Owner

It's fixed by moving docker-compose to a new role: robertdebock.docker_compose.

Thanks for letting me know about the issue!

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

2 participants