'ImportError: No module named ssl_match_hostname' upon ...
github.com › docker › docker-pyMar 09, 2017 · Command "/usr/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-build-WGvE7j/backports.ssl-match-hostname/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r ', ' ');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-QUZVUK-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-WGvE7j/backports.ssl-match-hostname/
ImportError: No module named backports.ssl_match_hostname
bugs.debian.org › cgi-bin › bugreportMar 19, 2018 · The missing file seems to be generated by the postinst script which contains: pycompile -p python-backports.ssl-match-hostname But, there's also a .prerm script for this package that runs this: pyclean -p python-backports-shutil-get-terminal-size If you install (reinstall) those packages: python-backports.ssl-match-hostname python-backports-shutil-get-terminal-size And remove either of them, you'll end up with /usr/lib/python2.7/dist-packages/backports/__init__.py{c} missing.