Hello there! I am looking into getting a certificate for my django app and followed the certbot install instructions described here.
As additional information: I needed Python 3.7 for my project, so I compiled it from source. Have also the newest versions of pip, django and gunicorn installed with pip into a virtualenv.
Installing certbot with
sudo apt-get install python3-certbot-nginx -t stretch-backports
works but then I get the following error when running certbot:
The 'certbot==0.25.0' distribution was not found and is required by the application.
Output of apt search certbot
[...]
python3-certbot/stretch-backports,now 0.25.0-1~bpo9+1 all [installed,automatic]
main library for certbot
[...]
python3-certbot-nginx/stretch-backports,now 0.25.0-2~bpo9+1 all [installed]
Nginx plugin for Certbo
My domain is:
scheer.xyz
I ran this command:
sudo certbot --nginx
or
certbot --version
or any certbot command...
It produced this output:
Traceback (most recent call last): File "/usr/bin/certbot", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3088, in <module> @_call_aside File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3072, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 574, in _build_master ws.require(__requires__) File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 892, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 778, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'certbot==0.25.0' distribution was not found and is required by the application
My web server is (include version):
nginx 1.10.3
The operating system my web server runs on is (include version):
Debian 9
My hosting provider, if applicable, is:
vultr
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
Any help will be much appreciated!
Cheers,