Certbot error on trueness

I installed Nextcloud plugin on TrueNAS, but Certbot returns this error: 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/tmpr6let4zv/log or re-run Certbot with -v for more details.

Did you check the logfile or run the certbot with the -v?

For me it looks like some problems with the python packages around the certbot. This can happen if you use different sources to install from (here perhaps pkg and pip?). If you mainly installed all through the pkg mangager from FreeBSD, you could perhaps try to update everything through the packge manager and hope that the updated versions work together.

If you are not sure what you are doing, do a backup before that you can at least come back to the current state.