Debian let's encrypt problems

Please fill out the fields below so we can help you better.

My domain is: americanpestcontrol.com

I ran this command: letsencrypt

It produced this output:

Traceback (most recent call last):
File “/usr/bin/letsencrypt”, line 5, in
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2927, in
@_call_aside
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2913, in _call_aside
f(*args, **kwargs)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2940, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 635, in _build_master
ws.require(requires)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 943, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘python2-pythondialog>=3.2.2rc1’ distribution was not found and is required by certbot

My operating system is (include version): Debian Jessie 3.16.7

My web server is (include version): Apache2

My hosting provider, if applicable, is: turnkey

I can login to a root shell on my machine (yes or no, or I don’t know):
yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

I’ve had similar issues and error messages in the past. It looks like your Python packages need updating. The first thing I’d try is updating python to the latest available version for your platform.

The python errors letsencrypt/certbot generate are really unhelpful, and mostly noise. The nugget of information you need is generally at the very bottom of the error.

The bottom of that error message is telling you that you need “python2-pythondialog” and it needs to be at least version 3.2.2rc1. The package name will probably not be exactly “python2-pythondialog”, but it will be something similar. Check if it’s missing or too low a version.

If that doesn’t work (for me, there was an issue on FreeBSD where ports only had an old version of a python library), you can try dropping back to an earlier version of Certbot. I’m not sure how you do that on Debian :slight_smile:

Good luck!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.