This repository was archived by the owner on Jan 15, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 419
This repository was archived by the owner on Jan 15, 2023. It is now read-only.
pip3 install pyodbc yield "unable to execute 'x86_64-unknown-linux-gnu-gcc'" #110
Copy link
Copy link
Closed
Description
Currently trying to get a python script to import pyodbc or pymssql and both yield the same issue.
Using lambci/lambda:python3.6, both pyodbc and pymssql give the same error:
running install
running build
running build_ext
building 'pyodbc' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
x86_64-unknown-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/local/p4clients/pkgbuild-qdfBi/workspace/build/LambdaLangPython36/LambdaLangPython36-x.200031.0/AL2012/DEV.STD.PTHREAD/build/private/tmp/brazil-path/build.libfarm/include -I/local/p4clients/pkgbuild-qdfBi/workspace/build/LambdaLangPython36/LambdaLangPython36-x.200031.0/AL2012/DEV.STD.PTHREAD/build/private/tmp/brazil-path/build.libfarm/include -fPIC -DPYODBC_VERSION=4.0.24 -I/var/lang/include/python3.6m -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.6/src/pyodbccompat.o -Wno-write-strings
unable to execute 'x86_64-unknown-linux-gnu-gcc': No such file or directory
error: command 'x86_64-unknown-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/var/lang//bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-v2diicpp/pyodbc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-f_slh5u9-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmpus4ytc9w" failed with error code 1 in /tmp/pip-build-v2diicpp/pyodbc/
You are using pip version 9.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Service 'lambda' failed to build: The command '/bin/sh -c pip3 install -r requirements.txt -t /var/task/lib' returned a non-zero code: 1
make: *** [docker-build] Error 1
Same goes for pip3 install pyodbc in the dockerfile
Metadata
Metadata
Assignees
Labels
No labels