For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 0

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

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.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hi @05032

I am not an Eikon expert - but just to eliminate the obvious - can you confirm the same version of the Eikon library is installed in the env used by Jupyter and the env used by Python IDLE?

You can check by outputting:

tr.__version__

Hi @05032

Please do not post your app key on a public forum.

I removed the app key from your screenshot and code.

Upvote
Accepted
11.5k 16 7 10

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.

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?


problem.png (123.0 KiB)
idle-py37.png (36.2 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

thank you, is work (python 3.7.7 & eikon 1.1.5)

Upvotes
6.7k 8 6 7

@05032 - I saw an issue with this problem using the Pycharm IDE - in this case I think dropping back to eikon library 1.1.2 resolved it. We are currently looking into these isolated issues and library 1.1.4/1.1.5. I hope this can help. Please let us know if this resolves things for the moment.

pip install eikon == 1.1.2

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

There will be others components problem, 
thanks for your suggestion
Upvotes
4.3k 2 4 5

Hi,

A new 1.1.6 version was released to fix HTTP connection issues with Python 3.8

As you set up your environment recently, I assume that your miniconda3_64 contains this version.

you can update eikon with "pip install --upgrade --no-cache-dir eikon" command line

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea