Python IDLE can't connect Eikon Data API, but jupyter notebook successfully connected

image

2020-08-28 17:00:38,208 P[13708] [MainThread 21556] Error: no proxy address identified.

Check if Eikon Desktop or Eikon API Proxy is running.

2020-08-28 17:00:38,221 P[13708] [MainThread 21556] Port number was not identified, cannot send any request

2020-08-28 17:00:38,232 P[13708] [MainThread 21556] Port number was not identified.

Check if Eikon Desktop or Eikon API Proxy is running.

Traceback (most recent call last):

File "D:\Miniconda3\Lib\site-packages\eikon\111.py", line 5, in <module>

tr.set_app_key('cxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0')

File "D:\Miniconda3\lib\site-packages\eikon\Profile.py", line 38, in set_app_key

get_profile().set_app_key(app_key)

File "D:\Miniconda3\lib\site-packages\eikon\Profile.py", line 233, in set_app_key

self.check_profile()

File "D:\Miniconda3\lib\site-packages\eikon\Profile.py", line 346, in check_profile

raise EikonError(-1, 'Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.')

eikon.eikonError.EikonError: Error code -1 | Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @05032

    I can replicate the same issue with Python version 3.8.3. The IDLE cannot connect to Eikon while Jupyter notebook that use the same version of Python can.

    image

    When I use Python version 3.7.x, the IDLE can connect to Eikon successfully, so could you please try with Python 3.7 version?

    image

Answers