I am getting ERROR while importing 'kiteconnect' module

dharma102
I am getting ERROR while importing kiteconnect
from kiteconnect import KiteConnect

Leads to following ERROR:
*** AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD' ***


PS:
I have installed 'kiteconnect' using the following commands:
1. pip install --upgrade kiteconnect
2. pip install -U pip setuptools
3. apt-get install libffi-dev python-dev python3-dev
  • rakeshr
    Can you re-install pyopenssl?
    pip install pyopenssl
  • sbalaji987
    sbalaji987 edited February 2023
    Not a question, just a comment.

    I was getting an error while importing kiteconnect
    module 'lib' has no attribute 'SSL_CTX_set_ecdh_auto'
    this was resolved when I upgraded pyopenssl from v20 to v23 using:
    pip install pyopenssl --upgrade
Sign In or Register to comment.