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

Best Answer

  • MF
    MF LSEG
    Answer ✓

    Resolved!

    Resolution:

    pip uninstall websocket-client

    pip install websocket-client

Answers

  • 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'