An unexpected error occurred: pkg_resources.ContextualVersionConflict

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. https://crt.sh/?q=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: macgiolla.macgiolla.online

I ran this command: certbot certonly --standalone -d 'macgiolla.macgiolla.online'

It produced this output: An unexpected error occurred:
pkg_resources.ContextualVersionConflict: (google-api-core 2.2.2 (/usr/local/lib/python3.9/site-packages), Requirement.parse('google-api-core<2dev,>=1.21.0'), {'google-api-python-client'})
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/tmpr6dljwrt/log or re-run Certbot with -v for more details.

My web server is (include version): TrueNAS-13.0-RELEASE

The operating system my web server runs on is (include version): TrueNAS-13.0-RELEASE

My hosting provider, if applicable, is: hover

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):

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

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

Please show the outputs of:

certbot --version
which certbot
find / -name certbot

1 Like

certbot --version An unexpected error occurred:
pkg_resources.ContextualVersionConflict: (google-api-core 2.2.2 (/usr/local/lib/python3.9/site-packages), Requirement.parse('google-api-core<2dev,>=1.21.0'), {'google-api-python-client'})
which certbot /usr/local/bin/certbot
find / -name certbot
/mnt/TB1_Pool/iocage/jails/nectcloud/root/usr/local/bin/certbot
/mnt/TB1_Pool/iocage/jails/nectcloud/root/usr/local/lib/python3.8/site-packages/certbot
/mnt/TB1_Pool/iocage/jails/ReverseProxy/root/usr/local/lib/python3.8/site-packages/certbot
/mnt/TB1_Pool/iocage/jails/ReverseProxy/root/usr/local/bin/certbot
/usr/local/bin/certbot
/usr/local/lib/python3.9/site-packages/certbot

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