Opened 17 months ago

Last modified 17 months ago

#66204 new defect

Deluge @2.0.3 crashes on OSX 10.6

Reported by: CitadelHacker451 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc: stromnov (Andrey Stromnov), dbevans (David B. Evans)
Port: deluge py-cryptography

Description (last modified by CitadelHacker451)

The following is printed when I try to run Deluge after install with MacPorts.

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 581, in _build_master
    ws.require(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 909, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 800, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 2.9.2 (/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages), Requirement.parse('cryptography>=3.3'), {'pyopenssl'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/local/bin/deluge", line 33, in <module>
    sys.exit(load_entry_point('deluge==2.0.3', 'gui_scripts', 'deluge')())
  File "/opt/local/bin/deluge", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/deluge/ui/ui_entry.py", line 22, in <module>
    import pkg_resources
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3260, in <module>
    def _initialize_master_working_set():
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 795, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'cryptography>=3.3' distribution was not found and is required by pyopenssl

Change History (3)

comment:1 Changed 17 months ago by CitadelHacker451

Description: modified (diff)
Summary: Deluge crashes on OSX 10.6Deluge @2.0.3 crashes on OSX 10.6
Version: 2.8.0

comment:2 Changed 17 months ago by jmroot (Joshua Root)

Cc: stromnov dbevans added
Port: py-cryptography added

Looks like py27-cryptography could be updated to 3.3.2, as 2.7 support was removed upstream in 3.4: https://github.com/pyca/cryptography/blob/3.4/CHANGELOG.rst

comment:3 Changed 17 months ago by tehcog (tehcog)

Similar issue on 10.9 presumably after some python310 updates:

Traceback (most recent call last):
  File "/opt/local/bin/deluge", line 33, in <module>
    sys.exit(load_entry_point('deluge==2.0.3', 'gui_scripts', 'deluge')())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/deluge/ui/ui_entry.py", line 143, in start_ui
    ui.start()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/deluge/ui/gtk3/__init__.py", line 43, in start
    from .gtkui import GtkUI
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/deluge/ui/gtk3/gtkui.py", line 27, in <module>
    from twisted.internet import defer, gtk3reactor
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/twisted/internet/gtk3reactor.py", line 22, in <module>
    from twisted.internet import gireactor
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/twisted/internet/gireactor.py", line 25, in <module>
    from twisted.internet import _glibbase
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/twisted/internet/_glibbase.py", line 19, in <module>
    from twisted.internet import base, posixbase, selectreactor
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/twisted/internet/posixbase.py", line 20, in <module>
    from twisted.internet import error, udp, tcp
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/twisted/internet/tcp.py", line 37, in <module>
    from twisted.internet._newtls import (
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/twisted/internet/_newtls.py", line 19, in <module>
    from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/twisted/protocols/tls.py", line 44, in <module>
    Connection(Context(TLSv1_METHOD), None)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/OpenSSL/SSL.py", line 674, in __init__
    res = _lib.SSL_CTX_set_ecdh_auto(context, 1)
AttributeError: module 'lib' has no attribute 'SSL_CTX_set_ecdh_auto'
Note: See TracTickets for help on using tickets.