No module named _util (OpenSSL)

glenfi_blr
I have completed the pip installation for kiteconnect. But after it is giving me the following error while i try to do some basic stuffs

Traceback (most recent call last):
File "./get_access_token_zerodha.py", line 4, in
from kiteconnect import KiteConnect
File "build/bdist.linux-x86_64/egg/kiteconnect/__init__.py", line 111, in
File "build/bdist.linux-x86_64/egg/kiteconnect/ticker.py", line 18, in
File "/usr/lib64/python2.7/site-packages/twisted/internet/ssl.py", line 230, in
from twisted.internet._sslverify import (
File "/usr/lib64/python2.7/site-packages/twisted/internet/_sslverify.py", line 15, in
from OpenSSL._util import lib as pyOpenSSLlib
ImportError: No module named _util

Can you let me know if you had similar issues and work around.
  • glenfi_blr
    OS: Linux ip-172-31-12-150.ap-south-1.compute.internal 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux
    Python version: Python 2.7.5
  • rakeshr
    @glenfi_blr
    Can you run sudo pip install pyopenssl --user --upgrade and check ?
  • glenfi_blr
    I had to struggle with my red hat linux box. I had tried all those. But no luck in making it work. I have installed ubuntu OS and it looks all good now. Thanks for your time. Something looks broken with redhat pip.
This discussion has been closed.