[Letsencrypt-devel] Bug#893775: python3-certbot: should depend on python3-distutils

Mikko Rasa tdb at tdb.fi
Thu Mar 22 08:23:57 UTC 2018

Package: python3-certbot
Version: 0.22.0-1
Severity: serious
Justification: Policy 3.5

The dependency on python3-distutils was recently dropped from
libpython3.6-minimal and the package was automatically removed from my
system as unused.  Since then certbot fails with:

Traceback (most recent call last):
  File "/usr/bin/certbot", line 11, in <module>
    load_entry_point('certbot==0.21.1', 'console_scripts', 'certbot')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 587, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2800, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2431, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2437, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 17, in <module>
    from certbot import account
  File "/usr/lib/python3/dist-packages/certbot/account.py", line 21, in <module>
    from certbot import util
  File "/usr/lib/python3/dist-packages/certbot/util.py", line 7, in <module>
    import distutils.version  # pylint: disable=import-error,no-name-in-module
ModuleNotFoundError: No module named 'distutils'

Installing python3-distutils again fixes the issue.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.24-core2-server (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages python3-certbot depends on:
ii  python3                 3.6.4-1
ii  python3-acme            0.22.0-1
ii  python3-configargparse  0.11.0-1
ii  python3-configobj       5.0.6-2
ii  python3-cryptography    2.1.4-1
ii  python3-josepy          1.0.1-1
ii  python3-mock            2.0.0-3
ii  python3-parsedatetime   2.4-2
ii  python3-pkg-resources   38.5.2-1
ii  python3-requests        2.18.4-2
ii  python3-rfc3339         1.0-4
ii  python3-tz              2018.3-2
ii  python3-zope.component  4.3.0-1
ii  python3-zope.interface  4.3.2-1+b1

Versions of packages python3-certbot recommends:
ii  certbot  0.22.0-1

Versions of packages python3-certbot suggests:
pn  python-certbot-doc  <none>

-- no debconf information

More information about the Letsencrypt-devel mailing list