试图让 turbodbc 在 Windows 上工作。
我尝试按照以下步骤(下方),但仍然收到错误消息。有人可以帮帮我吗!
如错误所述,首先您需要“Microsoft Visual C++ Build Tools”。您将在此页面上获得它:https ://visualstudio.microsoft.com/downloads/ 。向下滚动到“为 Visual Studio 构建工具”。下载它。
运行安装程序。选择“C++ 构建工具”进行安装。确保同时选择“Windows 10(或您喜欢的任何版本)SDK”以防止以后出现此错误 - https://github.com/openssl/openssl/issues/586
安装构建工具后,如果您尝试安装 Turbodbc (pip install turbodbc),您将看到另一个错误 - python 致命错误 C1083:无法打开包含文件:'boost/locale.hpp'。也就是说,这场战斗已经成功了一半。要解决此错误,请按照此处列出的步骤 - https://github.com/blue-yonder/turbodbc/issues/236。为了您的方便,我将它们复制到下面-
从https://www.boost.org/下载 boost (单击“当前版本”版本链接,在我的情况下为“版本 1.72.0”,然后下载 Windows zip 文件)。
在您的 PC 上的某个位置解压缩 zip 文件。
在命令提示符下,导航到 boost 顶级目录。
运行 .\bootstrap.bat(这会生成 b2 可执行文件)
运行 .\b2 (这会生成阶段目录和内容,需要几分钟才能运行)
设置 BOOST_ROOT 环境变量,例如 set BOOST_ROOT=C:\your\path\to\boost\boost_1_72_0\boost_1_72_0
运行 pip install turbodbc
日志:
ERROR: Command errored out with exit status 1:
command: 'c:\program files (x86)\python37-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\T520039\\AppData\\Local\\Temp\\pip-install-ygq7y7mq\\turbodbc_95189c73717d4250b2f0b71bfa796492\\setup.py'"'"'; __file__='"'"'C:\\Users\\T520039\\AppData\\Local\\Temp\\pip-install-ygq7y7mq\\turbodbc_95189c73717d4250b2f0b71bfa796492\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\T520039\AppData\Local\Temp\pip-record-1w0ch0u5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\program files (x86)\python37-32\Include\turbodbc'
cwd: C:\Users\T520039\AppData\Local\Temp\pip-install-ygq7y7mq\turbodbc_95189c73717d4250b2f0b71bfa796492\
Complete output (85 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\turbodbc
copying turbodbc\api_constants.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\connect.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\connection.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\constructors.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\cursor.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\data_types.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\exceptions.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\options.py -> build\lib.win32-3.7\turbodbc
copying turbodbc\__init__.py -> build\lib.win32-3.7\turbodbc
running egg_info
writing turbodbc.egg-info\PKG-INFO
writing dependency_links to turbodbc.egg-info\dependency_links.txt
writing requirements to turbodbc.egg-info\requires.txt
writing top-level names to turbodbc.egg-info\top_level.txt
reading manifest file 'turbodbc.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'turbodbc.egg-info\SOURCES.txt'
running build_ext
building 'turbodbc_intern' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
creating build\temp.win32-3.7\Release\src\cpp_odbc
creating build\temp.win32-3.7\Release\src\cpp_odbc\level1
creating build\temp.win32-3.7\Release\src\cpp_odbc\level2
creating build\temp.win32-3.7\Release\src\cpp_odbc\level3
creating build\temp.win32-3.7\Release\src\turbodbc
creating build\temp.win32-3.7\Release\src\turbodbc\descriptions
creating build\temp.win32-3.7\Release\src\turbodbc\field_translators
creating build\temp.win32-3.7\Release\src\turbodbc\parameter_sets
creating build\temp.win32-3.7\Release\src\turbodbc\result_sets
creating build\temp.win32-3.7\Release\src\turbodbc_python
creating build\temp.win32-3.7\Release\src\turbodbc_python\python_bindings
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\column_description.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\column_description.obj -DNOMINMAX
column_description.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\connection.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\connection.obj -DNOMINMAX
connection.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\cpp_odbc.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\cpp_odbc.obj -DNOMINMAX
cpp_odbc.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\environment.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\environment.obj -DNOMINMAX
environment.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\error.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\error.obj -DNOMINMAX
error.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\make_environment.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\make_environment.obj -DNOMINMAX
make_environment.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\multi_value_buffer.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\multi_value_buffer.obj -DNOMINMAX
multi_value_buffer.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\statement.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\statement.obj -DNOMINMAX
statement.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level1\api.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level1\api.obj -DNOMINMAX
api.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level1\level1.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level1\level1.obj -DNOMINMAX
level1.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level1\unixodbc_backend.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level1\unixodbc_backend.obj -DNOMINMAX
unixodbc_backend.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level1\unixodbc_backend_debug.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level1\unixodbc_backend_debug.obj -DNOMINMAX
unixodbc_backend_debug.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level2\api.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level2\api.obj -DNOMINMAX
api.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level2\handles.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level2\handles.obj -DNOMINMAX
handles.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level2\input_string_buffer.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level2\input_string_buffer.obj -DNOMINMAX
input_string_buffer.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level2\input_u16string_buffer.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level2\input_u16string_buffer.obj -DNOMINMAX
input_u16string_buffer.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iinclude/ -IC:\Users\T520039\AppData\Roaming\Python\Python37\site-packages\pybind11\include -IC:\Users\T520039\Downloads\boost_1_77_0\boost_1_77_0 "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsrc\cpp_odbc\level2\level1_connector.cpp /Fobuild\temp.win32-3.7\Release\src\cpp_odbc\level2\level1_connector.obj -DNOMINMAX
level1_connector.cpp
src\cpp_odbc\level2\level1_connector.cpp(184): warning C4267: 'argument': conversion from 'size_t' to 'SQLSMALLINT', possible loss of data
src\cpp_odbc\level2\level1_connector.cpp(233): error C2664: 'SQLRETURN cpp_odbc::level1::api::bind_column(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLPOINTER,SQLINTEGER,SQLINTEGER *) const': cannot convert argument 6 from 'intptr_t *' to 'SQLINTEGER *'
src\cpp_odbc\level2\level1_connector.cpp(239): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
include/cpp_odbc/level1/api.h(70): note: see declaration of 'cpp_odbc::level1::api::bind_column'
src\cpp_odbc\level2\level1_connector.cpp(233): error C2737: 'return_code': const object must be initialized
src\cpp_odbc\level2\level1_connector.cpp(242): error C3536: 'return_code': cannot be used before it is initialized
src\cpp_odbc\level2\level1_connector.cpp(247): error C2664: 'SQLRETURN cpp_odbc::level1::api::bind_parameter(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLUINTEGER,SQLSMALLINT,SQLPOINTER,SQLINTEGER,SQLINTEGER *) const': cannot convert argument 10 from 'intptr_t *' to 'SQLINTEGER *'
src\cpp_odbc\level2\level1_connector.cpp(257): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
include/cpp_odbc/level1/api.h(75): note: see declaration of 'cpp_odbc::level1::api::bind_parameter'
src\cpp_odbc\level2\level1_connector.cpp(247): error C2737: 'return_code': const object must be initialized
src\cpp_odbc\level2\level1_connector.cpp(260): error C3536: 'return_code': cannot be used before it is initialized
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\program files (x86)\python37-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\T520039\\AppData\\Local\\Temp\\pip-install-ygq7y7mq\\turbodbc_95189c73717d4250b2f0b71bfa796492\\setup.py'"'"'; __file__='"'"'C:\\Users\\T520039\\AppData\\Local\\Temp\\pip-install-ygq7y7mq\\turbodbc_95189c73717d4250b2f0b71bfa796492\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\T520039\AppData\Local\Temp\pip-record-1w0ch0u5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\program files (x86)\python37-32\Include\turbodbc' Check the logs for full command output.