Bug 2186814 - certbot crashes with unexpected error when python2-certbot-dns-route53 is installed
Summary: certbot crashes with unexpected error when python2-certbot-dns-route53 is ins...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-certbot-dns-route53
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Certbot SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-14 14:55 UTC by imma
Modified: 2024-02-13 04:14 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-02-13 04:14:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description imma 2023-04-14 14:55:39 UTC
Description of problem:

When python2-certbot-dns-route53 is installed, certbot crashes with:

An unexpected error occurred:
DistributionNotFound: futures>=2.2.0,<4.0.0

error log:
2023-04-14 16:47:23,239:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 9, in <module>
    load_entry_point('certbot==1.11.0', 'console_scripts', 'certbot')()
  File "/usr/lib/python2.7/site-packages/certbot/main.py", line 15, in main
    return internal_main.main(cli_args)
  File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 1383, in main
    plugins = plugins_disco.PluginsRegistry.find_all()
  File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 236, in find_all
    plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
  File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 254, in _load_entry_point
    plugin_ep = PluginEntryPoint(entry_point, with_prefix)
  File "/usr/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py", line 56, in __init__
    self.plugin_cls = entry_point.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2259, in load
    if require: self.require(env, installer)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2272, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer)))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
DistributionNotFound: futures>=2.2.0,<4.0.0

We've noticed that python2-futures is not installed as a dependency. If python2-futures is installed manually, certbot crashes with:

An unexpected error occurred:
ImportError: cannot import name PROTOCOL_TLS


Version-Release number of selected component (if applicable):

Name        : python2-certbot-dns-route53
Version     : 1.11.0

Steps to Reproduce:

1. on CentOS 7: yum install certbot python2-certbot-dns-route53
2. run certbot -h


Note You need to log in before you can comment on or make changes to this bug.