Issue with certbot nginx 0.29 and python 2.7

I’m not sure how you got into this situation, but you should be able to repair it.

I managed to get a similarly broken environment by doing:

pip uninstall acme

leading me to your error:

# certbot
Traceback (most recent call last):
  File "/usr/bin/certbot", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: acme>=0.29.0

and then was able to repair it by re-installing the particular dependency that got messed up:

yum -y reinstall python2-acme
1 Like