Issue with certbot nginx 0.29 and python 2.7


#1

I’m using certbot 0.29 with python 2.7 on a centos7.5 and nginx 1.12.2

when i run
certbot --nginx -d domain.example

i got the following error

Traceback (most recent call last):
File “/bin/certbot”, line 5, in
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 3011, in
parse_requirements(requires), Environment()
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: acme>=0.29.0

Can anyone help me with this issue

Thanks


#2

How did you install Certbot? https://certbot.eff.org/lets-encrypt/centosrhel7-nginx ?


#3

I’ve installed certbot as it’s explained in the tutorial you send me

yum install python2-certbot-nginx

Same error


#4

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

closed #5

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