Bug#893520: ImportError: No module named backports.ssl_match_hostname
On Fri, 30 Mar 2018 23:04:49 -0400 Jason Pleau wrote: > Small typo in my previous email, the .prerm script contains: > > pyclean -p python-backports.ssl-match-hostname > > I had another package in my clipboard, just wanted to clear that up so > there's no confusion :) Thanks. That's helpful. Looking at debpython/namespace.py, it is supposed to prevent this from happening. Not sure why it isn't yet. I agree python-defaults is the right package for this, I don't think it's grave, however. Scott K
Bug#893520: ImportError: No module named backports.ssl_match_hostname
Small typo in my previous email, the .prerm script contains: pyclean -p python-backports.ssl-match-hostname I had another package in my clipboard, just wanted to clear that up so there's no confusion :) -- Jason Pleau
Bug#893520: ImportError: No module named backports.ssl_match_hostname
Hi. I was also affected by this bug and I managed to reproduce it. > Why do you think that the file going missing is a python-minimal bug? 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. Maybe those scripts should check if those files belong to another packages before running pyclean There are other python-backports-* packages that probably suffer from the same problem. -- Jason Pleau
Bug#893520: ImportError: No module named backports.ssl_match_hostname
On Mon, 19 Mar 2018 17:53:00 +0100 Laurent Bigonville wrote: > reassign 893520 python-minimal 2.7.14-4 ... > > > So (force) purging python-backports.ssl-match-hostname and reinstalling > it fixed the isssue... > > When purging dpkg showed the following lines: > > Suppression de python-backports.ssl-match-hostname (3.5.0.1-1) ... > E: namespace:121: cannot remove > /usr/lib/python2.7/dist-packages/backports/__init__.py > > Somehow, /usr/lib/python2.7/dist-packages/backports/__init__.py was not > existing on the system > Why do you think that the file going missing is a python-minimal bug? Scott K
Bug#893520: ImportError: No module named backports.ssl_match_hostname
reassign 893520 python-minimal 2.7.14-4 thanks On Mon, 19 Mar 2018 17:35:28 +0100 Laurent Bigonville wrote: > Hi, > > Seems that python-docker completely fails: > > >>> import docker > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.7/dist-packages/docker/__init__.py", line 2, in > from .api import APIClient > File "/usr/lib/python2.7/dist-packages/docker/api/__init__.py", line 2, in > from .client import APIClient > File "/usr/lib/python2.7/dist-packages/docker/api/client.py", line 11, in > from .build import BuildApiMixin > File "/usr/lib/python2.7/dist-packages/docker/api/build.py", line 9, in > from .. import utils > File "/usr/lib/python2.7/dist-packages/docker/utils/__init__.py", line 2, in > from .build import tar, exclude_paths > File "/usr/lib/python2.7/dist-packages/docker/utils/build.py", line 5, in > from .utils import create_archive > File "/usr/lib/python2.7/dist-packages/docker/utils/utils.py", line 18, in > from .. import tls > File "/usr/lib/python2.7/dist-packages/docker/tls.py", line 5, in > from .transport import SSLAdapter > File "/usr/lib/python2.7/dist-packages/docker/transport/__init__.py", line 3, in > from .ssladapter import SSLAdapter > File "/usr/lib/python2.7/dist-packages/docker/transport/ssladapter.py", line 21, in > from backports.ssl_match_hostname import match_hostname > ImportError: No module named backports.ssl_match_hostname > > As you can see below, python-backports.ssl-match-hostname is installed > So (force) purging python-backports.ssl-match-hostname and reinstalling it fixed the isssue... When purging dpkg showed the following lines: Suppression de python-backports.ssl-match-hostname (3.5.0.1-1) ... E: namespace:121: cannot remove /usr/lib/python2.7/dist-packages/backports/__init__.py Somehow, /usr/lib/python2.7/dist-packages/backports/__init__.py was not existing on the system
Bug#893520: ImportError: No module named backports.ssl_match_hostname
Package: python-docker Version: 2.5.1-1 Severity: grave Hi, Seems that python-docker completely fails: >>> import docker Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/docker/__init__.py", line 2, in from .api import APIClient File "/usr/lib/python2.7/dist-packages/docker/api/__init__.py", line 2, in from .client import APIClient File "/usr/lib/python2.7/dist-packages/docker/api/client.py", line 11, in from .build import BuildApiMixin File "/usr/lib/python2.7/dist-packages/docker/api/build.py", line 9, in from .. import utils File "/usr/lib/python2.7/dist-packages/docker/utils/__init__.py", line 2, in from .build import tar, exclude_paths File "/usr/lib/python2.7/dist-packages/docker/utils/build.py", line 5, in from .utils import create_archive File "/usr/lib/python2.7/dist-packages/docker/utils/utils.py", line 18, in from .. import tls File "/usr/lib/python2.7/dist-packages/docker/tls.py", line 5, in from .transport import SSLAdapter File "/usr/lib/python2.7/dist-packages/docker/transport/__init__.py", line 3, in from .ssladapter import SSLAdapter File "/usr/lib/python2.7/dist-packages/docker/transport/ssladapter.py", line 21, in from backports.ssl_match_hostname import match_hostname ImportError: No module named backports.ssl_match_hostname As you can see below, python-backports.ssl-match-hostname is installed Kind regards, Laurent Bigonville -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy Versions of packages python-docker depends on: ii python 2.7.14-4 ii python-backports.ssl-match-hostname 3.5.0.1-1 ii python-dockerpycreds 0.2.1-1 ii python-ipaddress 1.0.17-1 ii python-requests 2.18.4-2 ii python-six 1.11.0-2 ii python-websocket 0.37.0-2 python-docker recommends no packages. python-docker suggests no packages. -- no debconf information