SSL error

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/", line 113, in
from kiteconnect.ticker import KiteTicker
File "/usr/local/lib/python3.10/site-packages/kiteconnect/", line 18, in
from twisted.internet import reactor, ssl
File "/usr/local/lib/python3.10/site-packages/twisted/internet/", line 38, in
from twisted.internet import default
File "/usr/local/lib/python3.10/site-packages/twisted/internet/", line 55, in
install = _getInstallFunction(platform)
File "/usr/local/lib/python3.10/site-packages/twisted/internet/", line 43, in _getInstallFunction
from twisted.internet.epollreactor import install
File "/usr/local/lib/python3.10/site-packages/twisted/internet/", line 19, in
from twisted.internet import posixbase
File "/usr/local/lib/python3.10/site-packages/twisted/internet/", line 20, in
from twisted.internet import error, udp, tcp
File "/usr/local/lib/python3.10/site-packages/twisted/internet/", line 37, in
from twisted.internet._newtls import (
File "/usr/local/lib/python3.10/site-packages/twisted/internet/", line 19, in
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/usr/local/lib/python3.10/site-packages/twisted/protocols/", line 44, in
Connection(Context(TLSv1_METHOD), None)
File "/usr/local/lib/python3.10/site-packages/OpenSSL/", 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.