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
-
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 :
0
Answers
-
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.
0 -
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?0 -
Can you check the log I provided above?
0 -
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?
0 -
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.p7468There 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.
0 -
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.
0 -
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
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛