question

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

1 Answer

· Write an Answer
Upvotes
Accepted
20.3k 53 14 20

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 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.