I just uninstalled certbot from pip and just uninstalled certbot from apt.
I am reinstalling certbot from apt.
But now when I run: certbot --nginx -d raulsammer.com -d www.raulsammer.com
I get this error:
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py", line 486, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py", line 2867, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py", line 2471, in load
return self.resolve()
File "/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py", line 2477, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 18, in
from certbot import account
File "/usr/lib/python3/dist-packages/certbot/account.py", line 21, in
from certbot import constants
File "/usr/lib/python3/dist-packages/certbot/constants.py", line 53, in
tls_sni_01_port=challenges.TLSSNI01Response.PORT,
AttributeError: module 'acme.challenges' has no attribute 'TLSSNI01Response'