Websocket Login Error

virtualKG
Hi,

Tried executing the below code but got the below error:

>>> from kiteconnect import WebSocket
>>> kws = WebSocket("0o2k3ev1lug4dnw0", "public_token", "user_id")
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 691, in __init__
self.socket = self._create_connection()
File "C:\Python27\lib\site-packages\kiteconnect\__init__.py", line 705, in _create_connection
return websocket.WebSocketApp(self.socket_url,
AttributeError: 'module' object has no attribute 'WebSocketApp'
This discussion has been closed.