coldfix / certbot-dns-netcup

netcup DNS Authenticator plugin for Certbot
Other
53 stars 6 forks source link

certbot v2: AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator' #17

Closed tobwen closed 1 year ago

tobwen commented 1 year ago

bug report

After upgrading to https://github.com/certbot/certbot/releases/tag/v2.0.0, renew fails.

log

2022-11-27 04:18:21,312:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/opt/.local/bin/certbot", line 8, in <module>
    sys.exit(main())
  File "/opt/.local/pipx/venvs/certbot/lib/python3.9/site-packages/certbot/main.py", line 19, in main
    return internal_main.main(cli_args)
  File "/opt/.local/pipx/venvs/certbot/lib/python3.9/site-packages/certbot/_internal/main.py", line 1707, in main
    plugins = plugins_disco.PluginsRegistry.find_all()
  File "/opt/.local/pipx/venvs/certbot/lib/python3.9/site-packages/certbot/_internal/plugins/disco.py", line 208, in find_all
    cls._load_entry_point(entry_point, plugins)
  File "/opt/.local/pipx/venvs/certbot/lib/python3.9/site-packages/certbot/_internal/plugins/disco.py", line 215, in _load_entry_point
    plugin_ep = PluginEntryPoint(entry_point)
  File "/opt/.local/pipx/venvs/certbot/lib/python3.9/site-packages/certbot/_internal/plugins/disco.py", line 56, in __init__
    self.plugin_cls: Type[interfaces.Plugin] = entry_point.load()
  File "/opt/.local/pipx/shared/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2471, in load
    return self.resolve()
  File "/opt/.local/pipx/shared/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2477, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/opt/.local/pipx/venvs/certbot/lib/python3.9/site-packages/certbot_dns_netcup.py", line 22, in <module>
    @zope.interface.implementer(interfaces.IAuthenticator)
AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator'
2022-11-27 04:18:21,312:ERROR:certbot._internal.log:An unexpected error occurred:
2022-11-27 04:18:21,312:ERROR:certbot._internal.log:AttributeError: module 'certbot.interfaces' has no attribute 'IAuthenticator'

see also

https://github.com/certbot/certbot/issues/9478 https://github.com/helgeerbe/certbot-dns-ionos/issues/19

hint

https://github.com/helgeerbe/certbot-dns-ionos/commit/c12f443c15002f2b2dccd1818711079620482c49