AWS EC2 AMI zope.interface error

Running /opt/letsencrypt/letsencrypt-auto --debug
gives the following error:

Checking for new version...
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Requesting root privileges to run certbot...
   sudo CERTBOT_AUTO=/opt/letsencrypt/letsencrypt-auto /home/ec2-user/.local/share/letsencrypt/bin/letsencrypt --debug
Traceback (most recent call last):
  File "/home/ec2-user/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>
    from certbot.main import main
  File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/", line 11, in <module>
    import zope.component
  File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/", line 16, in <module>
    from zope.interface import Interface
ImportError: No module named interface

Any ideas how to resolve this? I did a git pull right before running this (same day as this post).


1 Like

Hey @edwardiv, I had the same issue. Have you seen this ticket?
The suggestion to run unset PYTHON_INSTALL_LAYOUT worked for me.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.