Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by jeane.samson.refinitiv · Aug 20, 2020 at 02:00 PM · apieikoneikon python apiconnectioneikon python

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?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Gurpreet · Aug 24, 2020 at 04:01 PM

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 :


1598284890947.png (27.3 KiB)
Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
jeane.samson.refinitiv · Aug 25, 2020 at 03:29 PM 0
Share

Hi Gurpreet,


As per client-

It is what i currently find on the my port 9000 (going at http://localhost:9000/ping?all) :
{"port":9000,"mode":"eikon4","pid":14628,"hasSecure":true,"startedTime":"Tue Aug 25 2020 16:34:46 GMT+0200 (Paris, Madrid (heure d’été))","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}},{"path":"/api"}]}

And my file .portInUse is also on port 9000.

avatar image
REFINITIV
Gurpreet ♦♦ jeane.samson.refinitiv · Aug 26, 2020 at 12:39 PM 0
Share

Thanks. Looks like Eikon side is working. What is the version of Eikon library you are using. If using > 1.1.2, can you install the v1.1.2 and try again.

pip install eikon==1.1.2
avatar image
REFINITIV
Answer by Gurpreet · Aug 20, 2020 at 02:08 PM

Hello @jeane.samson.refinitiv, Please ask client to follow this Eikon API troubleshooting article. If they are still unable to solve the issue, then ask them to provide the log files as shown in the article.

Comment
jeane.samson.refinitiv

People who like this

1 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
jeane.samson.refinitiv · Aug 21, 2020 at 11:27 AM 0
Share

Can you check the log I provided above?

avatar image
Answer by jeane.samson.refinitiv · Aug 21, 2020 at 11:27 AM

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?

Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Gurpreet ♦♦ · Aug 21, 2020 at 01:28 PM 0
Share

Can you confirm that client has followed the debugging article?

Have they confirmed the port number in the SxS.<datetime>.p<process-id>.txt log file from Eikon?

What is the result when they omit the line: eikon.set_port_number(9000)?

Is the server actually running on port the 9000?

avatar image
jeane.samson.refinitiv Gurpreet ♦♦ · Aug 24, 2020 at 11:02 AM 0
Share

Hi Gurpreet,


As per client:


Thanks for your quickly answer.
I have followed all steps on the webpagehttps://developers.refinitiv.com/article/eikon-data-apipython-troubleshooting-refinitiv
Everything seems good, just on the last folder created by Eikon, C:\Users\kespalivet\AppData\Local\Thomson Reuters\Eikon Data\Logs\TRD\Eikon.20200824.110521.p7468


There is only the file EikonDM.20200824.110521225.p7468.txt, no Sxs file.

To detail my previous email, sometime Eikon create Sxs file, as you can find in attachment.

Eikon Python.txt

eikon-python.txt (6.6 KiB)

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

NAICS industry with TR.BGS.BusExternalRevenue

Equity fund ownership

Retrieve Earnings Call Transcripts via Eikon API

Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.

MacOS Eikon API Proxy does not open - and don't know if it is even working

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges