Hello team,
When I try to open a new websocket connection to RDP, I get the following error:
Any idea where that can come from?
Hello @c7280512
The error indicates that you may have the Python websocket library not the Python websocket-client library that used by the library.
This is a common error, according to this stackoverflow post, you need to uninstall the websocket library and install the websocket-client library instead
#thenpip install websocket-clientpip uninstall websocket-client pip uninstall websocket
#then
pip install websocket-client
Please note that if you are using the strategic Data Platform Library - Python (the refinitiv-data-platform is the beta version of this library), you can install the library with the following command
pip install refinitiv-data
Then its dependencies including the websocket-client library should be installed on your machine.
You can find the example code that connect to the WebSocket connection on this GitHub https://github.com/LSEG-API-Samples/Example.DataLibrary.Python/tree/main/Tutorials/3.Delivery/3.1-Streaming repository.