question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Build fails when installing pyodbc

See original GitHub issue

Investigative information

  • Timestamp: 2020-09-24T18:32:52.586Z
  • Function App name: filesplit-dev
  • Function name(s) (as appropriate): TimerTrigger1
  • Core Tools version: 2.0

Environment Setup

requirements.txt

azure-functions
pyodbc
lightgbm
pandas
sqlalchemy
numpy

The Function being uploaded imports pyodbc TimerTrigger1/init.py

import datetime
import logging
import pyodbc
...

Problem

Deployment fails because pyodbc cannot be installed. This error wasn’t occuring yesterday. From the log:

2020-09-24T19:34:28.260Z - Updating submodules.
2020-09-24T19:34:28.275Z - Preparing deployment for commit id 'f30037a249'.
2020-09-24T19:34:28.310Z - Repository path is /tmp/zipdeploy/extracted
2020-09-24T19:34:28.330Z - Running oryx build...
2020-09-24T19:34:28.330Z - Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.7 -p packagedir=.python_packages/lib/site-packages
2020-09-24T19:34:32.104Z - Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
2020-09-24T19:34:32.106Z - You can report issues at https://github.com/Microsoft/Oryx/issues
2020-09-24T19:34:32.106Z - Oryx Version: 0.2.20200813.1, Commit: 16c4841161ae3c639fd26b0212be4f55e515ef7d, ReleaseTagName: 20200813.1
2020-09-24T19:34:32.108Z - Build Operation ID: |V+I70W5sWWs=.9876cfff_
2020-09-24T19:34:32.108Z - Repository Commit : f30037a249664721997d23f0b8f667f7
2020-09-24T19:34:32.149Z - Detecting platforms...
2020-09-24T19:34:38.723Z - Detected following platforms:
2020-09-24T19:34:38.724Z -   python: 3.7.9
2020-09-24T19:34:38.744Z - Version '3.7.9' of platform 'python' is not installed. Generating script to install it...
2020-09-24T19:34:39.076Z - Warning: An outdated version of python was detected (3.7.9). Consider updating.\nVersions supported by Oryx: https://github.com/microsoft/Oryx
2020-09-24T19:34:39.152Z - Source directory     : /tmp/zipdeploy/extracted
2020-09-24T19:34:39.153Z - Destination directory: /home/site/wwwroot
2020-09-24T19:34:39.158Z - Downloading and extracting python version 3.7.9 to /tmp/oryx/platforms/python/3.7.9...
2020-09-24T19:34:42.088Z - Downloaded in 3 sec(s).
2020-09-24T19:34:42.088Z - Verifying checksum...
2020-09-24T19:34:42.409Z - Extracting contents...
2020-09-24T19:34:52.688Z - Done in 13 sec(s).
2020-09-24T19:34:52.753Z - Python Version: /tmp/oryx/platforms/python/3.7.9/bin/python3.7
2020-09-24T19:34:52.754Z - Running pip install...
2020-09-24T19:34:53.726Z - [19:34:53+0000] Collecting azure-functions
2020-09-24T19:34:53.818Z - [19:34:53+0000]   Downloading azure_functions-1.3.1-py3-none-any.whl (120 kB)
2020-09-24T19:34:54.112Z - [19:34:54+0000] Collecting pyodbc
2020-09-24T19:34:54.137Z - [19:34:54+0000]   Downloading pyodbc-4.0.30.tar.gz (266 kB)
2020-09-24T19:34:54.700Z - [19:34:54+0000] Collecting lightgbm
2020-09-24T19:34:54.725Z - [19:34:54+0000]   Downloading lightgbm-3.0.0-py2.py3-none-manylinux1_x86_64.whl (1.7 MB)
2020-09-24T19:34:55.455Z - [19:34:55+0000] Collecting pandas
2020-09-24T19:34:55.477Z - [19:34:55+0000]   Downloading pandas-1.1.2-cp37-cp37m-manylinux1_x86_64.whl (10.5 MB)
2020-09-24T19:34:57.758Z - [19:34:57+0000] Collecting sqlalchemy
2020-09-24T19:34:57.795Z - [19:34:57+0000]   Downloading SQLAlchemy-1.3.19-cp37-cp37m-manylinux2010_x86_64.whl (1.3 MB)
2020-09-24T19:34:58.643Z - [19:34:58+0000] Collecting numpy
2020-09-24T19:34:58.662Z - [19:34:58+0000]   Downloading numpy-1.19.2-cp37-cp37m-manylinux2010_x86_64.whl (14.5 MB)
2020-09-24T19:35:01.258Z - [19:35:01+0000] Collecting scikit-learn!=0.22.0
2020-09-24T19:35:01.279Z - [19:35:01+0000]   Downloading scikit_learn-0.23.2-cp37-cp37m-manylinux1_x86_64.whl (6.8 MB)
2020-09-24T19:35:01.981Z - [19:35:01+0000] Collecting scipy
2020-09-24T19:35:02.013Z - [19:35:02+0000]   Downloading scipy-1.5.2-cp37-cp37m-manylinux1_x86_64.whl (25.9 MB)
2020-09-24T19:35:06.808Z - [19:35:06+0000] Collecting python-dateutil>=2.7.3
2020-09-24T19:35:06.839Z - [19:35:06+0000]   Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
2020-09-24T19:35:07.201Z - [19:35:07+0000] Collecting pytz>=2017.2
2020-09-24T19:35:07.231Z - [19:35:07+0000]   Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
2020-09-24T19:35:07.351Z - [19:35:07+0000] Collecting threadpoolctl>=2.0.0
2020-09-24T19:35:07.373Z - [19:35:07+0000]   Downloading threadpoolctl-2.1.0-py3-none-any.whl (12 kB)
2020-09-24T19:35:07.544Z - [19:35:07+0000] Collecting joblib>=0.11
2020-09-24T19:35:07.565Z - [19:35:07+0000]   Downloading joblib-0.16.0-py3-none-any.whl (300 kB)
2020-09-24T19:35:07.697Z - [19:35:07+0000] Collecting six>=1.5
2020-09-24T19:35:07.718Z - [19:35:07+0000]   Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
2020-09-24T19:35:07.757Z - [19:35:07+0000] Building wheels for collected packages: pyodbc
2020-09-24T19:35:07.759Z - [19:35:07+0000]   Building wheel for pyodbc (setup.py): started
2020-09-24T19:35:15.463Z - [19:35:15+0000]   Building wheel for pyodbc (setup.py): finished with status 'error'
2020-09-24T19:35:15.466Z - [19:35:15+0000]   Running setup.py clean for pyodbc
2020-09-24T19:35:15.475Z -   ERROR: Command errored out with exit status 1:
2020-09-24T19:35:15.475Z -    command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-u3ncj_5f
2020-09-24T19:35:15.476Z -        cwd: /tmp/pip-install-ykrneznu/pyodbc/
2020-09-24T19:35:15.476Z -   Complete output (142 lines):
2020-09-24T19:35:15.476Z -   running bdist_wheel
2020-09-24T19:35:15.477Z -   running build
2020-09-24T19:35:15.477Z -   running build_ext
2020-09-24T19:35:15.477Z -   building 'pyodbc' extension
2020-09-24T19:35:15.477Z -   creating build
2020-09-24T19:35:15.478Z -   creating build/temp.linux-x86_64-3.7
2020-09-24T19:35:15.478Z -   creating build/temp.linux-x86_64-3.7/src
2020-09-24T19:35:15.479Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/buffer.cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings
2020-09-24T19:35:15.479Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.7/src/cnxninfo.o -Wno-write-strings
2020-09-24T19:35:15.479Z -   src/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’:
2020-09-24T19:35:15.479Z -   src/cnxninfo.cpp:45:18: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.479Z -        Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));
2020-09-24T19:35:15.479Z -                     ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.480Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.480Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.480Z -                    from src/cnxninfo.cpp:7:
2020-09-24T19:35:15.480Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:15.480Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:15.480Z -                          ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.480Z -   src/cnxninfo.cpp:45:88: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.480Z -        Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));
2020-09-24T19:35:15.480Z -                                                                                           ^
2020-09-24T19:35:15.480Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.480Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.481Z -                    from src/cnxninfo.cpp:7:
2020-09-24T19:35:15.481Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:15.481Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:15.481Z -                          ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.481Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/connection.cpp -o build/temp.linux-x86_64-3.7/src/connection.o -Wno-write-strings
2020-09-24T19:35:15.481Z -   src/connection.cpp: In function ‘PyObject* Connection_getinfo(PyObject*, PyObject*)’:
2020-09-24T19:35:15.481Z -   src/connection.cpp:835:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2020-09-24T19:35:15.481Z -            SQLUINTEGER n = *(SQLUINTEGER*)szBuffer; // Does this work on PPC or do we need a union?
2020-09-24T19:35:15.481Z -                                           ^~~~~~~~
2020-09-24T19:35:15.481Z -   src/connection.cpp:848:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2020-09-24T19:35:15.481Z -            result = PyInt_FromLong(*(SQLUSMALLINT*)szBuffer);
2020-09-24T19:35:15.481Z -                                                    ^~~~~~~~
2020-09-24T19:35:15.482Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cursor.cpp -o build/temp.linux-x86_64-3.7/src/cursor.o -Wno-write-strings
2020-09-24T19:35:15.482Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/errors.cpp -o build/temp.linux-x86_64-3.7/src/errors.o -Wno-write-strings
2020-09-24T19:35:15.482Z -   src/errors.cpp: In function ‘PyObject* GetErrorFromHandle(Connection*, const char*, HDBC, HSTMT)’:
2020-09-24T19:35:15.482Z -   src/errors.cpp:331:17: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.482Z -        if (!msg || PyUnicode_GetSize(msg.Get()) == 0)
2020-09-24T19:35:15.482Z -                    ^~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.482Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.482Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.482Z -                    from src/errors.cpp:2:
2020-09-24T19:35:15.483Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here
2020-09-24T19:35:15.483Z -    PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
2020-09-24T19:35:15.486Z -                           ^~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.486Z -   src/errors.cpp:331:44: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.486Z -        if (!msg || PyUnicode_GetSize(msg.Get()) == 0)
2020-09-24T19:35:15.486Z -                                               ^
2020-09-24T19:35:15.486Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.487Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.487Z -                    from src/errors.cpp:2:
2020-09-24T19:35:15.487Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here
2020-09-24T19:35:15.488Z -    PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
2020-09-24T19:35:15.488Z -                           ^~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.493Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/getdata.cpp -o build/temp.linux-x86_64-3.7/src/getdata.o -Wno-write-strings
2020-09-24T19:35:15.493Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/params.cpp -o build/temp.linux-x86_64-3.7/src/params.o -Wno-write-strings
2020-09-24T19:35:15.493Z -   src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’:
2020-09-24T19:35:15.494Z -   src/params.cpp:1932:33: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.494Z -                            bytes = PyUnicode_EncodeUTF8(source, cb, "strict");
2020-09-24T19:35:15.494Z -                                    ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.494Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.494Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.494Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.494Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:15.494Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:15.494Z -                          ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.495Z -   src/params.cpp:1932:74: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.495Z -                            bytes = PyUnicode_EncodeUTF8(source, cb, "strict");
2020-09-24T19:35:15.495Z -                                                                             ^
2020-09-24T19:35:15.495Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.495Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.495Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.495Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:15.495Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:15.495Z -                          ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.495Z -   src/params.cpp:1935:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.495Z -                            bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);
2020-09-24T19:35:15.496Z -                                    ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.496Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.496Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.497Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.497Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:15.497Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:15.497Z -                          ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.498Z -   src/params.cpp:1935:93: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.498Z -                            bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);
2020-09-24T19:35:15.499Z -                                                                                                ^
2020-09-24T19:35:15.499Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.499Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.499Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.500Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:15.500Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:15.500Z -                          ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.503Z -   src/params.cpp:1938:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.503Z -                            bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);
2020-09-24T19:35:15.504Z -                                    ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.504Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.504Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.504Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.505Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:15.505Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:15.505Z -                          ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.505Z -   src/params.cpp:1938:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.505Z -                            bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);
2020-09-24T19:35:15.505Z -                                                                                            ^
2020-09-24T19:35:15.505Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.505Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.505Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.505Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:15.505Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:15.506Z -                          ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.506Z -   src/params.cpp:1941:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.506Z -                            bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);
2020-09-24T19:35:15.506Z -                                    ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.506Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.506Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.506Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.506Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:15.506Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:15.507Z -                          ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.513Z -   src/params.cpp:1941:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:15.513Z -                            bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);
2020-09-24T19:35:15.513Z -                                                                                            ^
2020-09-24T19:35:15.514Z -   In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:15.514Z -                    from src/pyodbc.h:45,
2020-09-24T19:35:15.514Z -                    from src/params.cpp:10:
2020-09-24T19:35:15.515Z -   /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:15.515Z -    PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:15.515Z -                          ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:15.515Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.7/src/pyodbccompat.o -Wno-write-strings
2020-09-24T19:35:15.516Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o -Wno-write-strings
2020-09-24T19:35:15.516Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o -Wno-write-strings
2020-09-24T19:35:15.517Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/row.cpp -o build/temp.linux-x86_64-3.7/src/row.o -Wno-write-strings
2020-09-24T19:35:15.518Z -   gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/textenc.cpp -o build/temp.linux-x86_64-3.7/src/textenc.o -Wno-write-strings
2020-09-24T19:35:15.518Z -   creating build/lib.linux-x86_64-3.7
2020-09-24T19:35:15.520Z -   g++ -pthread -shared build/temp.linux-x86_64-3.7/src/buffer.o build/temp.linux-x86_64-3.7/src/cnxninfo.o build/temp.linux-x86_64-3.7/src/connection.o build/temp.linux-x86_64-3.7/src/cursor.o build/temp.linux-x86_64-3.7/src/errors.o build/temp.linux-x86_64-3.7/src/getdata.o build/temp.linux-x86_64-3.7/src/params.o build/temp.linux-x86_64-3.7/src/pyodbccompat.o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o build/temp.linux-x86_64-3.7/src/row.o build/temp.linux-x86_64-3.7/src/textenc.o -L/usr/lib -L/usr/local/lib -L/opt/python/3.7.9/lib -lodbc -lpython3.7m -o build/lib.linux-x86_64-3.7/pyodbc.cpython-37m-x86_64-linux-gnu.so
2020-09-24T19:35:15.521Z -   /usr/bin/ld: cannot find -lpython3.7m
2020-09-24T19:35:15.521Z -   collect2: error: ld returned 1 exit status
2020-09-24T19:35:15.521Z -   error: command 'g++' failed with exit status 1
2020-09-24T19:35:15.522Z -   ----------------------------------------
2020-09-24T19:35:15.522Z -   ERROR: Failed building wheel for pyodbc
2020-09-24T19:35:15.741Z - [19:35:15+0000] Failed to build pyodbc
2020-09-24T19:35:15.743Z - DEPRECATION: Could not build wheels for pyodbc which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
2020-09-24T19:35:15.889Z - [19:35:15+0000] Installing collected packages: azure-functions, pyodbc, numpy, scipy, threadpoolctl, joblib, scikit-learn, lightgbm, six, python-dateutil, pytz, pandas, sqlalchemy
2020-09-24T19:35:16.059Z - [19:35:16+0000]     Running setup.py install for pyodbc: started
2020-09-24T19:35:21.401Z - [19:35:21+0000]     Running setup.py install for pyodbc: finished with status 'error'
2020-09-24T19:35:21.404Z -     ERROR: Command errored out with exit status 1:
2020-09-24T19:35:21.404Z -      command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykrneznu/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-record-ezfjx29a/install-record.txt --single-version-externally-managed --home /tmp/pip-target-ml8vy8ai --compile --install-headers /tmp/pip-target-ml8vy8ai/include/python/pyodbc
2020-09-24T19:35:21.406Z -          cwd: /tmp/pip-install-ykrneznu/pyodbc/
2020-09-24T19:35:21.406Z -     Complete output (142 lines):
2020-09-24T19:35:21.407Z -     running install
2020-09-24T19:35:21.408Z -     running build
2020-09-24T19:35:21.413Z -     running build_ext
2020-09-24T19:35:21.413Z -     building 'pyodbc' extension
2020-09-24T19:35:21.414Z -     creating build
2020-09-24T19:35:21.415Z -     creating build/temp.linux-x86_64-3.7
2020-09-24T19:35:21.415Z -     creating build/temp.linux-x86_64-3.7/src
2020-09-24T19:35:21.415Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/buffer.cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings
2020-09-24T19:35:21.416Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.7/src/cnxninfo.o -Wno-write-strings
2020-09-24T19:35:21.416Z -     src/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’:
2020-09-24T19:35:21.417Z -     src/cnxninfo.cpp:45:18: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.417Z -          Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));
2020-09-24T19:35:21.418Z -                       ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.418Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.418Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.419Z -                      from src/cnxninfo.cpp:7:
2020-09-24T19:35:21.419Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:21.419Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:21.423Z -                            ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.424Z -     src/cnxninfo.cpp:45:88: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.424Z -          Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));
2020-09-24T19:35:21.425Z -                                                                                             ^
2020-09-24T19:35:21.425Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.433Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.435Z -                      from src/cnxninfo.cpp:7:
2020-09-24T19:35:21.435Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:21.435Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:21.436Z -                            ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.436Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/connection.cpp -o build/temp.linux-x86_64-3.7/src/connection.o -Wno-write-strings
2020-09-24T19:35:21.437Z -     src/connection.cpp: In function ‘PyObject* Connection_getinfo(PyObject*, PyObject*)’:
2020-09-24T19:35:21.437Z -     src/connection.cpp:835:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2020-09-24T19:35:21.437Z -              SQLUINTEGER n = *(SQLUINTEGER*)szBuffer; // Does this work on PPC or do we need a union?
2020-09-24T19:35:21.437Z -                                             ^~~~~~~~
2020-09-24T19:35:21.437Z -     src/connection.cpp:848:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2020-09-24T19:35:21.437Z -              result = PyInt_FromLong(*(SQLUSMALLINT*)szBuffer);
2020-09-24T19:35:21.438Z -                                                      ^~~~~~~~
2020-09-24T19:35:21.438Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cursor.cpp -o build/temp.linux-x86_64-3.7/src/cursor.o -Wno-write-strings
2020-09-24T19:35:21.438Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/errors.cpp -o build/temp.linux-x86_64-3.7/src/errors.o -Wno-write-strings
2020-09-24T19:35:21.438Z -     src/errors.cpp: In function ‘PyObject* GetErrorFromHandle(Connection*, const char*, HDBC, HSTMT)’:
2020-09-24T19:35:21.438Z -     src/errors.cpp:331:17: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.438Z -          if (!msg || PyUnicode_GetSize(msg.Get()) == 0)
2020-09-24T19:35:21.438Z -                      ^~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.439Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.440Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.440Z -                      from src/errors.cpp:2:
2020-09-24T19:35:21.440Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here
2020-09-24T19:35:21.441Z -      PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
2020-09-24T19:35:21.441Z -                             ^~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.441Z -     src/errors.cpp:331:44: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.442Z -          if (!msg || PyUnicode_GetSize(msg.Get()) == 0)
2020-09-24T19:35:21.442Z -                                                 ^
2020-09-24T19:35:21.443Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.443Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.443Z -                      from src/errors.cpp:2:
2020-09-24T19:35:21.444Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here
2020-09-24T19:35:21.444Z -      PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(
2020-09-24T19:35:21.445Z -                             ^~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.445Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/getdata.cpp -o build/temp.linux-x86_64-3.7/src/getdata.o -Wno-write-strings
2020-09-24T19:35:21.446Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/params.cpp -o build/temp.linux-x86_64-3.7/src/params.o -Wno-write-strings
2020-09-24T19:35:21.446Z -     src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’:
2020-09-24T19:35:21.447Z -     src/params.cpp:1932:33: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.447Z -                              bytes = PyUnicode_EncodeUTF8(source, cb, "strict");
2020-09-24T19:35:21.447Z -                                      ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.448Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.448Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.448Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.448Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:21.448Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:21.449Z -                            ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.449Z -     src/params.cpp:1932:74: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.450Z -                              bytes = PyUnicode_EncodeUTF8(source, cb, "strict");
2020-09-24T19:35:21.450Z -                                                                               ^
2020-09-24T19:35:21.450Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.451Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.451Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.452Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here
2020-09-24T19:35:21.452Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(
2020-09-24T19:35:21.453Z -                            ^~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.454Z -     src/params.cpp:1935:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.454Z -                              bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);
2020-09-24T19:35:21.454Z -                                      ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.454Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.454Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.455Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.456Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:21.456Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:21.456Z -                            ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.456Z -     src/params.cpp:1935:93: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.456Z -                              bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);
2020-09-24T19:35:21.456Z -                                                                                                  ^
2020-09-24T19:35:21.456Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.457Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.457Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.457Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:21.457Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:21.458Z -                            ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.458Z -     src/params.cpp:1938:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.458Z -                              bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);
2020-09-24T19:35:21.458Z -                                      ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.458Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.458Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.458Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.458Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:21.458Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:21.458Z -                            ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.458Z -     src/params.cpp:1938:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.459Z -                              bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);
2020-09-24T19:35:21.459Z -                                                                                              ^
2020-09-24T19:35:21.459Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.459Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.459Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.460Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:21.460Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:21.460Z -                            ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.460Z -     src/params.cpp:1941:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.460Z -                              bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);
2020-09-24T19:35:21.460Z -                                      ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.460Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.460Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.460Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.460Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:21.460Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:21.461Z -                            ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.461Z -     src/params.cpp:1941:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]
2020-09-24T19:35:21.461Z -                              bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);
2020-09-24T19:35:21.461Z -                                                                                              ^
2020-09-24T19:35:21.461Z -     In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,
2020-09-24T19:35:21.461Z -                      from src/pyodbc.h:45,
2020-09-24T19:35:21.461Z -                      from src/params.cpp:10:
2020-09-24T19:35:21.462Z -     /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here
2020-09-24T19:35:21.462Z -      PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(
2020-09-24T19:35:21.462Z -                            ^~~~~~~~~~~~~~~~~~~~~
2020-09-24T19:35:21.462Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.7/src/pyodbccompat.o -Wno-write-strings
2020-09-24T19:35:21.462Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o -Wno-write-strings
2020-09-24T19:35:21.462Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o -Wno-write-strings
2020-09-24T19:35:21.462Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/row.cpp -o build/temp.linux-x86_64-3.7/src/row.o -Wno-write-strings
2020-09-24T19:35:21.462Z -     gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/textenc.cpp -o build/temp.linux-x86_64-3.7/src/textenc.o -Wno-write-strings
2020-09-24T19:35:21.462Z -     creating build/lib.linux-x86_64-3.7
2020-09-24T19:35:21.463Z -     g++ -pthread -shared build/temp.linux-x86_64-3.7/src/buffer.o build/temp.linux-x86_64-3.7/src/cnxninfo.o build/temp.linux-x86_64-3.7/src/connection.o build/temp.linux-x86_64-3.7/src/cursor.o build/temp.linux-x86_64-3.7/src/errors.o build/temp.linux-x86_64-3.7/src/getdata.o build/temp.linux-x86_64-3.7/src/params.o build/temp.linux-x86_64-3.7/src/pyodbccompat.o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o build/temp.linux-x86_64-3.7/src/row.o build/temp.linux-x86_64-3.7/src/textenc.o -L/usr/lib -L/usr/local/lib -L/opt/python/3.7.9/lib -lodbc -lpython3.7m -o build/lib.linux-x86_64-3.7/pyodbc.cpython-37m-x86_64-linux-gnu.so
2020-09-24T19:35:21.463Z -     /usr/bin/ld: cannot find -lpython3.7m
2020-09-24T19:35:21.463Z -     collect2: error: ld returned 1 exit status
2020-09-24T19:35:21.463Z -     error: command 'g++' failed with exit status 1
2020-09-24T19:35:21.463Z -     ----------------------------------------
2020-09-24T19:35:21.464Z - ERROR: Command errored out with exit status 1: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykrneznu/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-record-ezfjx29a/install-record.txt --single-version-externally-managed --home /tmp/pip-target-ml8vy8ai --compile --install-headers /tmp/pip-target-ml8vy8ai/include/python/pyodbc Check the logs for full command output.
2020-09-24T19:35:21.698Z - WARNING: You are using pip version 20.2; however, version 20.2.3 is available.
2020-09-24T19:35:21.698Z - You should consider upgrading via the '/tmp/oryx/platforms/python/3.7.9/bin/python3.7 -m pip install --upgrade pip' command.
2020-09-24T19:35:21.791Z - Done in 29 sec(s).
2020-09-24T19:35:23.475Z - ERROR: Command errored out with exit status 1:\n   command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-u3ncj_5f\n       cwd: /tmp/pip-install-ykrneznu/pyodbc/\n  Complete output (142 lines):\n  running bdist_wheel\n  running build\n  running build_ext\n  building 'pyodbc' extension\n  creating build\n  creating build/temp.linux-x86_64-3.7\n  creating build/temp.linux-x86_64-3.7/src\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/buffer.cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.7/src/cnxninfo.o -Wno-write-strings\n  src/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’:\n  src/cnxninfo.cpp:45:18: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n       Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));\n                    ^~~~~~~~~~~~~~~~~~~~\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/cnxninfo.cpp:7:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                         ^~~~~~~~~~~~~~~~~~~~\n  src/cnxninfo.cpp:45:88: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n       Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));\n                                                                                          ^\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/cnxninfo.cpp:7:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                         ^~~~~~~~~~~~~~~~~~~~\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/connection.cpp -o build/temp.linux-x86_64-3.7/src/connection.o -Wno-write-strings\n  src/connection.cpp: In function ‘PyObject* Connection_getinfo(PyObject*, PyObject*)’:\n  src/connection.cpp:835:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\n           SQLUINTEGER n = *(SQLUINTEGER*)szBuffer; // Does this work on PPC or do we need a union?\n                                          ^~~~~~~~\n  src/connection.cpp:848:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\n           result = PyInt_FromLong(*(SQLUSMALLINT*)szBuffer);\n                                                   ^~~~~~~~\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cursor.cpp -o build/temp.linux-x86_64-3.7/src/cursor.o -Wno-write-strings\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/errors.cpp -o build/temp.linux-x86_64-3.7/src/errors.o -Wno-write-strings\n  src/errors.cpp: In function ‘PyObject* GetErrorFromHandle(Connection*, const char*, HDBC, HSTMT)’:\n  src/errors.cpp:331:17: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]\n       if (!msg || PyUnicode_GetSize(msg.Get()) == 0)\n                   ^~~~~~~~~~~~~~~~~\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/errors.cpp:2:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here\n   PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(\n                          ^~~~~~~~~~~~~~~~~\n  src/errors.cpp:331:44: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]\n       if (!msg || PyUnicode_GetSize(msg.Get()) == 0)\n                                              ^\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/errors.cpp:2:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here\n   PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(\n                          ^~~~~~~~~~~~~~~~~\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/getdata.cpp -o build/temp.linux-x86_64-3.7/src/getdata.o -Wno-write-strings\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/params.cpp -o build/temp.linux-x86_64-3.7/src/params.o -Wno-write-strings\n  src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’:\n  src/params.cpp:1932:33: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF8(source, cb, "strict");\n                                   ^~~~~~~~~~~~~~~~~~~~\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                         ^~~~~~~~~~~~~~~~~~~~\n  src/params.cpp:1932:74: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF8(source, cb, "strict");\n                                                                            ^\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                         ^~~~~~~~~~~~~~~~~~~~\n  src/params.cpp:1935:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);\n                                   ^~~~~~~~~~~~~~~~~~~~~\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                         ^~~~~~~~~~~~~~~~~~~~~\n  src/params.cpp:1935:93: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);\n                                                                                               ^\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                         ^~~~~~~~~~~~~~~~~~~~~\n  src/params.cpp:1938:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);\n                                   ^~~~~~~~~~~~~~~~~~~~~\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                         ^~~~~~~~~~~~~~~~~~~~~\n  src/params.cpp:1938:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);\n                                                                                           ^\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                         ^~~~~~~~~~~~~~~~~~~~~\n  src/params.cpp:1941:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);\n                                   ^~~~~~~~~~~~~~~~~~~~~\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                         ^~~~~~~~~~~~~~~~~~~~~\n  src/params.cpp:1941:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                           bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);\n                                                                                           ^\n  In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                   from src/pyodbc.h:45,\n                   from src/params.cpp:10:\n  /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n   PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                         ^~~~~~~~~~~~~~~~~~~~~\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.7/src/pyodbccompat.o -Wno-write-strings\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o -Wno-write-strings\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o -Wno-write-strings\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/row.cpp -o build/temp.linux-x86_64-3.7/src/row.o -Wno-write-strings\n  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/textenc.cpp -o build/temp.linux-x86_64-3.7/src/textenc.o -Wno-write-strings\n  creating build/lib.linux-x86_64-3.7\n  g++ -pthread -shared build/temp.linux-x86_64-3.7/src/buffer.o build/temp.linux-x86_64-3.7/src/cnxninfo.o build/temp.linux-x86_64-3.7/src/connection.o build/temp.linux-x86_64-3.7/src/cursor.o build/temp.linux-x86_64-3.7/src/errors.o build/temp.linux-x86_64-3.7/src/getdata.o build/temp.linux-x86_64-3.7/src/params.o build/temp.linux-x86_64-3.7/src/pyodbccompat.o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o build/temp.linux-x86_64-3.7/src/row.o build/temp.linux-x86_64-3.7/src/textenc.o -L/usr/lib -L/usr/local/lib -L/opt/python/3.7.9/lib -lodbc -lpython3.7m -o build/lib.linux-x86_64-3.7/pyodbc.cpython-37m-x86_64-linux-gnu.so\n  /usr/bin/ld: cannot find -lpython3.7m\n  collect2: error: ld returned 1 exit status\n  error: command 'g++' failed with exit status 1\n  ----------------------------------------\n  ERROR: Failed building wheel for pyodbc\nDEPRECATION: Could not build wheels for pyodbc which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.\n    ERROR: Command errored out with exit status 1:\n     command: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykrneznu/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-record-ezfjx29a/install-record.txt --single-version-externally-managed --home /tmp/pip-target-ml8vy8ai --compile --install-headers /tmp/pip-target-ml8vy8ai/include/python/pyodbc\n         cwd: /tmp/pip-install-ykrneznu/pyodbc/\n    Complete output (142 lines):\n    running install\n    running build\n    running build_ext\n    building 'pyodbc' extension\n    creating build\n    creating build/temp.linux-x86_64-3.7\n    creating build/temp.linux-x86_64-3.7/src\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/buffer.cpp -o build/temp.linux-x86_64-3.7/src/buffer.o -Wno-write-strings\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cnxninfo.cpp -o build/temp.linux-x86_64-3.7/src/cnxninfo.o -Wno-write-strings\n    src/cnxninfo.cpp: In function ‘PyObject* GetHash(PyObject*)’:\n    src/cnxninfo.cpp:45:18: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n         Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));\n                      ^~~~~~~~~~~~~~~~~~~~\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/cnxninfo.cpp:7:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                           ^~~~~~~~~~~~~~~~~~~~\n    src/cnxninfo.cpp:45:88: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n         Object bytes(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(p), PyUnicode_GET_SIZE(p), 0));\n                                                                                            ^\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/cnxninfo.cpp:7:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                           ^~~~~~~~~~~~~~~~~~~~\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/connection.cpp -o build/temp.linux-x86_64-3.7/src/connection.o -Wno-write-strings\n    src/connection.cpp: In function ‘PyObject* Connection_getinfo(PyObject*, PyObject*)’:\n    src/connection.cpp:835:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\n             SQLUINTEGER n = *(SQLUINTEGER*)szBuffer; // Does this work on PPC or do we need a union?\n                                            ^~~~~~~~\n    src/connection.cpp:848:49: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\n             result = PyInt_FromLong(*(SQLUSMALLINT*)szBuffer);\n                                                     ^~~~~~~~\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/cursor.cpp -o build/temp.linux-x86_64-3.7/src/cursor.o -Wno-write-strings\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/errors.cpp -o build/temp.linux-x86_64-3.7/src/errors.o -Wno-write-strings\n    src/errors.cpp: In function ‘PyObject* GetErrorFromHandle(Connection*, const char*, HDBC, HSTMT)’:\n    src/errors.cpp:331:17: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]\n         if (!msg || PyUnicode_GetSize(msg.Get()) == 0)\n                     ^~~~~~~~~~~~~~~~~\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/errors.cpp:2:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here\n     PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(\n                            ^~~~~~~~~~~~~~~~~\n    src/errors.cpp:331:44: warning: ‘Py_ssize_t PyUnicode_GetSize(PyObject*)’ is deprecated [-Wdeprecated-declarations]\n         if (!msg || PyUnicode_GetSize(msg.Get()) == 0)\n                                                ^\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/errors.cpp:2:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:793:24: note: declared here\n     PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize(\n                            ^~~~~~~~~~~~~~~~~\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/getdata.cpp -o build/temp.linux-x86_64-3.7/src/getdata.o -Wno-write-strings\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/params.cpp -o build/temp.linux-x86_64-3.7/src/params.o -Wno-write-strings\n    src/params.cpp: In function ‘bool ExecuteMulti(Cursor*, PyObject*, PyObject*)’:\n    src/params.cpp:1932:33: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF8(source, cb, "strict");\n                                     ^~~~~~~~~~~~~~~~~~~~\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                           ^~~~~~~~~~~~~~~~~~~~\n    src/params.cpp:1932:74: warning: ‘PyObject* PyUnicode_EncodeUTF8(const Py_UNICODE*, Py_ssize_t, const char*)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF8(source, cb, "strict");\n                                                                              ^\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1320:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF8(\n                           ^~~~~~~~~~~~~~~~~~~~\n    src/params.cpp:1935:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);\n                                     ^~~~~~~~~~~~~~~~~~~~~\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                           ^~~~~~~~~~~~~~~~~~~~~\n    src/params.cpp:1935:93: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_NATIVE);\n                                                                                                 ^\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                           ^~~~~~~~~~~~~~~~~~~~~\n    src/params.cpp:1938:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);\n                                     ^~~~~~~~~~~~~~~~~~~~~\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                           ^~~~~~~~~~~~~~~~~~~~~\n    src/params.cpp:1938:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_LE);\n                                                                                             ^\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                           ^~~~~~~~~~~~~~~~~~~~~\n    src/params.cpp:1941:33: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);\n                                     ^~~~~~~~~~~~~~~~~~~~~\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                           ^~~~~~~~~~~~~~~~~~~~~\n    src/params.cpp:1941:89: warning: ‘PyObject* PyUnicode_EncodeUTF16(const Py_UNICODE*, Py_ssize_t, const char*, int)’ is deprecated [-Wdeprecated-declarations]\n                             bytes = PyUnicode_EncodeUTF16(source, cb, "strict", BYTEORDER_BE);\n                                                                                             ^\n    In file included from /tmp/oryx/platforms/python/3.7.9/include/python3.7m/Python.h:99:0,\n                     from src/pyodbc.h:45,\n                     from src/params.cpp:10:\n    /tmp/oryx/platforms/python/3.7.9/include/python3.7m/unicodeobject.h:1480:23: note: declared here\n     PyAPI_FUNC(PyObject*) PyUnicode_EncodeUTF16(\n                           ^~~~~~~~~~~~~~~~~~~~~\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbccompat.cpp -o build/temp.linux-x86_64-3.7/src/pyodbccompat.o -Wno-write-strings\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcdbg.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o -Wno-write-strings\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/pyodbcmodule.cpp -o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o -Wno-write-strings\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/row.cpp -o build/temp.linux-x86_64-3.7/src/row.o -Wno-write-strings\n    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.30 -I/tmp/oryx/platforms/python/3.7.9/include/python3.7m -c src/textenc.cpp -o build/temp.linux-x86_64-3.7/src/textenc.o -Wno-write-strings\n    creating build/lib.linux-x86_64-3.7\n    g++ -pthread -shared build/temp.linux-x86_64-3.7/src/buffer.o build/temp.linux-x86_64-3.7/src/cnxninfo.o build/temp.linux-x86_64-3.7/src/connection.o build/temp.linux-x86_64-3.7/src/cursor.o build/temp.linux-x86_64-3.7/src/errors.o build/temp.linux-x86_64-3.7/src/getdata.o build/temp.linux-x86_64-3.7/src/params.o build/temp.linux-x86_64-3.7/src/pyodbccompat.o build/temp.linux-x86_64-3.7/src/pyodbcdbg.o build/temp.linux-x86_64-3.7/src/pyodbcmodule.o build/temp.linux-x86_64-3.7/src/row.o build/temp.linux-x86_64-3.7/src/textenc.o -L/usr/lib -L/usr/local/lib -L/opt/python/3.7.9/lib -lodbc -lpython3.7m -o build/lib.linux-x86_64-3.7/pyodbc.cpython-37m-x86_64-linux-gnu.so\n    /usr/bin/ld: cannot find -lpython3.7m\n    collect2: error: ld returned 1 exit status\n    error: command 'g++' failed with exit status 1\n    ----------------------------------------\nERROR: Command errored out with exit status 1: /tmp/oryx/platforms/python/3.7.9/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykrneznu/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykrneznu/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-record-ezfjx29a/install-record.txt --single-version-externally-managed --home /tmp/pip-target-ml8vy8ai --compile --install-headers /tmp/pip-target-ml8vy8ai/include/python/pyodbc Check the logs for full command output.\nWARNING: You are using pip version 20.2; however, version 20.2.3 is available.\nYou should consider upgrading via the '/tmp/oryx/platforms/python/3.7.9/bin/python3.7 -m pip install --upgrade pip' command.\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.7 -p packagedir=.python_packages/lib/site-packages

Known workarounds

pypyodbc gets installed succesfully when it’s included in requirements.txt, but I would rather not change connection managers without knowing why.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Hazhzengcommented, Oct 6, 2020

The fix has been deployed in all regions and feel free to reopen this issue if you hit it again.

1reaction
samFarrellDaycommented, Sep 25, 2020

Created a new function app with Python 3.7 and I got the same error. However, a new function app with Python 3.8 successfully installed pyodbc. Don’t know if the devs want to look into this any more or not, so I’ll leave the issue open for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install pyodbc failed ERROR: Failed building wheel for ...
While installing 'unixodbc-dev' it will ask for permission to install all dependent required libraries. Follow the steps to install pyodbc:
Read more >
Issues with pyodbc installation in venv python 3.10 #1020
Here it gives an error as: Collecting pyodbc Using cached pyodbc-4.0.32.tar.gz (280 kB) Preparing metadata (setup.py) ...
Read more >
Unable to install pyodbc on windows server - Python Help
I am unable to install pyodbc or eciespy using PIP install pyodbc. I get the following error: ERROR: Command errored out with exit...
Read more >
pip install pyodbc failing - Watercooler | Deepnote Community
I am struggling to use pyodbc package in any Deepnote notebook, after using pip I get error: command 'gcc' failed with exit status...
Read more >
2049428 – pyodbc fails to build with Python 3.11: error
pyodbc fails to build with Python 3.11.0a4. src/cnxninfo.cpp:45:18: error: ‘PyUnicode_EncodeUTF8’ was not declared in this scope; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found