You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
参照文档:https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/build_and_install/gpu.md#python%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85
编译报错
命令如下:
python -m setup.py build
报错信息如下:
CMake Error at /home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
Python_LIBRARIES Interpreter Development Development.Module
Development.Embed)
Call Stack (most recent call first):
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPython.cmake:436 (find_package_handle_standard_args)
CMakeLists.txt:411 (find_package)
-- Configuring incomplete, errors occurred!
See also "/work/zyc/FastDeploy/python/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/work/zyc/FastDeploy/python/setup.py", line 445, in
setuptools.setup(
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 308, in run
self.run_command('cmake_build')
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 294, in run
subprocess.check_call(cmake_args)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/cmake-3.18.0-Linux-x86_64/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.10', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DBUILD_FASTDEPLOY_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=paddle2onnx', '-DPY_EXT_SUFFIX=.cpython-310-x86_64-linux-gnu.so', '-DCMAKE_BUILD_TYPE=Release', '-DLIBRARY_NAME=fastdeploy', '-DPY_LIBRARY_NAME=fastdeploy_main', '-DENABLE_TVM_BACKEND=OFF', '-DENABLE_RKNPU2_BACKEND=OFF', '-DENABLE_SOPHGO_BACKEND=OFF', '-DENABLE_ORT_BACKEND=ON', '-DENABLE_OPENVINO_BACKEND=ON', '-DENABLE_PADDLE_BACKEND=ON', '-DENABLE_POROS_BACKEND=OFF', '-DENABLE_TRT_BACKEND=ON', '-DENABLE_LITE_BACKEND=OFF', '-DENABLE_VISION=ON', '-DENABLE_ENCRYPTION=OFF', '-DENABLE_FLYCV=OFF', '-DENABLE_CVCUDA=OFF', '-DENABLE_TEXT=ON', '-DENABLE_BENCHMARK=OFF', '-DWITH_GPU=ON', '-DWITH_IPU=OFF', '-DWITH_OPENCL=OFF', '-DWITH_TIMVX=OFF', '-DWITH_DIRECTML=OFF', '-DWITH_ASCEND=OFF', '-DWITH_KUNLUNXIN=OFF', '-DRKNN2_TARGET_SOC=', '-DTRT_DIRECTORY=/Paddle/TensorRT-8.4.1.5', '-DCUDA_DIRECTORY=/usr/local/cuda', '-DOPENCV_DIRECTORY=', '-DORT_DIRECTORY=', '-DPADDLEINFERENCE_DIRECTORY=', '-DPADDLEINFERENCE_VERSION=', '-DPADDLEINFERENCE_URL=', '-DPADDLEINFERENCE_API_COMPAT_2_4_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_2_5_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_DEV=OFF', '-DPADDLEINFERENCE_API_CUSTOM_OP=OFF', '-DPADDLE2ONNX_URL=', '-DPADDLELITE_URL=', '-DBUILD_ON_JETSON=OFF', '-DBUILD_PADDLE2ONNX=OFF', '/work/zyc/FastDeploy']' returned non-zero exit status 1.
λ instance-3bwob41y-10 /work/zyc/FastDeploy/python python -V
Python 3.10.14
λ instance-3bwob41y-10 /work/zyc/FastDeploy/python git branch
develop
λ instance-3bwob41y-10 /work/zyc/FastDeploy/python python setup.py build
/work/zyc/FastDeploy/python/setup.py:28: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.spawn import find_executable
/work/zyc/FastDeploy/python/setup.py:29: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
from distutils import sysconfig, log
/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/_distutils_hack/init.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the distutils module in sys.modules. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
warnings.warn(
/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
running build
running build_py
running create_version
running cmake_build
Decompress file /work/zyc/FastDeploy/python/.setuptools-cmake-build/patchelf-0.15.0-x86_64.tar.gz ...
-- Use the default onnxruntime lib. The ONNXRuntime path: /work/zyc/FastDeploy/python/.setuptools-cmake-build/third_libs/install/onnxruntime
CMake Warning (dev) in cmake/paddle_inference.cmake:
A logical block opening on the line
with mis-matching arguments.
Call Stack (most recent call first):
CMakeLists.txt:245 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at cmake/paddle_inference.cmake:311 (message):
You are using PADDLEINFERENCE_API_COMPAT_2_5_x:2.5.0.558ae9cd11, force
PADDLEINFERENCE_API_CUSTOM_OP=ON
Call Stack (most recent call first):
CMakeLists.txt:245 (include)
Decompress file /work/zyc/FastDeploy/python/.setuptools-cmake-build/openvino-linux-x64-20230302.tgz ...
-- Could NOT find TBB (missing: TBB_DIR)
OPENVINO_LIBS = /work/zyc/FastDeploy/python/.setuptools-cmake-build/third_libs/install/openvino/runtime/lib/libopenvino.so;/work/zyc/FastDeploy/python/.setuptools-cmake-build/third_libs/install/openvino/runtime/3rdparty/omp/lib/libiomp5.so
-- CUDA compiler: /usr/local/cuda/bin/nvcc, version: NVIDIA 11.8.89
Using New Release Strategy - All Arches Packge
-- CUDA detected: 11.8.89
-- NVCC_FLAGS_EXTRA: -gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86
CMake Error at /home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
Python_LIBRARIES Interpreter Development Development.Module
Development.Embed)
Call Stack (most recent call first):
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPython.cmake:436 (find_package_handle_standard_args)
CMakeLists.txt:411 (find_package)
-- Configuring incomplete, errors occurred!
See also "/work/zyc/FastDeploy/python/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/work/zyc/FastDeploy/python/setup.py", line 445, in
setuptools.setup(
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 308, in run
self.run_command('cmake_build')
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 294, in run
subprocess.check_call(cmake_args)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/cmake-3.18.0-Linux-x86_64/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.10', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DBUILD_FASTDEPLOY_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=paddle2onnx', '-DPY_EXT_SUFFIX=.cpython-310-x86_64-linux-gnu.so', '-DCMAKE_BUILD_TYPE=Release', '-DLIBRARY_NAME=fastdeploy', '-DPY_LIBRARY_NAME=fastdeploy_main', '-DENABLE_TVM_BACKEND=OFF', '-DENABLE_RKNPU2_BACKEND=OFF', '-DENABLE_SOPHGO_BACKEND=OFF', '-DENABLE_ORT_BACKEND=ON', '-DENABLE_OPENVINO_BACKEND=ON', '-DENABLE_PADDLE_BACKEND=ON', '-DENABLE_POROS_BACKEND=OFF', '-DENABLE_TRT_BACKEND=ON', '-DENABLE_LITE_BACKEND=OFF', '-DENABLE_VISION=ON', '-DENABLE_ENCRYPTION=OFF', '-DENABLE_FLYCV=OFF', '-DENABLE_CVCUDA=OFF', '-DENABLE_TEXT=ON', '-DENABLE_BENCHMARK=OFF', '-DWITH_GPU=ON', '-DWITH_IPU=OFF', '-DWITH_OPENCL=OFF', '-DWITH_TIMVX=OFF', '-DWITH_DIRECTML=OFF', '-DWITH_ASCEND=OFF', '-DWITH_KUNLUNXIN=OFF', '-DRKNN2_TARGET_SOC=', '-DTRT_DIRECTORY=/Paddle/TensorRT-8.4.1.5', '-DCUDA_DIRECTORY=/usr/local/cuda', '-DOPENCV_DIRECTORY=', '-DORT_DIRECTORY=', '-DPADDLEINFERENCE_DIRECTORY=', '-DPADDLEINFERENCE_VERSION=', '-DPADDLEINFERENCE_URL=', '-DPADDLEINFERENCE_API_COMPAT_2_4_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_2_5_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_DEV=OFF', '-DPADDLEINFERENCE_API_CUSTOM_OP=OFF', '-DPADDLE2ONNX_URL=', '-DPADDLELITE_URL=', '-DBUILD_ON_JETSON=OFF', '-DBUILD_PADDLE2ONNX=OFF', '/work/zyc/FastDeploy']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered:
参照文档:https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/build_and_install/gpu.md#python%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85
编译报错
命令如下:
python -m setup.py build
报错信息如下:
CMake Error at /home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
Python_LIBRARIES Interpreter Development Development.Module
Development.Embed)
Call Stack (most recent call first):
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPython.cmake:436 (find_package_handle_standard_args)
CMakeLists.txt:411 (find_package)
-- Configuring incomplete, errors occurred!
See also "/work/zyc/FastDeploy/python/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/work/zyc/FastDeploy/python/setup.py", line 445, in
setuptools.setup(
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 308, in run
self.run_command('cmake_build')
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 294, in run
subprocess.check_call(cmake_args)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/cmake-3.18.0-Linux-x86_64/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.10', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DBUILD_FASTDEPLOY_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=paddle2onnx', '-DPY_EXT_SUFFIX=.cpython-310-x86_64-linux-gnu.so', '-DCMAKE_BUILD_TYPE=Release', '-DLIBRARY_NAME=fastdeploy', '-DPY_LIBRARY_NAME=fastdeploy_main', '-DENABLE_TVM_BACKEND=OFF', '-DENABLE_RKNPU2_BACKEND=OFF', '-DENABLE_SOPHGO_BACKEND=OFF', '-DENABLE_ORT_BACKEND=ON', '-DENABLE_OPENVINO_BACKEND=ON', '-DENABLE_PADDLE_BACKEND=ON', '-DENABLE_POROS_BACKEND=OFF', '-DENABLE_TRT_BACKEND=ON', '-DENABLE_LITE_BACKEND=OFF', '-DENABLE_VISION=ON', '-DENABLE_ENCRYPTION=OFF', '-DENABLE_FLYCV=OFF', '-DENABLE_CVCUDA=OFF', '-DENABLE_TEXT=ON', '-DENABLE_BENCHMARK=OFF', '-DWITH_GPU=ON', '-DWITH_IPU=OFF', '-DWITH_OPENCL=OFF', '-DWITH_TIMVX=OFF', '-DWITH_DIRECTML=OFF', '-DWITH_ASCEND=OFF', '-DWITH_KUNLUNXIN=OFF', '-DRKNN2_TARGET_SOC=', '-DTRT_DIRECTORY=/Paddle/TensorRT-8.4.1.5', '-DCUDA_DIRECTORY=/usr/local/cuda', '-DOPENCV_DIRECTORY=', '-DORT_DIRECTORY=', '-DPADDLEINFERENCE_DIRECTORY=', '-DPADDLEINFERENCE_VERSION=', '-DPADDLEINFERENCE_URL=', '-DPADDLEINFERENCE_API_COMPAT_2_4_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_2_5_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_DEV=OFF', '-DPADDLEINFERENCE_API_CUSTOM_OP=OFF', '-DPADDLE2ONNX_URL=', '-DPADDLELITE_URL=', '-DBUILD_ON_JETSON=OFF', '-DBUILD_PADDLE2ONNX=OFF', '/work/zyc/FastDeploy']' returned non-zero exit status 1.
λ instance-3bwob41y-10 /work/zyc/FastDeploy/python python -V
Python 3.10.14
λ instance-3bwob41y-10 /work/zyc/FastDeploy/python git branch
develop
λ instance-3bwob41y-10 /work/zyc/FastDeploy/python python setup.py build
/work/zyc/FastDeploy/python/setup.py:28: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.spawn import find_executable
/work/zyc/FastDeploy/python/setup.py:29: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
from distutils import sysconfig, log
/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/_distutils_hack/init.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the
distutils
module insys.modules
. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.warnings.warn(
/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
running build
running build_py
running create_version
running cmake_build
Decompress file /work/zyc/FastDeploy/python/.setuptools-cmake-build/patchelf-0.15.0-x86_64.tar.gz ...
-- Use the default onnxruntime lib. The ONNXRuntime path: /work/zyc/FastDeploy/python/.setuptools-cmake-build/third_libs/install/onnxruntime
CMake Warning (dev) in cmake/paddle_inference.cmake:
A logical block opening on the line
/work/zyc/FastDeploy/cmake/paddle_inference.cmake:71 (if)
closes on the line
/work/zyc/FastDeploy/cmake/paddle_inference.cmake:132 (endif)
with mis-matching arguments.
Call Stack (most recent call first):
CMakeLists.txt:245 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at cmake/paddle_inference.cmake:311 (message):
You are using PADDLEINFERENCE_API_COMPAT_2_5_x:2.5.0.558ae9cd11, force
PADDLEINFERENCE_API_CUSTOM_OP=ON
Call Stack (most recent call first):
CMakeLists.txt:245 (include)
Decompress file /work/zyc/FastDeploy/python/.setuptools-cmake-build/openvino-linux-x64-20230302.tgz ...
-- Could NOT find TBB (missing: TBB_DIR)
OPENVINO_LIBS = /work/zyc/FastDeploy/python/.setuptools-cmake-build/third_libs/install/openvino/runtime/lib/libopenvino.so;/work/zyc/FastDeploy/python/.setuptools-cmake-build/third_libs/install/openvino/runtime/3rdparty/omp/lib/libiomp5.so
-- CUDA compiler: /usr/local/cuda/bin/nvcc, version: NVIDIA 11.8.89
Using New Release Strategy - All Arches Packge
-- CUDA detected: 11.8.89
-- NVCC_FLAGS_EXTRA: -gencode arch=compute_50,code=sm_50 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86
CMake Error at /home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS
Python_LIBRARIES Interpreter Development Development.Module
Development.Embed)
Call Stack (most recent call first):
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/home/cmake-3.18.0-Linux-x86_64/share/cmake-3.18/Modules/FindPython.cmake:436 (find_package_handle_standard_args)
CMakeLists.txt:411 (find_package)
-- Configuring incomplete, errors occurred!
See also "/work/zyc/FastDeploy/python/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/work/zyc/FastDeploy/python/setup.py", line 445, in
setuptools.setup(
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 308, in run
self.run_command('cmake_build')
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools-68.2.2-py3.10.egg/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/work/zyc/FastDeploy/python/setup.py", line 294, in run
subprocess.check_call(cmake_args)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/cmake-3.18.0-Linux-x86_64/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.10', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DBUILD_FASTDEPLOY_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=paddle2onnx', '-DPY_EXT_SUFFIX=.cpython-310-x86_64-linux-gnu.so', '-DCMAKE_BUILD_TYPE=Release', '-DLIBRARY_NAME=fastdeploy', '-DPY_LIBRARY_NAME=fastdeploy_main', '-DENABLE_TVM_BACKEND=OFF', '-DENABLE_RKNPU2_BACKEND=OFF', '-DENABLE_SOPHGO_BACKEND=OFF', '-DENABLE_ORT_BACKEND=ON', '-DENABLE_OPENVINO_BACKEND=ON', '-DENABLE_PADDLE_BACKEND=ON', '-DENABLE_POROS_BACKEND=OFF', '-DENABLE_TRT_BACKEND=ON', '-DENABLE_LITE_BACKEND=OFF', '-DENABLE_VISION=ON', '-DENABLE_ENCRYPTION=OFF', '-DENABLE_FLYCV=OFF', '-DENABLE_CVCUDA=OFF', '-DENABLE_TEXT=ON', '-DENABLE_BENCHMARK=OFF', '-DWITH_GPU=ON', '-DWITH_IPU=OFF', '-DWITH_OPENCL=OFF', '-DWITH_TIMVX=OFF', '-DWITH_DIRECTML=OFF', '-DWITH_ASCEND=OFF', '-DWITH_KUNLUNXIN=OFF', '-DRKNN2_TARGET_SOC=', '-DTRT_DIRECTORY=/Paddle/TensorRT-8.4.1.5', '-DCUDA_DIRECTORY=/usr/local/cuda', '-DOPENCV_DIRECTORY=', '-DORT_DIRECTORY=', '-DPADDLEINFERENCE_DIRECTORY=', '-DPADDLEINFERENCE_VERSION=', '-DPADDLEINFERENCE_URL=', '-DPADDLEINFERENCE_API_COMPAT_2_4_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_2_5_x=OFF', '-DPADDLEINFERENCE_API_COMPAT_DEV=OFF', '-DPADDLEINFERENCE_API_CUSTOM_OP=OFF', '-DPADDLE2ONNX_URL=', '-DPADDLELITE_URL=', '-DBUILD_ON_JETSON=OFF', '-DBUILD_PADDLE2ONNX=OFF', '/work/zyc/FastDeploy']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: