Nasdaq / NasdaqCloudDataService-SDK-Python

Nasdaq Data Link provides a modern and efficient method of delivery for real-time exchange data and other financial information. This repository provides a Python SDK for developing applications using Nasdaq Data Link's real-time data.
https://www.nasdaq.com/solutions/data-link-api
Apache License 2.0
56 stars 25 forks source link

Getting pip installation errors #31

Closed noorsheikh closed 2 years ago

noorsheikh commented 2 years ago

I am trying to run the pip install -e . and getting the below error:

#10 15.37   × python setup.py bdist_wheel did not run successfully.
#10 15.37   │ exit code: 1
#10 15.37   ╰─> [45 lines of output]
#10 15.37       running bdist_wheel
#10 15.37       running build
#10 15.37       running build_py
#10 15.37       creating build
#10 15.37       creating build/lib.linux-x86_64-3.9
...
#10 15.37       error: command 'gcc' failed: No such file or directory
#10 15.37       [end of output]
...
#10 15.96   × Running setup.py install for confluent-kafka did not run successfully.
#10 15.96   │ exit code: 1
#10 15.96   ╰─> [45 lines of output]
#10 15.96       running install
#10 15.96       running build
#10 15.96       running build_py
#10 15.96       creating build
#10 15.96       creating build/lib.linux-x86_64-3.9
...
#10 15.96       error: command 'gcc' failed: No such file or directory
#10 15.96       [end of output]
#10 15.96   
#10 15.96   note: This error originates from a subprocess, and is likely not a problem with pip.
#10 15.97 error: legacy-install-failure
#10 15.97 
#10 15.97 × Encountered error while trying to install package.
#10 15.97 ╰─> confluent-kafka
...

The Python version that I am using is 3.9. NOTE: I am running the source code inside a docker container.

Can someone please help me with it?

The steps I have taken to fix the issue but didn't help: I tried installing these pip install wheel setuptools but still, the error exists.

noorsheikh commented 2 years ago

Closing this issue as it was an issue with my docker image, I was using Alpine which has some of the libraries not available in the Linux distro to make the image size low. Instead of using Alpine, I used another Linux distro that has all the dependencies available and it solved the issue. The package that was missing is gcc.