Amazone linux にwgetでinstallしたcertbot-auto が動かなくなったときの対応


Amazone linux にwgetでinstallしたcertbot-auto が以下のようなエラーを発生するようになってました

$ certbot-auto --help
Requesting to rerun /usr/local/bin/certbot-auto with root privileges...
Upgrading certbot-auto 0.22.0 to 0.22.2...
Replacing certbot-auto...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Traceback (most recent call last):
  File "/opt/", line 7, in <module>
    from certbot.main import main
  File "/opt/", line 10, in <module>
    import josepy as jose
  File "/opt/", line 41, in <module>
    from josepy.interfaces import JSONDeSerializable
  File "/opt/", line 8, in <module>
    from josepy import errors, util
  File "/opt/", line 4, in <module>
    import OpenSSL
  File "/opt/", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/opt/", line 12, in <module>
    from OpenSSL._util import (
  File "/opt/", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding




$ cat /etc/system-release
Amazon Linux AMI release 2016.03

wgetで /usr/local/bin/certbot-auto をインストールしてました


sudo rm /usr/local/bin/certbot-auto
sudo /usr/local/bin/pip install cryptography
sudo /usr/local/bin/pip install certbot



Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.