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
0
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
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 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
- 248 ETA
- 552 WebSocket API
- 37 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.8K Refinitiv Data Platform
- 622 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛