My domain is: www.azomtech.com
I ran this command: sudo certbot delete
It produced this output:
dev1n@azompr1:/var/www$ sudo certbot delete
Traceback (most recent call last):
File "/usr/bin/certbot", line 33, in <module>
sys.exit(load_entry_point('certbot==1.8.0', 'console_scripts', 'certbot')())
File "/usr/bin/certbot", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/certbot/main.py", line 2, in <module>
from certbot._internal import main as internal_main
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 9, in <module>
import configobj
File "/usr/lib/python3/dist-packages/configobj.py", line 22, in <module>
import six
ModuleNotFoundError: No module named 'six'
My web server is (include version):
The operating system my web server runs on is (include version): Linux Debian: 5.6.0-2-amd64
My hosting provider, if applicable, is: Namecheap
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): same error above, but this might be useful
dev1n@azompr1:~$ apt-cache policy certbot | grep -i Installed
Installed: 1.7.0-1
Certbot was installed correctly and works just fine in generating SSL certificates for the hosted websites.
But after hosting a new website (flask app with Gunicorn), certbot commands started throwing the error "ModuleNotFoundError: No module named 'six'".
Please help debug and fix the issue