Bug 262999 - security/py-certbot: Not runing, cryptography>=35.0 is requered
Summary: security/py-certbot: Not runing, cryptography>=35.0 is requered
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-02 09:10 UTC by John Y.
Modified: 2022-04-05 23:31 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (python)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Y. 2022-04-02 09:10:20 UTC
Version: 1.22.0,1
OS:      12.3-RELEASE-p4

On staring, application raising exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 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>=35.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==1.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 = 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_removed
  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", line 25, in <module>
    from certbot import configuration
  File "/usr/local/lib/python3.8/site-packages/certbot/configuration.py", line 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.py", line 6, in <module>
    import pkg_resources
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 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>=35.0'), {'PyOpenSSL'})
Comment 1 Charlie Li freebsd_committer freebsd_triage 2022-04-05 14:39:28 UTC
Did you "downgrade" security/py-openssl to 20.0.1,1? The latter's 22.0.0 increased the security/py-cryptography requirement so the previous version was restored. cryptography itself is unlikely to be updated in our tree due to Rust code unless something else is figured out.
Comment 2 John Y. 2022-04-05 21:12:11 UTC
I have installed version 20.0.1,1 and this fix problem.