Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyOpenSSL breaking change #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

waghanza
Copy link

Hi @fiorix,

While running https://github.com/the-benchmarker/web-frameworks/blob/7925ba3121e4ecc1ff97e644b01add04076c649d/python/cyclone/server.py#L1 (on debian), I have the following error

root@5adeaa9d0855:/usr/src/app#  twistd --python=server.py --nodaemon
Unhandled Error
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/twisted/application/app.py", line 674, in run
    runApp(config)
  File "/usr/local/lib/python3.10/site-packages/twisted/scripts/twistd.py", line 25, in runApp
    runner.run()
  File "/usr/local/lib/python3.10/site-packages/twisted/application/app.py", line 381, in run
    self.application = self.createOrGetApplication()
  File "/usr/local/lib/python3.10/site-packages/twisted/application/app.py", line 453, in createOrGetApplication
    application = getApplication(self.config, passphrase)
--- <exception caught here> ---
  File "/usr/local/lib/python3.10/site-packages/twisted/application/app.py", line 464, in getApplication
    application = service.loadApplication(filename, style, passphrase)
  File "/usr/local/lib/python3.10/site-packages/twisted/application/service.py", line 416, in loadApplication
    application = sob.loadValueFromFile(filename, 'application')
  File "/usr/local/lib/python3.10/site-packages/twisted/persisted/sob.py", line 177, in loadValueFromFile
    eval(codeObj, d, d)
  File "server.py", line 1, in <module>
    import cyclone.web
  File "/usr/local/lib/python3.10/site-packages/cyclone/web.py", line 86, in <module>
    from cyclone import locale
  File "/usr/local/lib/python3.10/site-packages/cyclone/locale.py", line 51, in <module>
    from twisted.internet import reactor
  File "/usr/local/lib/python3.10/site-packages/twisted/internet/reactor.py", line 38, in <module>
    from twisted.internet import default
  File "/usr/local/lib/python3.10/site-packages/twisted/internet/default.py", line 56, in <module>
    install = _getInstallFunction(platform)
  File "/usr/local/lib/python3.10/site-packages/twisted/internet/default.py", line 44, in _getInstallFunction
    from twisted.internet.epollreactor import install
  File "/usr/local/lib/python3.10/site-packages/twisted/internet/epollreactor.py", line 24, in <module>
    from twisted.internet import posixbase
  File "/usr/local/lib/python3.10/site-packages/twisted/internet/posixbase.py", line 18, in <module>
    from twisted.internet import error, udp, tcp
  File "/usr/local/lib/python3.10/site-packages/twisted/internet/tcp.py", line 31, in <module>
    from twisted.internet._newtls import (
  File "/usr/local/lib/python3.10/site-packages/twisted/internet/_newtls.py", line 21, in <module>
    from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
  File "/usr/local/lib/python3.10/site-packages/twisted/protocols/tls.py", line 41, in <module>
    from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
  File "/usr/local/lib/python3.10/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/local/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/local/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
builtins.AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'


Failed to load application: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

I apply the recommended solution in pyca/pyopenssl#1114 (comment)

Regards,

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

Successfully merging this pull request may close these issues.

1 participant