ImportError: No module named backports.ssl_match_hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker-compose (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When using upstream docker (i.e. docker-ce from download.
Upstream complaints:
* https:/
* https:/
I realise that you probably don't support having upstream docker installed, but it's probably the overwhelmingly common case.
Error:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
return get_distributio
File "/usr/lib/
return ep.load()
File "/usr/lib/
return self.resolve()
File "/usr/lib/
module = __import_
File "/usr/lib/
from . import errors
File "/usr/lib/
from docker.errors import APIError
File "/usr/lib/
from .client import Client, AutoVersionClient, from_env # flake8: noqa
File "/usr/lib/
from . import api
File "/usr/lib/
from .build import BuildApiMixin
File "/usr/lib/
from .. import utils
File "/usr/lib/
from .utils import (
File "/usr/lib/
from .. import tls
File "/usr/lib/
from .ssladapter import ssladapter
File "/usr/lib/
from .ssladapter import SSLAdapter # flake8: noqa
File "/usr/lib/
from backports.
ImportError: No module named backports.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: docker-compose 1.8.0-2
ProcVersionSign
Uname: Linux 4.13.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
Date: Sun Jan 14 14:53:20 2018
PackageArchitec
SourcePackage: docker-compose
UpgradeStatus: Upgraded to artful on 2017-09-12 (124 days ago)
Hi.
We investigated a similar issue in Debian [1]
Make sure you have this package installed:
https:/ /packages. ubuntu. com/artful/ python- backports. ssl-match- hostname
If you still get the error:
A temporary fix is to create an empty file called __init__.py in /usr/lib/ python2. 7/dist- packages/ backports
Full filename: /usr/lib/ python2. 7/dist- packages/ backports/ __init_ _.py
1: see: https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 893520