Error when running certbot

when I execute "sudo certbot" I get the following:

File "/usr/local/bin/certbot", line 7, in
from certbot.main import main
File "/usr/local/lib/python2.7/dist-packages/certbot/", line 2, in
from certbot._internal import main as internal_main
File "/usr/local/lib/python2.7/dist-packages/certbot/_internal/", line 22, in
from certbot._internal import cert_manager
File "/usr/local/lib/python2.7/dist-packages/certbot/_internal/", line 16, in
from certbot._internal import storage
File "/usr/local/lib/python2.7/dist-packages/certbot/_internal/", line 83, in
def add_time_interval(base_time, interval, textparser=parsedatetime.Calendar()):
File "/usr/local/lib/python2.7/dist-packages/parsedatetime/", line 270, in init
self.ptc = Constants()
File "/usr/local/lib/python2.7/dist-packages/parsedatetime/", line 2381, in init
self.locale = get_icu(self.localeID)
File "/usr/local/lib/python2.7/dist-packages/parsedatetime/pdt_locales/", line 56, in get_icu
result['icu'] = icu = pyicu.Locale(locale)
AttributeError: 'module' object has no attribute 'Locale'

Is there a way that I can resolve the problem ? thanks.

1 Like

To start, what version of certbot are you running? Check sudo certbot --version

1 Like

Hi @briannfang, and welcome to the LE community forum :slight_smile:

That is a clear indication of an outdated certbot.
[possibly certbot-auto]

Until we know the certbot version, we can only guess.
My guess is that, yes, you can resolve that problem by upgrading the ACME client.

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