Certbot on ubuntu 22.04 python3.10 broken

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: *.loyaltyleo.com

I ran this command: certbot -v

It produced this output:
sudo certbot -v
An unexpected error occurred:
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-ixun28ql/log or re-run Certbot with -v for more details.

My web server is (include version): not used for web serving

The operating system my web server runs on is (include version): ubuntu 22.04

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
pip3 freeze |grep certbot



Did you install using global pip?

Please use either the Certbot snap or the pip instructions.