I keep getting the following error code when trying to install lseg-data python library.
I am installing this in a python virtual environment, and I have checked that I have Cython installed.
How can I go about fixing this?
Hello @JB23,
The error message of Connection Broken and Connection Timeout, indicate that there is a networking issue. You might want to try after a while, or the corporate firewall might be blocking these connections. If there is a proxy server, you might need to specify that on the PIP command line.
Pip documentation
Thank you for the response. I am currently using the proxy server in the PIP command line and this has allowed me to install other packages such as numpy, matplotlib, etc. Is it best just to wait and try and install lseg-data at a time when there is less traffic on the network?
@JB23
I tested it by installing the lseg-data library on a new Python virtual environment.
I can't see the Cython package after intalling the lseg-data library.
What is the version of Python you are using? I am using Python 3.11.4.
Hello @JB23
Are you using the Python pip tool or Conda to install the library?
Hi @wasin.w and thank you for the response.
I am using Python pip tool to install in a virtual environment.
Hi @Jirapongse and thank you for your response.
I pre-installed Cython in the environment before downloading lseg-data to see if that would help address the issue, but it did not. That is likely what is driving the differences between our installed packages.
I am currently using Python 3.13.1
Thank you for the information. There are two issues here.
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.
If you try to install the LSEG Library with Python 3.13 without the connection issue, you will get this error:
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.
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.