AttributeError: module 'eikon' has no attribute 'set_app_key'
Hello. I just started using the eikon API. When I try to use the example scripts in the website, I get this error. I tried the solutions in the two similar questions, namely pip upgrade eikon and adding to the path, but it didnt work. Thanks in advance.
Best Answer
-
You possibly mixed different versions.
A solution is to uninstall then re-install eikon library.
set_app_key replaced set_app_id since 0.1.12 beta version.
If you check helper on set_app_xxx functions :
>>> help(ek.set_app_id)
Help on function set_app_id in module eikon.Profile:
set_app_id(app_id)
Set the application id.
Parameters
----------
app_id : string
the application id
Notes
-----
The application ID identifies your application on Refinitiv Platform.
You can get an application ID using the App Key Generator. This App is available in Eikon Desktop.
.. deprecated:: 0.1.12
This will be removed in 1.1.0. Use set_app_key function instead
>>> help(ek.set_app_key)
Help on function set_app_key in module eikon.Profile:
set_app_key(app_key)
Set the application key.
Parameters
----------
app_key : string
the application key
Notes
-----
The app key identifies your application on Refinitiv Platform.
You can get an application ID using the App Key Generator. This App is available in Eikon Desktop.Regards
1
Answers
-
Are you sure that you upgraded to eikon 1.0.0 release version ?
You can check version in Python console :>> import eikon
>> eikon.__version__=> You should have '1.0.0' result
0 -
Yes, It says 1.0.0
0 -
I don't see how this is possible. Version 1.0.0 of eikon library certainly implements set_app_key function, you can check it yourself by opening the source code. Are you executing eikon.__version__ and eikon.set_app_key calls in the same Python script? Or are you perhaps mixing several environments where you may have different versions of eikon library installed?
0 -
I just installed it this morning and only use Spyder. Weirdest thing is that i changed "set_app_key" to "set_app_id" like in the previous version and yet it gives the same error "eiko has no attribute named set_app_key", not Id, but key
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛