question

Upvotes
Accepted
5 4 4 5

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 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
5 4 4 5

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 512.0 KiB each and 1.0 MiB total.

Upvotes
5 4 4 5
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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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