boon-code / docker-inside

Allows to run a docker container as current user (similar to Jenkins docker.inside())
MIT License
7 stars 1 forks source link

ImportError No module named ssl_match_hostname on docker-inside-setup --auto-pull #15

Closed rrebollo closed 4 years ago

rrebollo commented 4 years ago

Any base dependency not mentioned in readme???

Here is the full trace:

docker-inside-setup --auto-pull Traceback (most recent call last): File "/home/roly/.local/bin/docker-inside-setup", line 6, in from dockerinside.setup.init import setup_main File "/home/roly/.local/lib/python2.7/site-packages/dockerinside/init.py", line 9, in import docker File "/home/roly/.local/lib/python2.7/site-packages/docker/init.py", line 2, in from .api import APIClient File "/home/roly/.local/lib/python2.7/site-packages/docker/api/init.py", line 2, in from .client import APIClient File "/home/roly/.local/lib/python2.7/site-packages/docker/api/client.py", line 10, in from .. import auth File "/home/roly/.local/lib/python2.7/site-packages/docker/auth.py", line 9, in from .utils import config File "/home/roly/.local/lib/python2.7/site-packages/docker/utils/init.py", line 3, in from .decorators import check_resource, minimum_version, update_headers File "/home/roly/.local/lib/python2.7/site-packages/docker/utils/decorators.py", line 4, in from . import utils File "/home/roly/.local/lib/python2.7/site-packages/docker/utils/utils.py", line 13, in from .. import tls File "/home/roly/.local/lib/python2.7/site-packages/docker/tls.py", line 5, in from .transport import SSLHTTPAdapter File "/home/roly/.local/lib/python2.7/site-packages/docker/transport/init.py", line 3, in from .ssladapter import SSLHTTPAdapter File "/home/roly/.local/lib/python2.7/site-packages/docker/transport/ssladapter.py", line 23, in from backports.ssl_match_hostname import match_hostname ImportError: No module named ssl_match_hostname

Tried: pip install backports.ssl-match-hostname

Getting: Requirement already satisfied: backports.ssl-match-hostname in /home/roly/.local/lib/python2.7/site-packages (3.7.0.1)

boon-code commented 4 years ago

Hi, the package is written for Python 3 only. I have never checked what would be necessary to make it run using Python 2. Is it necessary for you to run it using Python 2?

rrebollo commented 4 years ago

Should I use "pip3 install ..." instead on installation process????

rrebollo commented 4 years ago

Well, everything seems to be fine when installed with pip3. Maybe you could mention python 3 requirement on readme??? Anyway, thanks.

boon-code commented 4 years ago

Actually it should be visible on Pypi (category Python :: 3 :: only -> from setup.py); but you are right, mentioning it on the README wouldn't hurt.

boon-code commented 4 years ago

Has been added explicitly to README.md