Getting Error for websocket data

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:

  1. Python Version: It’s possible that our SDK may not be fully aligned with the latest Python releases. As a temporary measure, if feasible, you might consider using our SDK with a version of Python prior to 3.8 to see if that resolves the issue.
  2. Feedback Loop: We always appreciate feedback and insights from our user community. This helps us improve and cater better to user needs.

I hope these suggestions help you navigate the issue. If you have any further questions or require clarification, please let us know.


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.