Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Linux certbot ImportError: No module named cryptography #7049

seanhepps opened this issue May 9, 2019 · 1 comment


Copy link

commented May 9, 2019

Python 2.7.16

certbot 0.34.2

Error: couldn't get currently installed version for /opt/
Traceback (most recent call last):
File "/opt/", line 7, in
from certbot.main import main
File "/opt/", line 10, in
import josepy as jose
File "/opt/", line 44, in
from josepy.interfaces import JSONDeSerializable
File "/opt/", line 8, in
from josepy import errors, util
File "/opt/", line 4, in
import OpenSSL
File "/opt/", line 8, in
from OpenSSL import crypto, SSL
File "/opt/", line 12, in
from cryptography import x509
ImportError: No module named cryptography

[root@ip-172-31-33-217 ~]# pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 3123, in
File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 3107, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 3136, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 580, in _build_master
return cls._build_from_requirements(requires)
File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 593, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources/", line 781, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application


This comment has been minimized.

Copy link

commented May 9, 2019

Unfortunately, Amazon Linux isn't currently supported so I'm closing this issue. See #6505 and #6506 and the need to include --debug with certbot-auto

If you're on Amazon Linux 2, some users have had success following the instructions for CentOS/RHEL 7 at

@bmw bmw closed this May 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.