Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 2

cant install Eikon Package

Hi, I have trouble installing eikon package in python. I have tried several methods, and it fails each time. It requires me to have some old package version, of "H2" package and "chardet" package which makes no sense, as they are from 2017. Also they do not exist anymore. My python version is 3.9.7. So it's up to date. So my question is why do i get these errors?

error-eikon.png


#productapipython api
error-eikon.png (56.8 KiB)
icon clock
10 |1500

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

Hi @alevas ,

Could you please let me know which command did you use to install the Eikon package for further investigation?

pip install eikon

Hi @alevas ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

@alevas

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
79.3k 253 52 74

@alevas

From the log file, you are using https://pypi.python.org/pypi as an index URL.

I got the same error when using this index URL.

pip install --no-cache-dir --verbose --log pip.log --index-url https://pypi.python.org/pypi "pyee<=9.0.4"
Using pip 23.1.2 from C:\Users\U8009686\source\repos\PythonApplication1\PythonApplication1\env\lib\site-packages\pip (
python 3.10)
Looking in indexes: https://pypi.python.org/pypi
ERROR: Could not find a version that satisfies the requirement pyee<=9.0.4 (from versions: 11.0.0)
ERROR: No matching distribution found for pyee<=9.0.4

I am using https://pypi.org/simple as an index URL.

2023-07-13T16:19:31,300 Found index url https://pypi.org/simple/
icon clock
10 |1500

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

Upvotes
79.3k 253 52 74

@alevas

Thank you for reaching out to us.

The followings are the dependencies of eikon 1.1.16.

    install_requires=[
        "httpx>=0.18.0",
        "nest_asyncio>=1.5.1",
        "datetime",
        "pandas>=1.0.0",
        "numpy>=1.11.0",
        "appdirs>=1.4.3",
        "python-dateutil",
        "websocket-client>=0.54.0,!=1.0.0",
        "deprecation",
        # requests-async requirements
        "certifi",
        "chardet==3.*",
        "h2==3.*",
        "idna==2.*",
        "rfc3986==1.*",
        "requests==2.*",
    ],

h2==3.* is available on Pypi (https://pypi.org/project/h2/3.2.0/).

1689226179170.png

According to the error, you are using h2==4.1.0 and it is unable to find the version of Eikon Data API that supports h2==4.1.0.

You may consider using the Refinitiv Data Library for Python (https://pypi.org/project/refinitiv-data/) with the Desktop session instead.

The dependency libraries of the Refintiv Data Library are:

appdirs<=1.4.4,>=1.4.3
pyee<=9.0.4
httpx<=0.23.0,>=0.18
httpcore<=0.15.0
PyMySQL>=1.0.2
numpy<=1.23.4,>=1.11.0
pandas<1.6.0,>=1.3.5
python-dateutil<=2.8.2
requests<=2.28.1
scipy<=1.9.3
six<=1.16.0
tenacity<8.1.0,>=8.0
watchdog<=2.1.9,>=0.10.2
websocket-client!=1.2.2,<=1.5.1,>=0.58.0
pyhumps<=3.8.0,~=3.0.2
jinja2<4.0.0,>=3.0.3
simplejson~=3.15

The Refinitiv Data Library examples are on GitHub.


1689226179170.png (18.1 KiB)
icon clock
10 |1500

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

Upvotes
1 0 1 2

@Jirapongse when using the pip install h2==3.2.0 command i get:

ERROR: Could not find a version that satisfies the requirement pyee<=9.0.4 (from refinitiv-data) (from versions: 11.0.0)ERROR: No matching distribution found for pyee<=9.0.4

When i install refinitiv data library for python i get a new error:

ERROR: Could not find a version that satisfies the requirement pyee<=9.0.4 (from refinitiv-data) (from versions: 11.0.0)ERROR: No matching distribution found for pyee<=9.0.4

Again, i can only install the newer versions of this packages. It wont let me install older versions of them.

icon clock
10 |1500

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

Upvotes
79.3k 253 52 74

@alevas

You may connect to the repository that doesn't maintain the older versions.

You can run the pip command with the --verbose and --log options.

pip install --no-cache-dir --verbose --log pip.log "pyee<=9.0.4"

Then, check the log file (pip.log).

2023-07-13T15:07:15,603 1 location(s) to search for versions of pyee:
2023-07-13T15:07:15,603 * https://pypi.org/simple/pyee/
2023-07-13T15:07:15,607 Fetching project page and analyzing links: https://pypi.org/simple/pyee/
2023-07-13T15:07:15,610 Getting page https://pypi.org/simple/pyee/
2023-07-13T15:07:15,613 Found index url https://pypi.org/simple
2023-07-13T15:07:15,623 Starting new HTTPS connection (1): pypi.org:443
2023-07-13T15:07:16,209 https://pypi.org:443 "GET /simple/pyee/ HTTP/1.1" 200 8484
icon clock
10 |1500

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

Upvotes
1 0 1 2

pip_log_pdf.pdf
Can you see something that isnt correct?
@Jirapongse


pip-log-pdf.pdf (296.5 KiB)
icon clock
10 |1500

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

Upvotes
1 0 1 2

how do i change to look upon the index url? when installing the package?

icon clock
10 |1500

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

You can use the --index-url option or verify the pip configuration file.
Upvotes
1 0 1 2

Thank you very much @Jirapongse it worked flawlessly!

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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