Closed zhouliu closed 3 weeks ago
Hi, @zhouliu ! If you're using Windows, I will have no idea to assist as dv_toolkit
is not designed for Windows. For Ubuntu, could you provide more details? I recently installed dv_toolkit
again on a new device without encountering the error you described. This additional information would help diagnose the issue. Thanks!
Hi, @KugaMaxx! I failed to build the wheel for dv-toolkit either, and my issue may be the same as @zhouliu ! My system is Ununtu22.04 and I strictly followed the steps in Readme. When executing the following pip command,
pip install external/dv-toolkit/.
The complete log is as below.
Processing ./external/dv-toolkit
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.24 in /home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages (from dv_toolkit==0.1.0) (1.24.4)
Collecting dv_processing>=1.7 (from dv_toolkit==0.1.0)
Using cached dv_processing-1.7.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (228 bytes)
Collecting plotly>=5.17 (from dv_toolkit==0.1.0)
Using cached plotly-5.22.0-py3-none-any.whl.metadata (7.1 kB)
Collecting matplotlib>=3.7 (from dv_toolkit==0.1.0)
Using cached matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (5.7 kB)
Collecting contourpy>=1.0.1 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached contourpy-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.9 kB)
Collecting cycler>=0.10 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached fonttools-4.53.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (162 kB)
Collecting kiwisolver>=1.0.1 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached kiwisolver-1.4.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.metadata (6.4 kB)
Collecting packaging>=20.0 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pillow>=6.2.0 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached pillow-10.3.0-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Collecting python-dateutil>=2.7 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting importlib-resources>=3.2.0 (from matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached importlib_resources-6.4.0-py3-none-any.whl.metadata (3.9 kB)
Collecting tenacity>=6.2.0 (from plotly>=5.17->dv_toolkit==0.1.0)
Using cached tenacity-8.4.1-py3-none-any.whl.metadata (1.2 kB)
Collecting zipp>=3.1.0 (from importlib-resources>=3.2.0->matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached zipp-3.19.2-py3-none-any.whl.metadata (3.6 kB)
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib>=3.7->dv_toolkit==0.1.0)
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached dv_processing-1.7.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.3 MB)
Using cached matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB)
Using cached plotly-5.22.0-py3-none-any.whl (16.4 MB)
Using cached contourpy-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301 kB)
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Using cached fonttools-4.53.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB)
Using cached importlib_resources-6.4.0-py3-none-any.whl (38 kB)
Using cached kiwisolver-1.4.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached pillow-10.3.0-cp38-cp38-manylinux_2_28_x86_64.whl (4.5 MB)
Using cached pyparsing-3.1.2-py3-none-any.whl (103 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached tenacity-8.4.1-py3-none-any.whl (27 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached zipp-3.19.2-py3-none-any.whl (9.0 kB)
Building wheels for collected packages: dv_toolkit
Building wheel for dv_toolkit (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [163 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/dv_toolkit
copying python/src/dv_toolkit/__init__.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit
creating build/lib.linux-x86_64-cpython-38/dv_toolkit/plot
copying python/src/dv_toolkit/plot/__init__.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot
copying python/src/dv_toolkit/plot/player.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot
creating build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/__init__.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/func.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/go_player.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/mp_player.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
running build_ext
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- TOOLKIT_ENABLE_SAMPLES OFF
-- TOOLKIT_ENABLE_PYTHON ON
CMake Warning at /usr/share/cmake-3.22/Modules/FindBoost.cmake:1369 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindBoost.cmake:1492 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.22/Modules/FindBoost.cmake:2102 (_Boost_MISSING_DEPENDENCIES)
/usr/lib/x86_64-linux-gnu/cmake/dv-processing/dv-processing-config.cmake:29 (FIND_PACKAGE)
CMakeLists.txt:23 (find_package)
-- Found Boost: /opt/inivation/boost/include (found suitable version "1.80.0", minimum required is "1.76") found components: nowide
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.2")
-- Found OpenCV: /usr (found version "4.5.4")
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (PkgConfig)
does not match the name of the calling package (dv-processing). This can
lead to problems in calling code that expects `find_package` result
variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
/usr/lib/x86_64-linux-gnu/cmake/dv-processing/dv-processing-config.cmake:54 (INCLUDE)
CMakeLists.txt:23 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'liblz4'
-- Found liblz4, version 1.9.3
-- Compiler cache enabled: /usr/bin/ccache
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of void *
-- Check size of void * - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Linker flag --as-needed enabled
-- Project name is: dv-toolkit
-- Project version is: 0.1.0
-- Build type is: Release
-- Compiler is Clang: FALSE
-- Compiler is GCC: TRUE
-- Compiler is IntelCC: FALSE
-- Compiler is MS VisualC: FALSE
-- OS is Unix: TRUE
-- OS is Linux: TRUE
-- OS is MacOS: FALSE
-- OS is Windows: FALSE
-- System is big-endian: 0
-- Thread support is PThreads: TRUE
-- Thread support is Win32 Threads: FALSE
-- Thread support libraries:
-- Current C flags are:
-- Current CXX flags are:
-- Final install bindir is: /usr/local/bin
-- Final install libdir is: /usr/local/lib
-- Final install includedir is: /usr/local/include
-- Found Python3: /home/fdzhu/miniconda3/envs/emlb/bin/python (found version "3.8.19") found components: Interpreter Development Development.Module Development.Embed
-- pybind11 v2.11.1
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Configuring done
CMake Error at /usr/share/cmake-3.22/Modules/FindPython/Support.cmake:3330 (add_library):
Target "_lib_toolkit" links to target "PkgConfig::libzstd" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPython3.cmake:494 (__Python3_add_library)
python/external/pybind11/tools/pybind11NewTools.cmake:189 (python3_add_library)
python/src/CMakeLists.txt:1 (pybind11_add_module)
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
PYTHON_EXECUTABLE
CMake Generate step failed. Build files cannot be regenerated correctly.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/fdzhu/workspace/cuke-emlb/external/dv-toolkit/setup.py", line 188, in <module>
setup(
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 368, in run
self.run_command("build")
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 91, in run
_build_ext.run(self)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
self._build_extensions_serial()
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
self.build_extension(ext)
File "/home/fdzhu/workspace/cuke-emlb/external/dv-toolkit/setup.py", line 132, in build_extension
ret = subprocess.run(["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True)
File "/home/fdzhu/miniconda3/envs/emlb/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '/home/fdzhu/workspace/cuke-emlb/external/dv-toolkit', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/fdzhu/workspace/cuke-emlb/external/dv-toolkit/build/lib.linux-x86_64-cpython-38/dv_toolkit/lib', '-DPYTHON_EXECUTABLE=/home/fdzhu/miniconda3/envs/emlb/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DPython3_EXECUTABLE=/home/fdzhu/miniconda3/envs/emlb/bin/python', '-DTOOLKIT_ENABLE_SAMPLES=OFF', '-DTOOLKIT_ENABLE_PYTHON=ON']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dv_toolkit
Running setup.py clean for dv_toolkit
Failed to build dv_toolkit
ERROR: Could not build wheels for dv_toolkit, which is required to install pyproject.toml-based projects
And the main error is the CMake error when linking Target "_lib_toolkit" links to target "PkgConfig::libzstd". I'm sure the "libzstd" is installed.
CMake Error at /usr/share/cmake-3.22/Modules/FindPython/Support.cmake:3330 (add_library):
Target "_lib_toolkit" links to target "PkgConfig::libzstd" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPython3.cmake:494 (__Python3_add_library)
python/external/pybind11/tools/pybind11NewTools.cmake:189 (python3_add_library)
python/src/CMakeLists.txt:1 (pybind11_add_module)
The /usr/share/cmake-3.22/Modules/FindPython3.cmake:494 (Python3_add_library) is " Python3_add_library (Python3 ${ARGV})"
if (COMMAND __Python3_add_library)
macro (Python3_add_library)
__Python3_add_library (Python3 ${ARGV})
endmacro()
endif()
The " python/external/pybind11/tools/pybind11NewTools.cmake:189 (python3_add_library)" is " python3_add_library(${target_name} ${lib_type} ${ARG_UNPARSED_ARGUMENTS}) "
if("${_Python}" STREQUAL "Python")
python_add_library(${target_name} ${lib_type} ${ARG_UNPARSED_ARGUMENTS})
elseif("${_Python}" STREQUAL "Python3")
python3_add_library(${target_name} ${lib_type} ${ARG_UNPARSED_ARGUMENTS})
else()
message(FATAL_ERROR "Cannot detect FindPython version: ${_Python}")
endif()
And the CMakeLists.txt in python/src/ is
add_subdirectory(denoisors)
I'm wondering whether this CMake error is because Versions of my cmake(3.22), python(3.8) and pybind11(2.11.1) are not compatible.
I've spent 2 days on this error :( , could you please help me and give some advices?
Hi, @ZFD-1 ! Have you tried the solution methioned at https://github.com/KugaMaxx/cuke-emlb/issues/3#issuecomment-1970555265 ?
Sorry, I didn't notice the comment in that closed issue. I've tried the solution and it works well for me. Thank you so much!
Hi, @zhouliu! Please try to pull the latest commit. It should resolve the issue you've been experiencing.
Hi, @KugaMaxx! I have tried the solution at #3 and the latest commit again. But unfortunately it is not work for me. My system is Ubuntu 20.04 and I followed the steps in Readme.
pip install external/dv-toolkit/.
Processing ./external/dv-toolkit
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.24 in /home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages (from dv_toolkit==0.1.2) (1.24.4)
Collecting dv_processing>=1.7 (from dv_toolkit==0.1.2)
Using cached dv_processing-1.7.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (228 bytes)
Collecting plotly>=5.17 (from dv_toolkit==0.1.2)
Using cached plotly-5.22.0-py3-none-any.whl.metadata (7.1 kB)
Collecting matplotlib>=3.7 (from dv_toolkit==0.1.2)
Using cached matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (5.7 kB)
Collecting contourpy>=1.0.1 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached contourpy-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.9 kB)
Collecting cycler>=0.10 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached fonttools-4.53.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (162 kB)
Collecting kiwisolver>=1.0.1 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached kiwisolver-1.4.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.metadata (6.4 kB)
Collecting packaging>=20.0 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pillow>=6.2.0 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached pillow-10.3.0-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Collecting python-dateutil>=2.7 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting importlib-resources>=3.2.0 (from matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached importlib_resources-6.4.0-py3-none-any.whl.metadata (3.9 kB)
Collecting tenacity>=6.2.0 (from plotly>=5.17->dv_toolkit==0.1.2)
Using cached tenacity-8.4.2-py3-none-any.whl.metadata (1.2 kB)
Collecting zipp>=3.1.0 (from importlib-resources>=3.2.0->matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached zipp-3.19.2-py3-none-any.whl.metadata (3.6 kB)
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib>=3.7->dv_toolkit==0.1.2)
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached dv_processing-1.7.9-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.3 MB)
Using cached matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB)
Using cached plotly-5.22.0-py3-none-any.whl (16.4 MB)
Using cached contourpy-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (301 kB)
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Using cached fonttools-4.53.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB)
Using cached importlib_resources-6.4.0-py3-none-any.whl (38 kB)
Using cached kiwisolver-1.4.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached pillow-10.3.0-cp38-cp38-manylinux_2_28_x86_64.whl (4.5 MB)
Using cached pyparsing-3.1.2-py3-none-any.whl (103 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached tenacity-8.4.2-py3-none-any.whl (28 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached zipp-3.19.2-py3-none-any.whl (9.0 kB)
Building wheels for collected packages: dv_toolkit
Building wheel for dv_toolkit (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [173 lines of output]
Detected installation of g++10, it will be used for compilation
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/dv_toolkit
copying python/src/dv_toolkit/__init__.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit
creating build/lib.linux-x86_64-cpython-38/dv_toolkit/plot
copying python/src/dv_toolkit/plot/player.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot
copying python/src/dv_toolkit/plot/__init__.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot
creating build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/mp_player.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/go_player.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/func.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
copying python/src/dv_toolkit/plot/tools/__init__.py -> build/lib.linux-x86_64-cpython-38/dv_toolkit/plot/tools
running build_ext
-- The C compiler identification is GNU 10.5.0
-- The CXX compiler identification is GNU 10.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-10 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++-10 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- TOOLKIT_ENABLE_SAMPLES OFF
-- TOOLKIT_ENABLE_PYTHON ON
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'liblz4'
-- Found liblz4, version 1.9.2
-- Checking for module 'libzstd'
-- Found libzstd, version 1.4.4
CMake Warning at /usr/share/cmake-3.22/Modules/FindBoost.cmake:1369 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindBoost.cmake:1492 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.22/Modules/FindBoost.cmake:2102 (_Boost_MISSING_DEPENDENCIES)
/usr/lib/x86_64-linux-gnu/cmake/dv-processing/dv-processing-config.cmake:29 (FIND_PACKAGE)
CMakeLists.txt:28 (find_package)
-- Found Boost: /opt/inivation/boost/include (found suitable version "1.80.0", minimum required is "1.76") found components: nowide
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1f")
-- Found OpenCV: /usr (found version "4.2.0")
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (PkgConfig)
does not match the name of the calling package (dv-processing). This can
lead to problems in calling code that expects `find_package` result
variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
/usr/lib/x86_64-linux-gnu/cmake/dv-processing/dv-processing-config.cmake:49 (INCLUDE)
CMakeLists.txt:28 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (PkgConfig)
does not match the name of the calling package (dv-processing). This can
lead to problems in calling code that expects `find_package` result
variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
/usr/lib/x86_64-linux-gnu/cmake/dv-processing/dv-processing-config.cmake:58 (INCLUDE)
CMakeLists.txt:28 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of void *
-- Check size of void * - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Linker flag --as-needed enabled
-- Project name is: dv-toolkit
-- Project version is: 0.1.2
-- Build type is: Release
-- Compiler is Clang: FALSE
-- Compiler is GCC: TRUE
-- Compiler is IntelCC: FALSE
-- Compiler is MS VisualC: FALSE
-- OS is Unix: TRUE
-- OS is Linux: TRUE
-- OS is MacOS: FALSE
-- OS is Windows: FALSE
-- System is big-endian: 0
-- Thread support is PThreads: TRUE
-- Thread support is Win32 Threads: FALSE
-- Thread support libraries: -lpthread
-- Current C flags are:
-- Current CXX flags are:
-- Final install bindir is: /usr/local/bin
-- Final install libdir is: /usr/local/lib
-- Final install includedir is: /usr/local/include
-- Found Python3: /home/liuzhou/anaconda3/envs/emlb/bin/python (found version "3.8.19") found components: Interpreter Development.Module NumPy
CMake Error at python/CMakeLists.txt:3 (add_subdirectory):
The source directory
/home/liuzhou/Codes/cuke-emlb-main/external/dv-toolkit/python/external/pybind11
does not contain a CMakeLists.txt file.
CMake Error at python/src/CMakeLists.txt:1 (pybind11_add_module):
Unknown CMake command "pybind11_add_module".
-- Configuring incomplete, errors occurred!
See also "/home/liuzhou/Codes/cuke-emlb-main/external/dv-toolkit/build/temp.linux-x86_64-cpython-38/_lib_toolkit/CMakeFiles/CMakeOutput.log".
See also "/home/liuzhou/Codes/cuke-emlb-main/external/dv-toolkit/build/temp.linux-x86_64-cpython-38/_lib_toolkit/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/liuzhou/Codes/cuke-emlb-main/external/dv-toolkit/setup.py", line 188, in <module>
setup(
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 368, in run
self.run_command("build")
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 91, in run
_build_ext.run(self)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
self._build_extensions_serial()
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
self.build_extension(ext)
File "/home/liuzhou/Codes/cuke-emlb-main/external/dv-toolkit/setup.py", line 132, in build_extension
ret = subprocess.run(["cmake", ext.sourcedir, *cmake_args], cwd=build_temp, check=True)
File "/home/liuzhou/anaconda3/envs/emlb/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '/home/liuzhou/Codes/cuke-emlb-main/external/dv-toolkit', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/liuzhou/Codes/cuke-emlb-main/external/dv-toolkit/build/lib.linux-x86_64-cpython-38/dv_toolkit/lib', '-DPYTHON_EXECUTABLE=/home/liuzhou/anaconda3/envs/emlb/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DPython3_EXECUTABLE=/home/liuzhou/anaconda3/envs/emlb/bin/python', '-DTOOLKIT_ENABLE_SAMPLES=OFF', '-DTOOLKIT_ENABLE_PYTHON=ON', '-DCMAKE_C_COMPILER=gcc-10', '-DCMAKE_CXX_COMPILER=g++-10']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dv_toolkit
Running setup.py clean for dv_toolkit
Failed to build dv_toolkit
ERROR: Could not build wheels for dv_toolkit, which is required to install pyproject.toml-based projects
Could you please give some advises?
Thank you very much for your patience and help!
Dear @zhouliu , please run git submodule update --init --recursive
first.
If this issue persists, please check if your ./external/dv-toolkit/python/external/pybind11
directory is empty, so that we can find a further solution.
Dear @KugaMaxx , that works for me!!
Thanks for your help! You are a really nice person!
Hello! @KugaMaxx , I have this error when I install dv-toolkit as adviced in readme.
And i get the following error message.
Could you help me to solve this problem?
Thanks a lot.