System: Ubuntu 18.04
Issue: When trying with "./server.py", an exception occured with:
Traceback (most recent call last):
File "./server.py", line 7, in
from twisted.internet import reactor
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/reactor.py", line 38, in
from twisted.internet import default
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/default.py", line 55, in
install = _getInstallFunction(platform)
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/default.py", line 43, in _getInstallFunction
from twisted.internet.epollreactor import install
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/epollreactor.py", line 19, in
from twisted.internet import posixbase
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/posixbase.py", line 19, in
from twisted.internet import error, tcp, udp
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/tcp.py", line 38, in
from twisted.internet._newtls import (
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/internet/_newtls.py", line 18, in
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/twisted/protocols/tls.py", line 40, in
from OpenSSL.SSL import (
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/OpenSSL/crypto.py", line 1550, in
class X509StoreFlags(object):
File "/home/ubuntu/virtenvs/uberserver/local/lib/python3.6/site-packages/OpenSSL/crypto.py", line 1570, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
Edit: my problem... Solved with updating pyOpenSSL to 22.0.0