ModuleNotFoundError: No module named 'certbot'

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
website-prod-search-engine-northeurope.cloudapp.azure.com
I ran this command:
certbot --version
It produced this output:
File "/usr/bin/certbot", line 11, in
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2693, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2324, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2330, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
ModuleNotFoundError: No module named 'certbot'

My web server is (include version):
nginx 1.14.0
The operating system my web server runs on is (include version):
ubuntu 18
My hosting provider, if applicable, is:

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):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

1 Like

Hi and welcome!

Why would you use an FQDN from "azure.com" ?

Your certbot probably failed while trying to update itself.
I would:

2 Likes

Perhaps just follow the instructions here? :wink:
Admittedly, yours are more concise, rg305.

2 Likes

It's not worth fixing.
You need to be at least at 1.6.0.

2 Likes

Fixing? I don't understand.

1 Like

In case anyone thinks...
I can fix that!
Version 0.31.0 ain't worth fixing.

1 Like

I can fix it... :bomb:

1 Like