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


Best Answer

Answers

  • Hi @alevas ,

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

  • @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.

  • @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.

  • pip install eikon
  • @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
  • pip_log_pdf.pdf
    Can you see something that isnt correct?
    @Jirapongse

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

  • You can use the --index-url option or verify the pip configuration file.
  • Thank you very much @Jirapongse it worked flawlessly!