question

Upvotes
Accepted
155 1 3 2

RDP Python error

Hi, I am getting the following error message in Python when running the RDP streaming market data script - "Connecting to WebSocket wss://amer-2.pricing.streaming.edp.thomsonreuters.com:443/WebSocket ... Traceback (most recent call last): File "c:\pythonstuff\market_price_edpgw_authentication.py", line 289, in <module> web_socket_app = websocket.WebSocketApp(ws_address, on_message=on_message, AttributeError: module 'websocket' has no attribute 'WebSocketApp'". I am able to connect to RDP Streaming News though. Kindly advise.

rdp-apirefinitiv-data-platform
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.

1 Answer

Upvotes
Accepted
13k 32 12 18

Hi @Nitesh.Saha, Looks like you don't have the correct websocket client module installed. Please see this answer - https://stackoverflow.com/questions/42141689/attributeerror-module-object-has-no-attribute-websocketapp

On my machine, I have:

>>pip list | grep -i websocket
websocket-client       0.54.0
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