ImportError: No module named cryptography

I found this post Amazon Linux -> ImportError: No module named cryptography.hazmat.bindings.openssl.binding - #4 by xinxilas
that gave the following solution
/opt/eff.org/certbot/venv/local/bin/pip install cryptography interface
In my case I had to use sudo with it.
After this, when I issued certbot-auto --help I got
$ certbot-auto --help
Requesting to rerun /usr/local/bin/certbot-auto with root privileges...
Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 2, in
from certbot._internal import main as internal_main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/_internal/main.py", line 11, in
import zope.component
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/component/init.py", line 23, in
from zope.component.interfaces import IComponentArchitecture
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/component/interfaces.py", line 21, in
import zope.deferredimport
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/deferredimport/init.py", line 1, in
from zope.deferredimport.deferredmodule import initialize
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/deferredimport/deferredmodule.py", line 18, in
import zope.proxy
ImportError: No module named proxy

I know very little about python so should I just do the same for the proxy module?
ie
sudo /opt/eff.org/certbot/venv/local/bin/pip install proxy

1 Like