ImportError: No module named entrypoint

When i run certbot renew, it produced this output:

An unexpected error occurred:
ImportError: No module named entrypoint
Please see the logfile ‘/tmp/tmpzJ7Wdm/log’ for more details.

The log file contains:

2020-03-04 11:03:26,599:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File “/bin/certbot”, line 9, in
load_entry_point(‘certbot==1.0.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 14, in main
return internal_main.main(cli_args)
File “/usr/lib/python2.7/site-packages/certbot/_internal/main.py”, line 1320, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File “/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py”, line 208, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File “/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py”, line 50, in init
self.plugin_cls = entry_point.load()
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 2260, in load
entry = import(self.module_name, globals(),globals(), [‘name’])
ImportError: No module named entrypoint
2020-03-04 11:03:26,599:ERROR:certbot._internal.log:An unexpected error occurred:

My operating system is CentOS 7.

¿How I resolve this problem?

Thanks in advance.

Hi @frajavava,

Welcome to the community forum!

How did you install certbot?

What happens when you type which certbot or which certbot-auto ?

Hi @Phil_LE,

Thanks.

Originally with yum install cerbot. It was working fine so far, I guess something happened with the latest software update.

which certbot command respond:
/usr/bin/certbot

which certbot-auto respond:
/usr/bin/which: no certbot-auto in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/usuario/.local/bin:/home/usuario/bin)

Well, i solved this:

I removed certbot
yum remove certobot python2-certbot-apache

And I intsalled with the alternative installation method

wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto

And finally I Renewed certificates with
sudo certbot -auto renew

Thanks.

1 Like