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 pablo · May 16, 2018 at 12:10 PM · eikon apipython api eikon

ERROR module 'eikon' has no attribute 'set_app_id'

Hello guys, i tried to use this code:

import eikon as ek ek.set_app_id('app_id')

and then y have this error.

Traceback (most recent call last): File "C:/Users/Usuario/Desktop/API_prueba.py", line 1, in <module> import eikon as ek File "C:/Users/Usuario/Desktop\eikon.py", line 3, in <module> ek.set_app_id('xxxxx') AttributeError: module 'eikon' has no attribute 'set_app_id'

SOMEONE HERE CAN I HELP ME PLEASE ?

People who like this

0 Show 3
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.

avatar image
REFINITIV
Zhenya Kovalyov ♦♦ · May 16, 2018 at 12:13 PM 1
Share

Have you installed the package correctly? i.e. ran

pip install eikon
avatar image
dominique.brandl · May 16, 2018 at 12:33 PM 1
Share

After running 'import eikon as ek', run 'ek' in interactive mode. What is the output?

avatar image
pablo · May 16, 2018 at 12:27 PM 0
Share

ready, I did that and still nothing

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Zhenya Kovalyov · May 16, 2018 at 12:31 PM

@pablo i suggest deleting eikon.py from C:/Users/Usuario/Desktop\eikon.py, so the import will pick up c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages

Comment

People who like this

0 Show 0 · 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
Answer by pablo · May 16, 2018 at 12:27 PM

Microsoft Windows [Versión 10.0.16299.431] (c) 2017 Microsoft Corporation. Todos los derechos reservados. C:\Users\Usuario>pip install eikon Requirement already satisfied: eikon in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (0.1.12) Requirement already satisfied: pandas>=0.17.0 in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from eikon) (0.22.0) Requirement already satisfied: websocket-client in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from eikon) (0.47.0) Requirement already satisfied: python-dateutil in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from eikon) (2.7.2) Requirement already satisfied: datetime in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from eikon) (4.2) Requirement already satisfied: requests in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from eikon) (2.18.4) Requirement already satisfied: appdirs in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from eikon) (1.4.3) Requirement already satisfied: pytz>=2011k in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from pandas>=0.17.0->eikon) (2018.4) Requirement already satisfied: numpy>=1.9.0 in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from pandas>=0.17.0->eikon) (1.14.3) Requirement already satisfied: six in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from websocket-client->eikon) (1.11.0) Requirement already satisfied: zope.interface in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from datetime->eikon) (4.5.0) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from requests->eikon) (3.0.4) Requirement already satisfied: idna<2.7,>=2.5 in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from requests->eikon) (2.6) Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from requests->eikon) (1.22) Requirement already satisfied: certifi>=2017.4.17 in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from requests->eikon) (2018.4.16) Requirement already satisfied: setuptools in c:\users\usuario\appdata\local\programs\python\python36-32\lib\site-packages (from zope.interface->datetime->eikon) (39.0.1) C:\Users\Usuario>pip list Package Version ----------------- --------- appdirs 1.4.3 bt 0.2.5 certifi 2018.4.16 chardet 3.0.4 configparser 3.5.0 cycler 0.10.0 DateTime 4.2 decorator 4.3.0 eikon 0.1.12 ffn 0.3.3 future 0.16.0 fxcmpy 1.1.16 googlefinance 0.7 idna 2.6 jason 0.1.7 kiwisolver 1.0.1 lxml 4.2.1 matplotlib 2.2.2 numpy 1.14.3 pandas 0.22.0 pandas-datareader 0.6.0 pip 10.0.1 pyparsing 2.2.0 PyPrind 2.11.2 python-dateutil 2.7.2 pytz 2018.4 requests 2.18.4 requests-file 1.4.3 requests-ftp 0.3.1 scikit-learn 0.19.1 scipy 1.1.0 setuptools 39.0.1 six 1.11.0 socketIO-client 0.7.2 tabulate 0.8.2 urllib3 1.22 websocket-client 0.47.0 wrapt 1.10.11 zope.interface 4.5.0

Comment

People who like this

0 Show 0 · 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.

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 >
9 People are following this question.

Related Questions

Returned revenues via a Python script is different from the ones on the web

China futures closing price

Unable to calculate CAGR for total return extracted from Eikon API

[Python API] any EIKON field to get TotalVotingShares for equities?

Issue while requesting Stock Returns (TR.TotalReturn1D)

  • 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
  • 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