Error connecting to Eikon Desktop API

Hello,


I am trying to run the below script:

import eikon as ek

ek.set_app_key('xxxxxxxxx')

test=ek.get_news_headlines("AAPL.O",count=10)


and I get the below error:

P[17764] [MainThread 444] Error code 500 | Server Error: {"code":500,"message":"getaddrinfo ENOTFOUND emea1.apps.cp.extranet.thomsonreuters.biz emea1.apps.cp.extranet.thomsonreuters.biz:443","statusMessage":"Internal Server Error"}

P[17764] [MainThread 444] HTTP request failed: EikonError-Server Error: {"code":500,"message":"getaddrinfo ENOTFOUND emea1.apps.cp.extranet.thomsonreuters.biz emea1.apps.cp.extranet.thomsonreuters.biz:443","statusMessage":"Internal Server Error"}

Best Answer

  • michael.rockinger
    Answer ✓

    We had a similar problem. It seems to result from the fact that the Python run does not find the Eikon port.

    We solved the problem by uninstalling (several) versions of Python and to make a clean installation with Pip (and not Conda). Also we no longer used a virtual environment.

    So without having identified the exact problem, we could get a fully operational installation.


Answers