I ran this command: certbot
It produced this output:
Traceback (most recent call last): File "/usr/bin/certbot", line 9, in <module> load_entry_point('certbot==0.27.0', 'console_scripts', 'certbot')() File "/usr/lib/python2.7/dist-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/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load return self.resolve() File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 18, in <module> from certbot import account File "/usr/lib/python2.7/dist-packages/certbot/account.py", line 18, in <module> from acme import messages File "/usr/lib/python2.7/dist-packages/acme/messages.py", line 11, in <module> from acme import challenges File "/usr/lib/python2.7/dist-packages/acme/challenges.py", line 12, in <module> import requests File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 58, in <module> from . import utils File "/usr/lib/python2.7/dist-packages/requests/utils.py", line 26, in <module> from .compat import parse_http_list as _parse_list_header File "/usr/lib/python2.7/dist-packages/requests/compat.py", line 42, in <module> from .packages.urllib3.packages.ordered_dict import OrderedDict ImportError: No module named ordered_dict
My web server is (include version): Apache 2.4.46
The operating system my web server runs on is (include version): Ubuntu 16.04
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): Can't run certbot --version
but the Apt package version is 0.27.0-1~ubuntu16.04.1
Pretty straightforward. I seem to have all dependencies properly installed, but I can't run certbot at all without running into this python module error. It works fine on another server with a very similar setup and the same software versions. Not sure how to troubleshoot further.
Edit: Removed domain, it's irrelevant to the issue.