Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2022 17:38:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 262744] py-certbot 1.22.0: pkg_resources.ContextualVersionConflict: (cryptography 3.3.2 (/usr/local/lib/python3.8/site-packages), Requirement.parse('cryptography>=35.0'), {'PyOpenSSL'})
Message-ID:  <bug-262744-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262744

            Bug ID: 262744
           Summary: py-certbot 1.22.0:
                    pkg_resources.ContextualVersionConflict: (cryptography
                    3.3.2 (/usr/local/lib/python3.8/site-packages),
                    Requirement.parse('cryptography>=3D35.0'),
                    {'PyOpenSSL'})
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: lists@schamschula.com

py-certbot 1.22.0 requires py-cryptography >=3D 35.0

Here is the log from my certbot auto-renew script:

Traceback (most recent call last):
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
568, in _build_master
   ws.require(__requires__)
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
886, in require
   needed =3D self.resolve(parse_requirements(requirements))
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
777, in resolve
   raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 3.3.2
(/usr/local/lib/python3.8/site-packages),
Requirement.parse('cryptography>=3D35.0'), {'PyOpenSSL'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/local/bin/certbot", line 33, in <module>
   sys.exit(load_entry_point('certbot=3D=3D1.22.0', 'console_scripts',
'certbot')())
 File "/usr/local/bin/certbot", line 25, in importlib_load_entry_point
   return next(matches).load()
 File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
   module =3D import_module(match.group('module'))
 File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in
import_module
   return _bootstrap._gcd_import(name[level:], package, level)
 File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
 File "<frozen importlib._bootstrap>", line 991, in _find_and_load
 File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
 File "<frozen importlib._bootstrap_external>", line 843, in exec_module
 File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_remov=
ed
 File "/usr/local/lib/python3.8/site-packages/certbot/main.py", line 6, in
<module>
   from certbot._internal import main as internal_main
 File "/usr/local/lib/python3.8/site-packages/certbot/_internal/main.py", l=
ine
25, in <module>
   from certbot import configuration
 File "/usr/local/lib/python3.8/site-packages/certbot/configuration.py", li=
ne
10, in <module>
   from certbot import util
 File "/usr/local/lib/python3.8/site-packages/certbot/util.py", line 27, in
<module>
   from certbot._internal import constants
 File "/usr/local/lib/python3.8/site-packages/certbot/_internal/constants.p=
y",
line 6, in <module>
   import pkg_resources
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
3243, in <module>
   def _initialize_master_working_set():
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
3226, in _call_aside
   f(*args, **kwargs)
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
3255, in _initialize_master_working_set
   working_set =3D WorkingSet._build_master()
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
570, in _build_master
   return cls._build_from_requirements(__requires__)
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
583, in _build_from_requirements
   dists =3D ws.resolve(reqs, Environment())
 File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", l=
ine
777, in resolve
   raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 3.3.2
(/usr/local/lib/python3.8/site-packages),
Requirement.parse('cryptography>=3D35.0'), {'PyOpenSSL'})

I understand there is a reluctance to update py-cryptography (the current
version is 36.0.1, with 35.0.0 released end of September 2021), but that al=
so
means reverting py-acme and py-certbot to a version that is compatible with=
 the
old py-cryptography (likely version 1.19.0).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262744-7788>