I am trying to install the most recent quickfix package 1.15.1 on python 3.10. I receive the following error:
(venv3.10) C:UserssDownloads>py -m pip install quickfix
Collecting quickfix
Using cached quickfix-1.15.1.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: quickfix
Building wheel for quickfix (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.10
copying quickfix.py -> buildlib.win-amd64-3.10
copying quickfixt11.py -> buildlib.win-amd64-3.10
copying quickfix40.py -> buildlib.win-amd64-3.10
copying quickfix41.py -> buildlib.win-amd64-3.10
copying quickfix42.py -> buildlib.win-amd64-3.10
copying quickfix43.py -> buildlib.win-amd64-3.10
copying quickfix44.py -> buildlib.win-amd64-3.10
copying quickfix50.py -> buildlib.win-amd64-3.10
copying quickfix50sp1.py -> buildlib.win-amd64-3.10
copying quickfix50sp2.py -> buildlib.win-amd64-3.10
running build_ext
Testing for std::tr1::shared_ptr...
"C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPYTHON_MAJOR_VERSION=3 -IC++ -IC:git
etffi_etfvenv3.10include -IC:UserssAppDataLocalProgramsPythonPython310include -IC:UserssAppDataLocalProgramsPythonPython310Include "-IC:Program Files (x86)
Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532ATLMFCinclude" "-IC:Progra
m Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22000.0ucrt" "-IC:Program Files (x86)Windows Kits10\incl
ude10.0.22000.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\winrt" "-IC:Program Files (x86)Wi
ndows Kits10\include10.0.22000.0\cppwinrt" "-IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum" /EHsc /Tptest_std_tr1_shared_ptr.cpp /Fotest_std_tr1_shared_ptr.obj
test_std_tr1_shared_ptr.cpp
test_std_tr1_shared_ptr.cpp(1): fatal error C1083: Cannot open include file: 'tr1/memory': No such file or directory
...not found
Testing for std::shared_ptr...
"C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532binHostX86x64cl.exe" -std=c++0x /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPYTHON_MAJOR_VERSION=3 -IC
++ -IC:gitetffi_etfvenv3.10include -IC:UserssAppDataLocalProgramsPythonPython310include -IC:UserssAppDataLocalProgramsPythonPython310Include "-IC:Program F
iles (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532ATLMFCinclude" "
-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22000.0ucrt" "-IC:Program Files (x86)Windows Ki
ts10\include10.0.22000.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\winrt" "-IC:Program Fil
es (x86)Windows Kits10\include10.0.22000.0\cppwinrt" "-IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum" /EHsc /Tptest_std_shared_ptr.cpp /Fotest_std_shared_ptr.obj
cl : Command line warning D9002 : ignoring unknown option '-std=c++0x'
test_std_shared_ptr.cpp
...found
Testing for std::unique_ptr...
"C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532binHostX86x64cl.exe" -std=c++0x /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPYTHON_MAJOR_VERSION=3 -DH
AVE_STD_SHARED_PTR -IC++ -IC:gitetffi_etfvenv3.10include -IC:UserssAppDataLocalProgramsPythonPython310include -IC:UserssAppDataLocalProgramsPythonPython310I
nclude "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.3
2532ATLMFCinclude" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22000.0ucrt" "-IC:Program
Files (x86)Windows Kits10\include10.0.22000.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\wi
nrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\cppwinrt" "-IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum" /EHsc /Tptest_std_unique_ptr.cpp /Fotest_std_unique
_ptr.obj
cl : Command line warning D9002 : ignoring unknown option '-std=c++0x'
test_std_unique_ptr.cpp
...found
creating buildtemp.win-amd64-3.10
creating buildtemp.win-amd64-3.10Release
creating buildtemp.win-amd64-3.10ReleaseC++
"C:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532binHostX86x64cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPYTHON_MAJOR_VERSION=3 -DHAVE_STD_SHA
RED_PTR -DHAVE_STD_UNIQUE_PTR -IC++ -IC:gitetffi_etfvenv3.10include -IC:UserssAppDataLocalProgramsPythonPython310include -IC:UserssAppDataLocalProgramsPython
Python310Include "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsMSVC14.36.32532include" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCToolsM
SVC14.36.32532ATLMFCinclude" "-IC:Program Files (x86)Microsoft Visual Studio2022BuildToolsVCAuxiliaryVSinclude" "-IC:Program Files (x86)Windows Kits10include10.0.22000.0ucrt" "-I
C:Program Files (x86)Windows Kits10\include10.0.22000.0\um" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\shared" "-IC:Program Files (x86)Windows Kits10\include10.0.
22000.0\winrt" "-IC:Program Files (x86)Windows Kits10\include10.0.22000.0\cppwinrt" "-IC:Program Files (x86)Windows KitsNETFXSDK4.8includeum" /EHsc /TpC++Acceptor.cpp /Fobuildtemp.
win-amd64-3.10ReleaseC++Acceptor.obj -std=c++0x -Wno-deprecated -Wno-unused-variable -Wno-deprecated-declarations -Wno-maybe-uninitialized
cl : Command line error D8021 : invalid numeric argument '/Wno-deprecated'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for quickfix
Running setup.py clean for quickfix
Failed to build quickfix
ERROR: Could not build wheels for quickfix, which is required to install pyproject.toml-based projects
From what I understand the library is trying to use a ‘/Wno-deprecated’ command that isn’t being recognized, but I don’t fully understand what is going on nor no I understand how to fix it. Any help would be appreciated.
2
Answers
The problem is not related to pip. It’s likely related to deprecated code.
The issue is related to usage of ‘-Wno-deprecated-declaration’, which can be fixed using ‘-Wdeprecated-declaration’. read this
You can do above corrections and build and install it as mentioned. here
the problem is not related to pip. itl likely related to deprecated code…, but i normaly use wtfix python library instead of quickfix.