Certbot missing python dependencies

I ran this command: certbot

It produced this output:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 9, in
load_entry_point(‘certbot==0.31.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2569, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2229, in load
return self.resolve()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2235, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 18, in
from certbot import account
File “/usr/lib/python2.7/site-packages/certbot/account.py”, line 18, in
from acme import messages
File “/usr/lib/python2.7/site-packages/acme/messages.py”, line 11, in
from acme import challenges
File “/usr/lib/python2.7/site-packages/acme/challenges.py”, line 12, in
import requests
File “/usr/lib/python2.7/site-packages/requests/init.py”, line 60, in
from .packages.urllib3.exceptions import DependencyWarning
File “/usr/lib/python2.7/site-packages/requests/packages/init.py”, line 29, in
import urllib3
File “/usr/lib/python2.7/site-packages/urllib3/init.py”, line 8, in
from .connectionpool import (
File “/usr/lib/python2.7/site-packages/urllib3/connectionpool.py”, line 29, in
from .connection import (
File “/usr/lib/python2.7/site-packages/urllib3/connection.py”, line 39, in
from .util.ssl_ import (
ImportError: No module named util.ssl_

My web server is (include version): nginx

The operating system my web server runs on is (include version): centos7

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

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): rpm package version 0.31.0. Can’t tell actual version because of output above

I’m missing some python dependencies. After installing a few using yum I got stuck with the current message. I’m kinda lost on what to look for specifically since I dont have experience doing anything with Python really. Hopefully someone here can point me in the right direction.

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