question

Upvotes
Accepted
1 0 1 3

Refinitiv Data Platform API in Python - Unable to connect

I have just been migrated over to Refinitiv Workspace. I am primarily interested in data retrieval via the Refinitiv Data Platform API in Python. I have tried to get this running in Python (outside of Refinitiv Workspace) by following the examples in CodeBook, but I am getting an error saying “Check if Desktop is running.” I am logged into Refinitiv Workspace on my MacBook, so I am not sure what is causing this error.


Here is what I have tried in Python:


import refinitiv.dataplatform.eikon as ek

ek.set_app_key('#### eikon app key ####')


and


import refinitiv.dataplatform as rdp

rdp.open_desktop_session('#### eikon app key ####')


This is the error message I am getting in both cases:


ERROR!!! An error occurred while requesting URL('http://localhost:9000/api/status'). ReadTimeout('') ERROR!!! An error occurred while requesting URL('http://localhost:36036/api/status'). ConnectError('All connection attempts failed') Error: no proxy address identified. Check if Desktop is running. ERROR!!! An error occurred while requesting URL('http://localhost:9000/api/handshake'). RemoteProtocolError("illegal status line: bytearray(b'\\xff\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x7fe\\x00t-Encoding: gzip, deflate, br')")


Please could you assist.

refinitiv-dataplatform-eikonpython apirefinitiv-dataplatform-libraries
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

Upvotes
Accepted
4.2k 6 5 8

hi @miguel.l

Have you tried restarting Eikon and/or your PC? If it still does not resolve, please see this troubleshooting guide and post your log files here along with the current versions that you're using of

  • Eikon desktop
  • Eikon library
  • Python
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.