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.

@Nitesh.Saha

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
22k 58 14 21

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.