Connecting Phython interface to Eikon

This is a client's question:

I'm trying to connect my python interface to Eikon,
following the next tutorial :
https://developers.refinitiv.com/article/eikon-data-apipython-troubleshooting-refinitiv.

After seeing a lot of forums, i come to you, because i can't solve my problem.
Every files seem good (.portUse and Sxs), it works on Excel. After run this python script :

import eikon
eikon.set_port_number(9000)
eikon.set_app_key("...")

("..." is replaced by the key generated inside Eikon)
Python writes me this :

2020-08-20 14:30:55,348 P[6728] [MainThread 16184] Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
2020-08-20 14:30:55,348 P[6728] [MainThread 16184] Port number was not identified, cannot send any request
2020-08-20 14:30:55,348 P[6728] [MainThread 16184] Port number was not identified.
Check if Eikon Desktop or Eikon API Proxy is running.
Traceback (most recent call last):
File "C:/Users/kespalivet/Desktop/Size Premium/python/labo.py", line 17, in <module>
eikon.set_app_key("e62adde5e26c4b16a2c5fe0272f7746ecde8914b")
File "C:\Users\kespalivet\Documents\Python\venv\lib\site-packages\eikon\Profile.py", line 38, in set_app_key
get_profile().set_app_key(app_key)
File "C:\Users\kespalivet\Documents\Python\venv\lib\site-packages\eikon\Profile.py", line 233, in set_app_key
self.check_profile()
File "C:\Users\kespalivet\Documents\Python\venv\lib\site-packages\eikon\Profile.py", line 346, in check_profile
raise EikonError(-1, 'Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.')
eikon.eikonError.EikonError: Error code -1 | Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.

Process finished with exit code 1

Do you have any idea, how can i solve this problem?

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    From the attached logs, it shows that API proxy is listening on port 9000.

    [2020-08-24 09:27:44.509|1|api-svc|1|INFO] Listening to port=9000

    Can you confirm that this is also same in the .portInUse file located at C:\Users\<WindowsUser>\AppData\Roaming\Thomson Reuters\Eikon API Proxy\

    Does user see this screen when navigating to: http://localhost:9000/ping?all :

    image

Answers