Hello All,
I am getting the below error for WebSocket.
But when I run the same program on an office laptop, it works fine.
Am I missing something because of getting this error?
Hello All,
I am getting the below error for WebSocket.
But when I run the same program on an office laptop, it works fine.
Am I missing something because of getting this error?
Thank you for sharing the details via the screenshot. Upon reviewing the information, one potential reason for the error Lock.__init__() got an unexpected keyword argument 'loop'
could be tied to changes introduced in Python 3.8 and subsequent versions. Specifically, from Python 3.8 onward, the ‘loop’ parameter was removed from several asyncio
primitives, including Locks.
Given that the folder name in the screenshot indicates “Python311,” suggesting the use of Python 3.11, this might be related to the issue you’re facing.
A few suggestions:
I hope these suggestions help you navigate the issue. If you have any further questions or require clarification, please let us know.
Thanks!!
Hello @shanmu ,
Thanks for your immediate response.
Yes, it was an issue with the python version.
I downgraded to python 3.9.13 then the issue resolved.