}

zope.interface error

Created:

The problem

Traceback (most recent call last):
  File "./letsencrypt", line 7, in <module>
    from letsencrypt.main import main
  File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/letsencrypt/main.py", line 11, in <module>
    import zope.component
  File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/**init**.py", line 16, in <module>
    from zope.interface import Interface
ImportError: No module named interface

Solution 1

Execute the following command to resolve the issue: sudo unset PYTHON_INSTALL_LAYOUT

Solution 2

If you are having issues with AWS ami you can use following commands:

To create new Certificates:

unset PYTHON_INSTALL_LAYOUT; rm -rf /root/.local/share/letsencrypt/; /root/certbot-auto --debug;`

To renew your certificates.

unset PYTHON_INSTALL_LAYOUT; rm -rf /root/.local/share/letsencrypt/; /root/certbot-auto --debug renew;