SSL error

shivaprashanth
Suddenly from today i am getting this error. Any idea what could be the reason ?


from kiteconnect import KiteConnect
File "/usr/local/lib/python3.10/site-packages/kiteconnect/__init__.py", line 113, in
from kiteconnect.ticker import KiteTicker
File "/usr/local/lib/python3.10/site-packages/kiteconnect/ticker.py", line 18, in
from twisted.internet import reactor, ssl
File "/usr/local/lib/python3.10/site-packages/twisted/internet/reactor.py", line 38, in
from twisted.internet import default
File "/usr/local/lib/python3.10/site-packages/twisted/internet/default.py", line 55, in
install = _getInstallFunction(platform)
File "/usr/local/lib/python3.10/site-packages/twisted/internet/default.py", line 43, in _getInstallFunction
from twisted.internet.epollreactor import install
File "/usr/local/lib/python3.10/site-packages/twisted/internet/epollreactor.py", line 19, in
from twisted.internet import posixbase
File "/usr/local/lib/python3.10/site-packages/twisted/internet/posixbase.py", line 20, in
from twisted.internet import error, udp, tcp
File "/usr/local/lib/python3.10/site-packages/twisted/internet/tcp.py", line 37, in
from twisted.internet._newtls import (
File "/usr/local/lib/python3.10/site-packages/twisted/internet/_newtls.py", line 19, in
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/usr/local/lib/python3.10/site-packages/twisted/protocols/tls.py", line 44, in
Connection(Context(TLSv1_METHOD), None)
File "/usr/local/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'
  • rakeshr
    AttributeError: module 'lib' has no attribute 'SSL_CTX_set_ecdh_auto'
    You need to upgrade the OpenSSL package.
    sudo pip install -U pyopenssl
  • shivaprashanth
    thanks. i had update all the components which was indirectly using openssl!
This discussion has been closed.