question

Upvotes
Accepted
3 2 0 0

Desktop RDP Python: "Exception in thread Websocket 0"

Hello team,

When I try to open a new websocket connection to RDP, I get the following error:

websocket.png


Any idea where that can come from?

Dev environment:

-Visual Studio Code v 1.58.2

-Python v3.8.8

-RDP v1.0.0a9

-Anaconda v 2.0.3

Thanks for you help,

BR

rdp-apirefinitiv-data-platformrefinitiv-data-platform-libraries
websocket.png (14.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
3 2 0 0

Resolved!

Resolution:

pip uninstall websocket-client

pip install websocket-client

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
3 2 0 0
As the picture looks small, please find bellow the full error message

Exception in thread WebSocket 0 - OMM Protocol - streaming/pricing/main: Traceback (most recent call last):  File "C:\ProgramData\Anaconda3\lib\threading.py", line 932, in _bootstrap_inner    self.run()  File "C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\delivery\stream\stream_connection.py", line 425, in run    self._websocket = websocket.WebSocketApp( AttributeError: module 'websocket' has no attribute 'WebSocketApp'
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea