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?

Best Answer

  • pf
    pf LSEG
    Answer ✓

    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 ?

Answers