Closed andylitalo closed 3 years ago
Which version failed?
0.7.0, but I just tried 0.7.2 and got another error (I posted it in the other issue but I'll repost here):
[5/9] Building CXX object CMakeFiles/_core.dir/Sources/py_bindings.cpp.o FAILED: CMakeFiles/_core.dir/Sources/py_bindings.cpp.o /usr/bin/c++ -D_core_EXPORTS -Igenerated -I../../../Sources/AsyncTokens -I../../../Sources/ProcessorAlgos -I../../../Sources/ProcessorTokenHandlers -I../../../Sources/Utility -isystem /usr/include/opencv4 -isystem /usr/include/python3.8 -isystem /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include -isystem /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/numpy/core/include -O3 -DNDEBUG -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -pthread -std=gnu++14 -MD -MT CMakeFiles/_core.dir/Sources/py_bindings.cpp.o -MF CMakeFiles/_core.dir/Sources/py_bindings.cpp.o.d -o CMakeFiles/_core.dir/Sources/py_bindings.cpp.o -c ../../../Sources/py_bindings.cpp ../../../Sources/py_bindings.cpp: In function ‘void pybind11_init_core(pybind11::module&)’: ../../../Sources/py_bindings.cpp:96:48: error: expected ‘)’ before ‘py’ 96 | note: 'args' should be a python dictionary" | ^ | ) 97 | py::args("function"), | ~~ ../../../Sources/py_bindings.cpp:92:7: note: to match this ‘(’ 92 | .def(py::init<py::function, | ^ ../../../Sources/py_bindings.cpp:98:20: error: no matching function for call to ‘pybind11::args::args(const char [5])’ 98 | py::args("args")); | ^ In file included from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/cast.h:13, from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13, from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:45, from ../../../Sources/Utility/ndarray_converter.h:23, from ../../../Sources/ProcessorAlgos/assign_bubbles_algo.h:7, from ../../../Sources/py_bindings.cpp:4: /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate: ‘pybind11::args::args()’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^
~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate expects 0 arguments, 1 provided /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate: ‘pybind11::args::args(pybind11::object&&)’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: no known conversion for argument 1 from ‘const char [5]’ to ‘pybind11::object&&’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate: ‘pybind11::args::args(const pybind11::object&)’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: no known conversion for argument 1 from ‘const char [5]’ to ‘const pybind11::object&’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~~~~ /tmp/pip-build-env-rsf8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate: ‘template<class Policy> pybind11::args::args(const pybind11::detail::accessor&)’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^ ~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: template argument deduction/substitution failed: ../../../Sources/pybindings.cpp:98:20: note: mismatched types ‘const pybind11::detail::accessor<Policy>’ and ‘const char [5]’ 98 | py::args("args")); | ^ In file included from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/cast.h:13, from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13, from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:45, from ../../../Sources/Utility/ndarray_converter.h:23, from ../../../Sources/ProcessorAlgos/assign_bubbles_algo.h:7, from ../../../Sources/py_bindings.cpp:4: /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate: ‘pybind11::args::args(pybind11::handle, pybind11::object::stolen_t)’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate expects 2 arguments, 1 provided /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate: ‘pybind11::args::args(pybind11::handle, pybind11::object::borrowed_t)’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate expects 2 arguments, 1 provided /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate: ‘pybind11::args::args(pybind11::handle, bool)’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:29: note: candidate expects 2 arguments, 1 provided In file included from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/cast.h:13, from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/attr.h:13, from /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pybind11.h:45, from ../../../Sources/Utility/ndarray_converter.h:23, from ../../../Sources/ProcessorAlgos/assign_bubbles_algo.h:7, from ../../../Sources/py_bindings.cpp:4: /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:7: note: candidate: ‘pybind11::args::args(const pybind11::args&)’ 1350 | class args : public tuple { PYBIND11_OBJECT_DEFAULT(args, tuple, PyTuple_Check) }; | ^~~~ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:7: note: no known conversion for argument 1 from ‘const char [5]’ to ‘const pybind11::args&’ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:7: note: candidate: ‘pybind11::args::args(pybind11::args&&)’ /tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/pybind11/include/pybind11/pytypes.h:1350:7: note: no known conversion for argument 1 from ‘const char [5]’ to ‘pybind11::args&&’ ../../../Sources/pybindings.cpp:101:13: error: ‘VidBubbleTrackPack’ was not declared in this scope 101 | py::class(mod, "VidBubbleTrackPack") | ^ ~~~~~ ../../../Sources/pybindings.cpp:101:31: error: template argument 1 is invalid 101 | py::class(mod, "VidBubbleTrackPack") | ^ ../../../Sources/py_bindings.cpp:130:27: error: ‘TrackBubbles’ was not declared in this scope 130 | mod.def("TrackBubbles", &TrackBubbles, "Track bubbles in an OpenCV video.", | ^ ~~~ [6/9] Building CXX object CMakeFiles/_core.dir/Sources/cv_vid_bg_helpers.cpp.o [7/9] Building CXX object CMakeFiles/_core.dir/Sources/cv_vid_bubbletrack_helpers.cpp.o ninja: build stopped: subcommand failed. File "/tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 589, in setup cmkr.make(make_args, env=env) File "/tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 496, in make raise SKBuildError(
Configuring Project Working directory: /tmp/pip-req-build-7mq4o6yj/_skbuild/linux-x86_64-3.8/cmake-build Command: cmake /tmp/pip-req-build-7mq4o6yj -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-req-build-7mq4o6yj/_skbuild/linux-x86_64-3.8/cmake-install/PySources/cvvidproc -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DPYTHON_VERSION_STRING:STRING=3.8.5 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-rs_f8g8g/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DCMAKE_BUILD_TYPE:STRING=Release
Traceback (most recent call last):
ERROR: Failed building wheel for cvvidproc Failed to build cvvidproc ERROR: Could not build wheels for cvvidproc which use PEP 517 and cannot be installed directly
I created a virtual environment with Python 3.8 containing only
numpy
,scikit-build
, andpybind11
, with the hard-coded reference to my OpenCV installation, and received a similar error message as when I installed in my standard environment. The last few lines seem most relevant (I've addressed the errors during the build in other issues). It says to check theCMake
output, but I can't figure out where that is:-- Trying "Ninja" generator
--
-- Trying "Ninja" generator - success
Configuring Project Working directory: /tmp/pip-req-build-0iv3byhy/_skbuild/linux-x86_64-3.8/cmake-build Command: cmake /tmp/pip-req-build-0iv3byhy -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-req-build-0iv3byhy/_skbuild/linux-x86_64-3.8/cmake-install/PySources/cvvidproc -DPYTHON_EXECUTABLE:FILEPATH=/mnt/c/Users/andyl/envs/cvkoe/bin/python -DPYTHON_VERSION_STRING:STRING=3.8.5 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-bxm2ypff/overlay/lib/python3.8/site-packages/skbuild/resources/cmake '-DCV_DIR:STRING='"'"'/mnt/c/Downloads/'"'"'' '-DCV_INSTALL_DIR:STRING='"'"'/mnt/c/Downloads/opencv/build/'"'"'' -DCMAKE_BUILD_TYPE:STRING=Release
Traceback (most recent call last):
An error occurred while building with CMake. Command: cmake --build . --target install --config Release -- Source directory: /tmp/pip-req-build-0iv3byhy Working directory: /tmp/pip-req-build-0iv3byhy/_skbuild/linux-x86_64-3.8/cmake-build Please see CMake's output for more information.
ERROR: Failed building wheel for cvvidproc Failed to build cvvidproc ERROR: Could not build wheels for cvvidproc which use PEP 517 and cannot be installed directly