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 bgianini · Apr 25, 2019 at 10:13 AM · eikonerrornameapp_keykeynotdefined

ek.set_app_key / name 'EikonError' is not defined

I've installed and imported the eikon library successfully and I was able to generate the Eikon Data API but then I tried running (with the my own key, not the one below)

ek.set_app_key(''8e5a3xxxxxxxxxxxxxxxxxxxxxxxxxxxx21b031c')

and I'm getting this error:

name 'EikonError' is not defined

What should I do?

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by pierre.faurel · Apr 25, 2019 at 10:21 AM

Hi,

This issue will be fixed with the next version (it should be published this end of month).

In the meantime, you can update Profile.py file in eikon library with following added line in import section:
from .eikonError import EikonError

Then, you should have the error message :
<Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.>

That means eikon module didn't identify connection port number of Eikon Proxy.
=> did you start and connect Eikon successfully ?

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
bgianini · Apr 25, 2019 at 10:27 AM 0
Share

How do I update the Profile.py?

If I just try running:

from .eikonError import EikonError

I get:

ModuleNotFoundError: No module named '__main__.eikonError'; '__main__' is not a package

avatar image
REFINITIV
Zhenya Kovalyov ♦♦ bgianini · Apr 25, 2019 at 10:32 AM 0
Share

in the command line, you can type ```pip show eikon``` it will give you the library physical location:

if you go to this location, you can open Profile.py in the code editor of your choice and add the missing line.

screenshot-2019-04-25-at-153110.png (222.3 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

Get Token API not working.

Error code 403 |

EikonError: Error code -1

What is the error with this simple query?

raise EikonError(-1, 'Port number was not identified.

  • 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