Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

synapse fails to start under Twisted >= 18.4 #3135

Closed
richvdh opened this issue Apr 26, 2018 · 3 comments
Closed

synapse fails to start under Twisted >= 18.4 #3135

richvdh opened this issue Apr 26, 2018 · 3 comments

Comments

@richvdh
Copy link
Member

richvdh commented Apr 26, 2018

Looks like we are relying on a private identifier which has been removed in Twisted 18.4:

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/rav/work/synapse/synapse/app/homeserver.py", line 31, in <module>
    from synapse.crypto import context_factory
  File "synapse/crypto/context_factory.py", line 17, in <module>
    from twisted.internet._sslverify import _OpenSSLECCurve, _defaultCurveName
ImportError: cannot import name _OpenSSLECCurve
@irstevenson
Copy link

This just bit me with doing the upgrade to 0.28.0. To fix it, I had to do the following in my virtual env:

pip install -U "Twisted<18.4"

Just in case anyone else running a HS gets stuck until the fix is released.

@richvdh
Copy link
Member Author

richvdh commented Apr 30, 2018

For clarification, this is unrelated to synapse 0.28. The problem has been there since the very first versions of synapse.

richvdh pushed a commit that referenced this issue Apr 30, 2018
@Half-Shot
Copy link
Collaborator

Happy to close now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants