[Bug 268290] net-im/py-matrix-synapse: AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 10 Dec 2022 10:16:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268290

            Bug ID: 268290
           Summary: net-im/py-matrix-synapse: AttributeError: module
                    'OpenSSL.SSL' has no attribute 'TLS_METHOD'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: co+org.freebsd@io7m.com
                CC: ports@skyforge.at
             Flags: maintainer-feedback?(ports@skyforge.at)
                CC: ports@skyforge.at

Hello!

After upgrading from 1.71 to 1.72 today, the server fails to start with the
following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 188, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/local/lib/python3.9/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/usr/local/lib/python3.9/site-packages/synapse/__init__.py", line 23,
in <module>
    from synapse.util.rust import check_rust_lib_up_to_date
  File "/usr/local/lib/python3.9/site-packages/synapse/util/__init__.py", line
31, in <module>
    from synapse.logging import context
  File "/usr/local/lib/python3.9/site-packages/synapse/logging/__init__.py",
line 17, in <module>
    from synapse.logging._remote import RemoteHandler
  File "/usr/local/lib/python3.9/site-packages/synapse/logging/_remote.py",
line 29, in <module>
    from twisted.internet.endpoints import (
  File "/usr/local/lib/python3.9/site-packages/twisted/internet/endpoints.py",
line 69, in <module>
    from twisted.internet.ssl import (
  File "/usr/local/lib/python3.9/site-packages/twisted/internet/ssl.py", line
63, in <module>
    from twisted.internet import interfaces, tcp
  File "/usr/local/lib/python3.9/site-packages/twisted/internet/tcp.py", line
38, in <module>
    from twisted.internet._newtls import (
  File "/usr/local/lib/python3.9/site-packages/twisted/internet/_newtls.py",
line 18, in <module>
    from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
  File "/usr/local/lib/python3.9/site-packages/twisted/protocols/tls.py", line
45, in <module>
    from twisted.internet._sslverify import _setAcceptableProtocols
  File "/usr/local/lib/python3.9/site-packages/twisted/internet/_sslverify.py",
line 1828, in <module>
    defaultCiphers = OpenSSLAcceptableCiphers.fromOpenSSLCipherString(
  File "/usr/local/lib/python3.9/site-packages/twisted/internet/_sslverify.py",
line 1807, in fromOpenSSLCipherString
    SSL.TLS_METHOD,
AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD'

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