Infomaniak / certbot-dns-infomaniak

Infomaniak DNS Authenticator plugin for certbot
Apache License 2.0
34 stars 13 forks source link

PluginEntryPoint#dns-infomaniak does not provide IPluginFactory, skipping #26

Closed mdedonno1337 closed 1 year ago

mdedonno1337 commented 1 year ago

Hello,

I'm trying to use the infomaniak certbot plugin, but have the following error:

host:~# pip install certbot-dns-infomaniak
Collecting certbot-dns-infomaniak
  Using cached certbot_dns_infomaniak-0.2.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: idna in /usr/lib/python3/dist-packages (from certbot-dns-infomaniak) (2.10)
Requirement already satisfied: mock in /usr/local/lib/python3.9/dist-packages (from certbot-dns-infomaniak) (5.0.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from certbot-dns-infomaniak) (2.25.1)
Requirement already satisfied: requests-mock in /usr/local/lib/python3.9/dist-packages (from certbot-dns-infomaniak) (1.10.0)
Requirement already satisfied: certbot>=0.31.0 in /usr/lib/python3/dist-packages (from certbot-dns-infomaniak) (1.12.0)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from certbot-dns-infomaniak) (52.0.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from requests-mock->certbot-dns-infomaniak) (1.16.0)
Installing collected packages: certbot-dns-infomaniak
Successfully installed certbot-dns-infomaniak-0.2.1

host:~# export INFOMANIAK_API_TOKEN=xxx
host:~# certbot certonly \
  --authenticator dns-infomaniak \
  --server https://acme-v02.api.letsencrypt.org/directory \
  --agree-tos \
  --rsa-key-size 4096 -d 'mydomain'

PluginEntryPoint#dns-infomaniak does not provide IPluginFactory, skipping
PluginEntryPoint#certbot-dns-infomaniak:dns-infomaniak does not provide IPluginFactory, skipping
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Could not choose appropriate plugin: The requested dns-infomaniak plugin does not appear to be installed
The requested dns-infomaniak plugin does not appear to be installed

With the following versions:

host:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

host:~# python3 --version
Python 3.9.2

host:~# pip3 --version
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

host:~# certbot --version
PluginEntryPoint#dns-infomaniak does not provide IPluginFactory, skipping
PluginEntryPoint#certbot-dns-infomaniak:dns-infomaniak does not provide IPluginFactory, skipping
certbot 1.12.0

Regards,

reneluria commented 1 year ago

Hello, thank you for your report

Did you install certbot via pip or via the Debian package ?

cubitussonis commented 1 year ago

Hello, I have the same issue, and I installed certbot via pip. Does anyone have found a solution?

timotheeandres commented 1 year ago

Hello, thank you for your report

Did you install certbot via pip or via the Debian package ?

I have the same issue, and I, for one, installed certbot via the Debian package (0.31.0-1+deb10u1)

Update: I uninstalled the Debian version and installed the pip version, and the following message appeared: certbot-dns-infomaniak 0.2.1 requires mock, which is not installed. After installing mock with pip, the command works as expected.

valvin1 commented 1 year ago

having same issue on my side.

I've installed certbot using system pacakge (debian 11) and using plugin with gandi at the moment.

System package for certbot-dns-infomaniak doesn't exist. So I've installed using pip install

And now I have:

certbot --version
PluginEntryPoint#dns-infomaniak does not provide IPluginFactory, skipping
PluginEntryPoint#certbot-dns-infomaniak:dns-infomaniak does not provide IPluginFactory, skipping
certbot 1.12.0
reneluria commented 1 year ago

This doesn't work with the system package installed. Uninstall it and use only via pip

davidebeatrici commented 9 months ago

The cause is 36fa777c02def1c88b2e77ba8eadc0f8c38889ab: it removed compatibility with older certbot versions.