My domain is:
I ran this command:
sudo certbot renew --dry-run
It produced this output:
[famserve@ip-10-1-10-10 nginx]$ sudo certbot renew --dry-run
An unexpected error occurred:
ImportError: cannot import name 'constants' from 'certbot' (/usr/local/lib/python3.7/site-packages/certbot/__init__.py) Please see the logfile '/tmp/tmpo4nofxpy/log' for more details.
[famserve@ip-10-1-10-10 nginx]$
My web server is (include version):
ningx 1.16.1
The operating system my web server runs on is (include version):
Linux ip-10-1-10-10.us-west-1.compute.internal 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[famserve@ip-10-1-10-10 nginx]$
My hosting provider, if applicable, is:
AWS
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
[famserve@ip-10-1-10-10 nginx]$ certbot --version
An unexpected error occurred:
ImportError: cannot import name 'constants' from 'certbot' (/usr/local/lib/python3.7/site-packages/certbot/__init__.py) Please see the logfile '/tmp/tmpa6raox6v/log' for more details.
[famserve@ip-10-1-10-10 nginx]$
I tried sudo yum uninstall certbot python2-certbot-dns-route53 python2-certbot-nginx and reinstalling them.
This worked previously. Something changed with Python’s environment and I don’t know how to make certbot happy again. Uninstalling and reinstalling didn’t help.