TypeError: Lock.init() got an unexpected keyword argument ‘loop’
Traceback (most recent call last):
File “c:\Users\hp5cd\Downloads\Upstox\web_socket_data.py”, line 95, in
ltp = data_dict[‘feeds’][‘NSE_INDEX|Nifty Bank’][‘ff’][‘indexFF’][‘ltpc’][‘ltp’]
^^^^^^^^^
Hi @Shantanu_Gupta
Regarding the error message you’re encountering, I found a solution that might help you, here is the Stack Overflow post: Python 3.10 support (loop parameter was removed from Lock()).
According to the post, upgrading to the latest version of the websockets
library should resolve the issue.
Thank you!