Trouble installing lseg-data

JB23
JB23 Newcomer
edited January 15 in Eikon Data APIs

I keep getting the following error code when trying to install lseg-data python library.

image.png

I am installing this in a python virtual environment, and I have checked that I have Cython installed.

image.png

How can I go about fixing this?

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @JB23

    Thank you for the information. There are two issues here.

    First Issue

    The first one is using LSEG Data Library for Python with Python 3.13.x. I checked the library's requirement from the pyproject.toml file from PyPi repository, the library requires SciPy version less than 1.13.0. However, SciPy library supports Python 3.13.x on version 1.14.1, so the LSEG Data Library does not support Python 3.13.x yet.

    scipy-14.png

    If you try to install the LSEG Library with Python 3.13 without the connection issue, you will get this error:

    python_13.png

    Could you please try with lower version of Python such as 3.11.x? I and @Jirapongse have tried that version it works fine on our environment.

    Second Issue

    The second one is the error messages that you shared with us. The SciPy's build process (done by pip tool) requires the Cython package. The error indicates that the pip tool got connection issues (Connection Broken and Connection Timeout) when it tried to download "Cython>=0.29.35,!=3.0.3,<3.1.0" to build the SciPy library.

    You may need to contact your local IT team to help you with a Python proxy connection.

    I hope this information helps.

Answers