Project

General

Profile

Bug #9053

Certbot 0.25.1-r0 failure: pkg_resources.DistributionNotFound

Added by Thomas Schneider 7 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
07/03/2018
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

Hi,
I've installed Certbot 0.25.1-r0 and its dependencies w/o issues.
However I cannot run certbot; this error is shown:

ct102-haproxy:~# certbot --help
Traceback (most recent call last):
  File "/usr/bin/certbot", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3086, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3099, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 574, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 892, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 778, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'requests-toolbelt>=0.3.0' distribution was not found and is required by acme

This dependency is installed:
ct102-haproxy:~# apk -vv info| grep requ
py-requests-2.19.1-r0 - A HTTP request library for Python
py2-requests-2.19.1-r0 - A HTTP request library for Python 2


Related issues

Related to Alpine Linux - Bug #9238: Python package Requests 2.18.4-r0 failure: pkg_resources.DistributionNotFoundClosed2018-08-13

Associated revisions

Revision c11efc25 (diff)
Added by Roberto Oliveira 7 months ago

community/certbot: add missing dependency (fixes #9053)

Add py-requests-toolbelt runtime dependency

Revision 8ad5ad9f (diff)
Added by Carlo Landmeter 6 months ago

community/certbot: add py-requests-toolbelt to deps

ref #9053

Revision add7b6dd (diff)
Added by Fabian Affolter 4 months ago

main/py-requests: upgrade to 2.19.1

fixes #9053
fixes #9238

(cherry picked from commit c2ede3db1fe3906163c2a37177c97d28e3b52490)

History

#1 Updated by Roberto Oliveira 7 months ago

  • Assignee set to Roberto Oliveira

Seems certbot requires package "requests-toolbelt" to run.

#2 Updated by Roberto Oliveira 7 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by Kévin Guignard 6 months ago

I still have an issue regarding the last version of certbot in 3.7

Traceback (most recent call last):
  File "/usr/bin/certbot", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3086, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3099, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 576, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 589, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 783, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (idna 2.7 (/usr/lib/python2.7/site-packages), Requirement.parse('idna<2.7,>=2.5'), set(['requests']))

#4 Updated by Stephan Linz 5 months ago

Kévin Guignard wrote:

I still have an issue regarding the last version of certbot in 3.7
[...]

See #9238.

#5 Updated by Natanael Copa 4 months ago

  • Related to Bug #9238: Python package Requests 2.18.4-r0 failure: pkg_resources.DistributionNotFound added

#6 Updated by Natanael Copa 4 months ago

  • Status changed from Resolved to New
  • Target version set to 3.8.2

#7 Updated by Fabian Affolter 4 months ago

  • Status changed from New to Resolved

#8 Updated by Natanael Copa about 1 month ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF