Error while running CMAKE_PREFIX_PATH=$CONDA_PREFIX/lib/python3.9/site-packages/pybind11/share/cmake/pybind11 bash build_all_conda.sh
Environment: WSL2 Ubuntu 22.04, CUDA12.6, RTX4060, gcc=11.4.0, g++=11.4.0
Problem: When I execute the last step of the command I get an error:
(foundationpose) mony@Mony:~/cuda_project/FoundationPose$ CMAKE_PREFIX_PATH=$CONDA_PREFIX/lib/python3.9/site-packages/pybind11/share/cmake/pybind11 bash build_all_conda.sh -- 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: /home/mony/miniconda3/envs/foundationpose/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: /home/mony/miniconda3/envs/foundationpose/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: system program_options) (found version "1.74.0") Call Stack (most recent call first): /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.22/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args) CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/mony/cuda_project/FoundationPose/mycpp/build/CMakeFiles/CMakeOutput.log". Obtaining file:///home/mony/cuda_project/FoundationPose/bundlesdf/mycuda Preparing metadata (setup.py) ... done Installing collected packages: common DEPRECATION: Legacy editable install of common==0.0.0 from file:///home/mony/cuda_project/FoundationPose/bundlesdf/mycuda (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457 Running setup.py develop for common
`error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [180 lines of output]
/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cflags'
warnings.warn(msg)
/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cuda_cflags'
warnings.warn(msg)
running develop
/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
creating common.egg-info
writing common.egg-info/PKG-INFO
writing dependency_links to common.egg-info/dependency_links.txt
writing top-level names to common.egg-info/top_level.txt
writing manifest file 'common.egg-info/SOURCES.txt'
reading manifest file 'common.egg-info/SOURCES.txt'
writing manifest file 'common.egg-info/SOURCES.txt'
running build_ext
/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py:458: UserWarning: There are no g++ version bounds defined for CUDA version 12.6
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'common' extension
creating /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39
Emitting ninja build file /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] /usr/local/cuda-12.6/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/common.o.d -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/TH -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/usr/local/include/eigen3 -I/usr/include/eigen3 '-I/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/~/miniconda3/envs/foundationpose/include/eigen3' -I/home/mony/miniconda3/envs/foundationpose/include/python3.9 -I/home/mony/miniconda3/envs/foundationpose/include/python3.9 -c -c /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu -o /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/common.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -Xcompiler -O3 -std=c++17 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=common -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_89,code=sm_89
FAILED: /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/common.o
/usr/local/cuda-12.6/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/common.o.d -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/TH -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/usr/local/include/eigen3 -I/usr/include/eigen3 '-I/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/~/miniconda3/envs/foundationpose/include/eigen3' -I/home/mony/miniconda3/envs/foundationpose/include/python3.9 -I/home/mony/miniconda3/envs/foundationpose/include/python3.9 -c -c /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu -o /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/common.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -Xcompiler -O3 -std=c++17 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=common -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_89,code=sm_89
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(223): warning #20012-D: __host__ annotation is ignored on a function("DenseStorage") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage(const DenseStorage&) = default;
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(223): warning #20012-D: __device__ annotation is ignored on a function("DenseStorage") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage(const DenseStorage&) = default;
^
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(233): warning #20012-D: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage& operator=(const DenseStorage&) = default;
^
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(233): warning #20012-D: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage& operator=(const DenseStorage&) = default;
^
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(248): warning #20012-D: __host__ annotation is ignored on a function("DenseStorage") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage(DenseStorage&&) = default;
^
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(248): warning #20012-D: __device__ annotation is ignored on a function("DenseStorage") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage(DenseStorage&&) = default;
^
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(249): warning #20012-D: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage& operator=(DenseStorage&&) = default;
^
/usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h(249): warning #20012-D: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration
__attribute__((host)) __attribute__((device)) DenseStorage& operator=(DenseStorage&&) = default;
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(120): error: no suitable conversion function from "const at::DeprecatedTypeProperties" to "c10::ScalarType" exists
[&] { const auto& the_type = z_in_out.type(); constexpr const char* at_dispatch_name = "sample_rays_uniform_occupied_voxels_kernel"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }()
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(120): warning #2361-D: invalid narrowing conversion from "int" to "unsigned int"
[&] { const auto& the_type = z_in_out.type(); constexpr const char* at_dispatch_name = "sample_rays_uniform_occupied_voxels_kernel"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }()
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(120): warning #2361-D: invalid narrowing conversion from "int" to "unsigned int"
[&] { const auto& the_type = z_in_out.type(); constexpr const char* at_dispatch_name = "sample_rays_uniform_occupied_voxels_kernel"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }()
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(120): warning #2361-D: invalid narrowing conversion from "int" to "unsigned int"
[&] { const auto& the_type = z_in_out.type(); constexpr const char* at_dispatch_name = "sample_rays_uniform_occupied_voxels_kernel"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }()
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(120): warning #2361-D: invalid narrowing conversion from "int" to "unsigned int"
[&] { const auto& the_type = z_in_out.type(); constexpr const char* at_dispatch_name = "sample_rays_uniform_occupied_voxels_kernel"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(120), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }()
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(161): warning #2361-D: invalid narrowing conversion from "int" to "unsigned int"
dim3 blocks = {divCeil(n_unique_ids,threads.x)};
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(162): error: no suitable conversion function from "const at::DeprecatedTypeProperties" to "c10::ScalarType" exists
[&] { const auto& the_type = depth_in_out.type(); constexpr const char* at_dispatch_name = "postprocessOctreeRayTracingKernel"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(162), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { postprocessOctreeRayTracingKernel<scalar_t><<<blocks,threads>>>(ray_index.packed_accessor32<long,1,torch::RestrictPtrTraits>(), depth_in_out.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), unique_intersect_ray_ids.packed_accessor32<long,1,torch::RestrictPtrTraits>(), start_poss.packed_accessor32<long,1,torch::RestrictPtrTraits>(), depths_in_out_padded.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(162), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { postprocessOctreeRayTracingKernel<scalar_t><<<blocks,threads>>>(ray_index.packed_accessor32<long,1,torch::RestrictPtrTraits>(), depth_in_out.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), unique_intersect_ray_ids.packed_accessor32<long,1,torch::RestrictPtrTraits>(), start_poss.packed_accessor32<long,1,torch::RestrictPtrTraits>(), depths_in_out_padded.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(162), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }()
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(266): warning #2361-D: invalid narrowing conversion from "int" to "unsigned int"
dim3 blocks = {divCeil(int(hit_locations.sizes()[0]),threads.x)};
^
/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu(268): error: no suitable conversion function from "const at::DeprecatedTypeProperties" to "c10::ScalarType" exists
[&] { const auto& the_type = V.type(); constexpr const char* at_dispatch_name = "rayColorToTextureImageKernel"; at::ScalarType _st = ::detail::scalar_type(the_type); ; switch (_st) { case at::ScalarType::Double: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Double)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(268), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Double), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Double>; return ([&] { rayColorToTextureImageKernel<scalar_t><<<blocks,threads>>>(F.packed_accessor32<long,2,torch::RestrictPtrTraits>(), V.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), hit_locations.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), hit_face_ids.packed_accessor32<long,1,torch::RestrictPtrTraits>(), uvs_tex.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), uvs.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } case at::ScalarType::Float: { do { if constexpr (!at::should_include_kernel_dtype( at_dispatch_name, at::ScalarType::Float)) { if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(268), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", "dtype '", toString(at::ScalarType::Float), "' not selected for kernel tag ", at_dispatch_name))); }; } } while (0); using scalar_t [[maybe_unused]] = c10::impl::ScalarTypeToCPPTypeT<at::ScalarType::Float>; return ([&] { rayColorToTextureImageKernel<scalar_t><<<blocks,threads>>>(F.packed_accessor32<long,2,torch::RestrictPtrTraits>(), V.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), hit_locations.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), hit_face_ids.packed_accessor32<long,1,torch::RestrictPtrTraits>(), uvs_tex.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), uvs.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })(); } default: if (!(false)) { ::c10::detail::torchCheckFail( __func__, "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu", static_cast<uint32_t>(268), (::c10::detail::torchCheckMsgImpl( "Expected " "false" " to be true, but got false. " "(Could this error message be improved? If so, " "please report an enhancement request to PyTorch.)", '"', at_dispatch_name, "\" not implemented for '", toString(_st), "'"))); }; } }()
^
3 errors detected in the compilation of "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/common.cu".
[2/2] c++ -MMD -MF /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/bindings.o.d -pthread -B /home/mony/miniconda3/envs/foundationpose/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/mony/miniconda3/envs/foundationpose/include -I/home/mony/miniconda3/envs/foundationpose/include -fPIC -O2 -isystem /home/mony/miniconda3/envs/foundationpose/include -fPIC -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/TH -I/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.6/include -I/usr/local/include/eigen3 -I/usr/include/eigen3 '-I/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/~/miniconda3/envs/foundationpose/include/eigen3' -I/home/mony/miniconda3/envs/foundationpose/include/python3.9 -I/home/mony/miniconda3/envs/foundationpose/include/python3.9 -c -c /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/bindings.cpp -o /home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/bindings.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=common -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++17
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2209, in _run_ninja_build
subprocess.run(
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 35, in <module>
File "/home/mony/cuda_project/FoundationPose/bundlesdf/mycuda/setup.py", line 21, in <module>
setup(
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/dist.py", line 1104, in run_command
super().run_command(command)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/develop.py", line 35, in run
self.install_for_development()
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/develop.py", line 112, in install_for_development
self.run_command('build_ext')
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/dist.py", line 1104, in run_command
super().run_command(command)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 99, in run
_build_ext.run(self)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
self.build_extensions()
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 900, in build_extensions
build_ext.build_extensions(self)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 484, in build_extensions
self._build_extensions_serial()
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 510, in _build_extensions_serial
self.build_extension(ext)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 264, in build_extension
_build_ext.build_extension(self, ext)
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 565, in build_extension
objects = self.compiler.compile(
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 713, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1869, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/mony/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2225, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.`
There are several other similar errors under this log file: log2.txt
I've tried other methods and they don't work either, as follows:
I've found a solution.
progress: cuda version different API has been changed.
Here are the results of my replacement.
in common.cu(120):
AT_DISPATCH_FLOATING_TYPES(z_in_out.type(), ...) --> AT_DISPATCH_FLOATING_TYPES(z_in_out.scalar_type(), ...)
The rest are similar.
The code is as follows: `/*
- Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
- NVIDIA CORPORATION and its licensors retain all intellectual property
- and proprietary rights in and to this software, related documentation
- and any modifications thereto. Any use, reproduction, disclosure or
- distribution of this software and related documentation without an express
- license agreement from NVIDIA CORPORATION is strictly prohibited. */
#include <cuda.h>
#include <cuda_fp16.h>
#include <cuda_runtime.h>
#include <bits/stdc++.h>
#include <ATen/cuda/CUDAContext.h>
#include <torch/torch.h>
#include <stdint.h>
#include
/**
- @brief
- @tparam scalar_t
- @param z_sampled
- @param z_in_out
- @param z_vals
- @return global
*/
template
global void sample_rays_uniform_occupied_voxels_kernel(const torch::PackedTensorAccessor32<scalar_t,2,torch::RestrictPtrTraits> z_sampled, const torch::PackedTensorAccessor32<scalar_t,3,torch::RestrictPtrTraits> z_in_out, torch::PackedTensorAccessor32<scalar_t,2,torch::RestrictPtrTraits> z_vals) { const int i_ray = blockIdx.x * blockDim.x + threadIdx.x; const int i_sample = blockIdx.y * blockDim.y + threadIdx.y; if (i_ray>=z_sampled.size(0)) return; if (i_sample>=z_sampled.size(1)) return;
int i_box = 0; float z_remain = z_sampled[i_ray][i_sample]; auto z_in_out_cur_ray = z_in_out[i_ray]; const float eps = 1e-4; const int max_n_box = z_in_out.size(1);
if (z_in_out_cur_ray[0][0]==0) return;
while (1) { if (i_box>=max_n_box) { if (z_remain<=eps) { z_vals[i_ray][i_sample] = z_in_out_cur_ray[max_n_box-1][1]; } else { printf("ERROR sample_rays_uniform_occupied_voxels_kernel: z_remain=%f, i_ray=%d, i_sample=%d, i_box=%d, z_in_out_cur_ray=(%f,%f)\n",z_remain,i_ray,i_sample,i_box,z_in_out_cur_ray[i_box][0],z_in_out_cur_ray[i_box][1]); for (int i=0;i<z_in_out.size(1);i++) { printf("z_in_out_cur_ray[%d]=(%f,%f)\n",i,z_in_out_cur_ray[i][0],z_in_out_cur_ray[i][1]); } while (1){}; }
return;
}
if (z_in_out_cur_ray[i_box][0]==0)
{
if (z_remain<=eps && i_box>=1)
{
z_vals[i_ray][i_sample] = z_in_out_cur_ray[i_box-1][1];
return;
}
else
{
printf("ERROR sample_rays_uniform_occupied_voxels_kernel: z_remain=%f, i_ray=%d, i_sample=%d, i_box=%d, z_in_out_cur_ray=(%f,%f)\n",z_remain,i_ray,i_sample,i_box,z_in_out_cur_ray[i_box][0],z_in_out_cur_ray[i_box][1]);
for (int i=0;i<z_in_out.size(1);i++)
{
printf("z_in_out_cur_ray[%d]=(%f,%f)\n",i,z_in_out_cur_ray[i][0],z_in_out_cur_ray[i][1]);
}
while (1){};
}
}
float box_len = z_in_out_cur_ray[i_box][1]-z_in_out_cur_ray[i_box][0];
if (z_remain<=box_len)
{
z_vals[i_ray][i_sample] = z_in_out_cur_ray[i_box][0] + z_remain;
return;
}
z_remain -= box_len;
i_box++;
} }
at::Tensor sampleRaysUniformOccupiedVoxels(const at::Tensor z_in_out, const at::Tensor z_sampled, at::Tensor z_vals) { CHECK_INPUT(z_in_out); CHECK_INPUT(z_sampled); CHECK_INPUT(z_vals); AT_ASSERTM(z_vals.sizes()==z_sampled.sizes());
const int N_rays = z_sampled.sizes()[0]; const int N_samples = z_sampled.sizes()[1]; const int threadx = 32; const int thready = 32;
AT_DISPATCH_FLOATING_TYPES(z_in_out.scalar_type(), "sample_rays_uniform_occupied_voxels_kernel", ([&] { sample_rays_uniform_occupied_voxels_kernel<scalar_t><<<{divCeil(N_rays,threadx),divCeil(N_samples,thready)}, {threadx,thready}>>>(z_sampled.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(),z_in_out.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>(),z_vals.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); }));
return z_vals; }
template
int i_intersect = 0; auto cur_depths_in_out_padded = depths_in_out_padded[i_ray]; for (int i=start_poss[unique_id_pos];i<ray_index.size(0);i++) { if (ray_index[i]!=i_ray) break; if (depth_in_out[i][0]==0 || depth_in_out[i][1]==0) break; if (depth_in_out[i][0]>depth_in_out[i][1]) continue; if (abs(depth_in_out[i][1]-depth_in_out[i][0])<1e-4) continue;
cur_depths_in_out_padded[i_intersect][0] = depth_in_out[i][0];
cur_depths_in_out_padded[i_intersect][1] = depth_in_out[i][1];
i_intersect++;
} }
at::Tensor postprocessOctreeRayTracing(const at::Tensor ray_index, const at::Tensor depth_in_out, const at::Tensor unique_intersect_ray_ids, const at::Tensor start_poss, const int max_intersections, const int N_rays) { CHECK_INPUT(ray_index); CHECK_INPUT(depth_in_out); CHECK_INPUT(start_poss);
const int n_unique_ids = unique_intersect_ray_ids.sizes()[0]; at::Tensor depths_in_out_padded = at::zeros({N_rays,max_intersections,2}, torch::TensorOptions().dtype(torch::kFloat32).device(torch::kCUDA, 0).requires_grad(false)); dim3 threads = {256}; dim3 blocks = {divCeil(n_unique_ids,threads.x)}; AT_DISPATCH_FLOATING_TYPES(depth_in_out.scalar_type(), "postprocessOctreeRayTracingKernel", ([&] { postprocessOctreeRayTracingKernel<scalar_t><<<blocks,threads>>>(ray_index.packed_accessor32<long,1,torch::RestrictPtrTraits>(), depth_in_out.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), unique_intersect_ray_ids.packed_accessor32<long,1,torch::RestrictPtrTraits>(), start_poss.packed_accessor32<long,1,torch::RestrictPtrTraits>(), depths_in_out_padded.packed_accessor32<scalar_t,3,torch::RestrictPtrTraits>()); }));
return depths_in_out_padded; }
at::Tensor calculateBarycentricCoordinate3D(const at::Tensor &triangle, const at::Tensor &p) { auto vector_A = triangle[1]-triangle[2]; auto vector_B = triangle[1]-triangle[0]; auto normal = vector_A.cross(vector_B); auto areaABC = (normal * at::cross(triangle[1]-triangle[0], triangle[2]-triangle[0])).sum(); auto areaPBC = (normal * at::cross(triangle[1]-p, triangle[2]-p)).sum(); auto areaPCA = (normal * at::cross(triangle[2]-p, triangle[0]-p)).sum(); at::Tensor ws = at::zeros({3}).to(torch::kFloat32); ws[0] = areaPBC / areaABC; ws[1] = areaPCA / areaABC; ws[2] = 1-ws[0]-ws[1]; return ws; }
device Eigen::Vector3f calculateBarycentricCoordinate3DKernel(const Eigen::Matrix<float,3,3> &triangle, const Eigen::Vector3f &p) { Eigen::Vector3f vector_A = triangle.row(1)-triangle.row(2); Eigen::Vector3f vector_B = triangle.row(1)-triangle.row(0); Eigen::Vector3f normal = vector_A.cross(vector_B); float areaABC = (normal.array() * (triangle.row(1)-triangle.row(0)).cross(triangle.row(2)-triangle.row(0)).transpose().array()).sum(); float areaPBC = (normal.array() * (triangle.row(1).transpose()-p).cross(triangle.row(2).transpose()-p).array()).sum(); float areaPCA = (normal.array() * (triangle.row(2).transpose()-p).cross(triangle.row(0).transpose()-p).array()).sum(); Eigen::Vector3f w; w[0] = areaPBC / areaABC; w[1] = areaPCA / areaABC; w[2] = 1-w[0]-w[1]; return w;
}
device void calculateBarycentricCoordinate2DKernel(const Eigen::Matrix<float,3,2> &triangle, const Eigen::Vector2f &p, Eigen::Vector3f &w) { Eigen::Vector2f CA = triangle.row(0)-triangle.row(2); Eigen::Vector2f AC = -CA; Eigen::Vector2f CP = p-triangle.row(2).transpose(); Eigen::Vector2f AB = triangle.row(1)-triangle.row(0); Eigen::Vector2f AP = p-triangle.row(0).transpose(); Eigen::Matrix2f numerator, denominator; numerator << CA, CP; denominator<<AB, AC; w(1) = numerator.determinant()/denominator.determinant(); numerator << AB, AP; w(2) = numerator.determinant()/denominator.determinant(); w(0) = 1-w(1)-w(2); }
template
auto face = F[hit_face_ids[i_hit]]; Eigen::Matrix3f tri_v = Eigen::Matrix3f::Zero(); for (int r=0;r<3;r++) { for (int c=0;c<3;c++) { tri_v(r,c) = V[face[r]][c]; } } auto location = hit_locations[i_hit]; Eigen::Vector3f p(location[0], location[1], location[2]); auto w = calculateBarycentricCoordinate3DKernel(tri_v, p);
Eigen::Matrix<float,3,2> tri_uvs; for (int i=0;i<3;i++) { for (int j=0;j<2;j++) { tri_uvs(i,j) = uvs_tex[face[i]][j]; } }
Eigen::Vector2f cur_uv = tri_uvs.transpose() * w; uvs[i_hit][0] = cur_uv(0); uvs[i_hit][1] = cur_uv(1); }
void rayColorToTextureImageCUDA(const at::Tensor &F, const at::Tensor &V, const at::Tensor &hit_locations, const at::Tensor &hit_face_ids, const at::Tensor &uvs_tex, at::Tensor &uvs) { CHECK_CONTIGUOUS(F); CHECK_CONTIGUOUS(V); CHECK_CONTIGUOUS(hit_locations); CHECK_CONTIGUOUS(hit_face_ids); CHECK_CONTIGUOUS(uvs_tex);
dim3 threads = {512}; dim3 blocks = {divCeil(int(hit_locations.sizes()[0]),threads.x)};
AT_DISPATCH_FLOATING_TYPES(V.scalar_type(), "rayColorToTextureImageKernel", ([&] { rayColorToTextureImageKernel<scalar_t><<<blocks,threads>>>(F.packed_accessor32<long,2,torch::RestrictPtrTraits>(), V.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), hit_locations.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), hit_face_ids.packed_accessor32<long,1,torch::RestrictPtrTraits>(), uvs_tex.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>(), uvs.packed_accessor32<scalar_t,2,torch::RestrictPtrTraits>()); })); }
device bool isLineIntersectLine(Eigen::Vector2f l1p1, Eigen::Vector2f l1p2, Eigen::Vector2f l2p1, Eigen::Vector2f l2p2) { float q = (l1p1(1) - l2p1(1)) * (l2p2(0) - l2p1(0)) - (l1p1(0) - l2p1(0)) * (l2p2(1) - l2p1(1)); float d = (l1p2(0) - l1p1(0)) * (l2p2(1) - l2p1(1)) - (l1p2(1) - l1p1(1)) * (l2p2(0) - l2p1(0));
if ( d == 0 ) { return false; }
float r = q / d;
q = (l1p1(1) - l2p1(1)) * (l1p2(0) - l1p1(0)) - (l1p1(0) - l2p1(0)) * (l1p2(1) - l1p1(1)); float s = q / d;
if( r < 0 || r > 1 || s < 0 || s > 1 ) { return false; }
return true; }
device bool isLineIntersectSquare(const Eigen::Vector2f &la, const Eigen::Vector2f &lb, const Eigen::Vector2f &p0, const Eigen::Vector2f &p1, const Eigen::Vector2f &p2, const Eigen::Vector2f &p3) { return isLineIntersectLine(la, lb, p0, p1) || isLineIntersectLine(la, lb, p1, p2) || isLineIntersectLine(la, lb, p2, p3) || isLineIntersectLine(la, lb, p3, p0); }
device bool isPixelInsideTriangle(const Eigen::Matrix<float,3,2> &triangle, Eigen::Vector2f p, Eigen::Vector3f &w) { calculateBarycentricCoordinate2DKernel(triangle, p, w); for (int j=0;j<3;j++) { if (w(j)<0) return false; } return true; } `
The CUDA version of the torch installed in the requirement. txt file is 2.0.0+CU118. If the CUDA version installed by the system is not 11.8, this error will occur. Installing the same version of Torch as the CUDA system can solve this problem. For example,my CUDA version is 11.7, I need to uninstall the originally installed torch first, and then install the corresponding version of torch 11.7: pip unintall torch torchvision torchaudio pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 # CUDA 11.7
Hello. I also encountered this problem. My cuda-version is equal with torch. Is there any other solution here?
Hello. I also encountered this problem. My cuda-version is equal with torch. Is there any other solution here?
Hi, bro.Can you post a screenshot of your other questions? I'll see if I've had it before.
The CUDA version of the torch installed in the requirement. txt file is 2.0.0+CU118. If the CUDA version installed by the system is not 11.8, this error will occur. Installing the same version of Torch as the CUDA system can solve this problem. For example,my CUDA version is 11.7, I need to uninstall the originally installed torch first, and then install the corresponding version of torch 11.7: pip unintall torch torchvision torchaudio pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 # CUDA 11.7
Hi,Thanks for your answer, I tried to install cuda-11.8 on WSL2 before, but it ended up installing cuda-12.6 automatically, so I had to follow the cuda-12.x one.
The CUDA version of the torch installed in the requirement. txt file is 2.0.0+CU118. If the CUDA version installed by the system is not 11.8, this error will occur. Installing the same version of Torch as the CUDA system can solve this problem. For example,my CUDA version is 11.7, I need to uninstall the originally installed torch first, and then install the corresponding version of torch 11.7: pip unintall torch torchvision torchaudio pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 # CUDA 11.7
Hi,Thanks for your answer, I tried to install cuda-11.8 on WSL2 before, but it ended up installing cuda-12.6 automatically, so I had to follow the cuda-12.x one.
Maybe you can specify the installed cuda version to use by setting the environment variable,for example:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda-11.7/lib64
export PATH=/usr/local/cuda-11.7/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64:$LD_LIBRARY_PATH
The CUDA version of the torch installed in the requirement. txt file is 2.0.0+CU118. If the CUDA version installed by the system is not 11.8, this error will occur. Installing the same version of Torch as the CUDA system can solve this problem. For example,my CUDA version is 11.7, I need to uninstall the originally installed torch first, and then install the corresponding version of torch 11.7: pip unintall torch torchvision torchaudio pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 # CUDA 11.7
Hi,Thanks for your answer, I tried to install cuda-11.8 on WSL2 before, but it ended up installing cuda-12.6 automatically, so I had to follow the cuda-12.x one.
Maybe you can specify the installed cuda version to use by setting the environment variable,for example:
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda-11.7/lib64export PATH=/usr/local/cuda-11.7/bin:$PATHexport LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64:$LD_LIBRARY_PATH
Thanks. I'll try it.
Hello. I also encountered this problem. My cuda-version is equal with torch. Is there any other solution here?
Hi, bro.Can you post a screenshot of your other questions? I'll see if I've had it before.
Sorry, I didn't receive the message a few days ago. According to the response to this issue: https://github.com/NVlabs/FoundationPose/issues/346, I have now solved my problem. Thanks for your reply!
Hello. I also encountered this problem. My cuda-version is equal with torch. Is there any other solution here?
Hi, bro.Can you post a screenshot of your other questions? I'll see if I've had it before.
Sorry, I didn't receive the message a few days ago. According to the response to this issue: #346, I have now solved my problem. Thanks for your reply!
I looked at the relevant link you mentioned. Is your CUDA version 12.1? Why does my CUDA version 11.8, the same as the author's, still have this issue?
My cuda version is 11.8. I modify the install files according to the 4. Modify setup.py in CUDA Extension Folder (bundlesdf/mycuda/setup.py) in this link. Then, the installation success.
My cuda version is 11.8. I modify the install files according to the
4. Modify setup.py in CUDA Extension Folder (bundlesdf/mycuda/setup.py)in this link. Then, the installation success.
ok,thanks
My cuda version is 11.8 and already have installed the packages in requirement.txt. But I have a new question:
-- Configuring incomplete, errors occurred! Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda Preparing metadata (setup.py) ... done Installing collected packages: common DEPRECATION: Legacy editable install of common==0.0.0 from file:///home/abu2/FoundationPose-main/bundlesdf/mycuda (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457 Running setup.py develop for common error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [85 lines of output]
/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py:25: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
from pkg_resources import packaging # type: ignore[attr-defined]
/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cflags'
warnings.warn(msg)
/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cuda_cflags'
warnings.warn(msg)
running develop
/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``develop``.
Instead, use standards-based tools like pip or uv.
By 2025-Oct-31, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Checking if build backend supports build_editable: started
Checking if build backend supports build_editable: finished with status 'done'
Getting requirements to build editable: started
Getting requirements to build editable: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
Traceback (most recent call last):
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
return hook(config_settings)
File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 12, in <module>
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 35, in <module>
File "/home/abu2/FoundationPose-main/bundlesdf/mycuda/setup.py", line 21, in <module>
setup(
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/__init__.py", line 115, in setup
return distutils.core.setup(**attrs)
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/develop.py", line 39, in run
subprocess.check_call(cmd)
File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/abu2/anaconda3/envs/foundationpose/bin/python', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' 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: subprocess-exited-with-error
My cuda version is 11.8 and already have installed the packages in requirement.txt. But I have a new question:
-- Configuring incomplete, errors occurred! Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda Preparing metadata (setup.py) ... done Installing collected packages: common DEPRECATION: Legacy editable install of common==0.0.0 from file:///home/abu2/FoundationPose-main/bundlesdf/mycuda (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at pypa/pip#11457 Running setup.py develop for common error: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [85 lines of output] /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py:25: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import packaging # type: ignore[attr-defined] /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cflags' warnings.warn(msg) /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cuda_cflags' warnings.warn(msg) running develop /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. By 2025-Oct-31, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [19 lines of output] Traceback (most recent call last): File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 12, in <module> ModuleNotFoundError: No module named 'torch' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/home/abu2/FoundationPose-main/bundlesdf/mycuda/setup.py", line 21, in <module> setup( File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/__init__.py", line 115, in setup return distutils.core.setup(**attrs) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/dist.py", line 1102, in run_command super().run_command(command) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/develop.py", line 39, in run subprocess.check_call(cmd) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/abu2/anaconda3/envs/foundationpose/bin/python', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' 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: subprocess-exited-with-error
Hello, I have the same problem as you, please ask how you solved it ?thank you!
My cuda version is 11.8 and already have installed the packages in requirement.txt. But I have a new question:
-- Configuring incomplete, errors occurred! Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda Preparing metadata (setup.py) ... done Installing collected packages: common DEPRECATION: Legacy editable install of common==0.0.0 from file:///home/abu2/FoundationPose-main/bundlesdf/mycuda (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at pypa/pip#11457 Running setup.py develop for common error: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [85 lines of output] /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py:25: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import packaging # type: ignore[attr-defined] /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cflags' warnings.warn(msg) /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cuda_cflags' warnings.warn(msg) running develop /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. By 2025-Oct-31, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [19 lines of output] Traceback (most recent call last): File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 12, in <module> ModuleNotFoundError: No module named 'torch' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/home/abu2/FoundationPose-main/bundlesdf/mycuda/setup.py", line 21, in <module> setup( File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/__init__.py", line 115, in setup return distutils.core.setup(**attrs) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/dist.py", line 1102, in run_command super().run_command(command) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/develop.py", line 39, in run subprocess.check_call(cmd) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/abu2/anaconda3/envs/foundationpose/bin/python', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' 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: subprocess-exited-with-error
Hi,bro. I noticed that this error you provided mentions that pytorch is not installed:
File "<string>", line 12, in <module>
ModuleNotFoundError: No module named 'torch'
My cuda version is 11.8 and already have installed the packages in requirement.txt. But I have a new question: -- Configuring incomplete, errors occurred! Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda Preparing metadata (setup.py) ... done Installing collected packages: common DEPRECATION: Legacy editable install of common==0.0.0 from file:///home/abu2/FoundationPose-main/bundlesdf/mycuda (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at pypa/pip#11457 Running setup.py develop for common error: subprocess-exited-with-error
× python setup.py develop did not run successfully. │ exit code: 1 ╰─> [85 lines of output] /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py:25: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. from pkg_resources import packaging # type: ignore[attr-defined] /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cflags' warnings.warn(msg) /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'extra_cuda_cflags' warnings.warn(msg) running develop /home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. By 2025-Oct-31, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() Obtaining file:///home/abu2/FoundationPose-main/bundlesdf/mycuda Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [19 lines of output] Traceback (most recent call last): File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-jfp1b2i_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 12, in <module> ModuleNotFoundError: No module named 'torch' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/home/abu2/FoundationPose-main/bundlesdf/mycuda/setup.py", line 21, in <module> setup( File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/__init__.py", line 115, in setup return distutils.core.setup(**attrs) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands self.run_command(cmd) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/dist.py", line 1102, in run_command super().run_command(command) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command cmd_obj.run() File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/site-packages/setuptools/command/develop.py", line 39, in run subprocess.check_call(cmd) File "/home/abu2/anaconda3/envs/foundationpose/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/abu2/anaconda3/envs/foundationpose/bin/python', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' 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: subprocess-exited-with-error
Hello, I have the same problem as you, please ask how you solved it ?thank you!
Hi, I found that this error is due to pytorch not being installed, you can see if you didn't pick the right environment for anconda.
File "<string>", line 12, in <module>
ModuleNotFoundError: No module named 'torch'
Hello, I also have the same problem and I have confirm that my conda environment has installed pytorch, but still have this problem, How could I solve this? `python Python 3.11.14 | packaged by conda-forge | (main, Oct 13 2025, 14:09:32) [GCC 14.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. Ctrl click to launch VS Code Native REPL
import torch print(torch.version) <module 'torch.version' from '/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/torch/version.py'> `
` /home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !!
********************************************************************************
Please avoid running ``setup.py`` and ``develop``.
Instead, use standards-based tools like pip or uv.
By 2025-Oct-31, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///mnt/xuj/OnePoseviaGen/oneposeviagen/fpose/fpose/bundlesdf/mycuda
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Checking if build backend supports build_editable: started
Checking if build backend supports build_editable: finished with status 'done'
Getting requirements to build editable: started
Getting requirements to build editable: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 12, in <module>
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.`
Hello, I also have the same problem and I have confirm that my conda environment has installed pytorch, but still have this problem, How could I solve this? `python Python 3.11.14 | packaged by conda-forge | (main, Oct 13 2025, 14:09:32) [GCC 14.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. Ctrl click to launch VS Code Native REPL
import torch print(torch.version) <module 'torch.version' from '/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/torch/version.py'> `
` /home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !!
******************************************************************************** Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. By 2025-Oct-31, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Obtaining file:///mnt/xuj/OnePoseviaGen/oneposeviagen/fpose/fpose/bundlesdf/mycuda Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [23 lines of output] Traceback (most recent call last): File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 12, in <module> ModuleNotFoundError: No module named 'torch' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.`
I have fixed the issue by downgrading setuptools to version 79.0.1.
Hello, I also have the same problem and I have confirm that my conda environment has installed pytorch, but still have this problem, How could I solve this? `python Python 3.11.14 | packaged by conda-forge | (main, Oct 13 2025, 14:09:32) [GCC 14.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. Ctrl click to launch VS Code Native REPL
import torch print(torch.version) <module 'torch.version' from '/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/torch/version.py'> `
` /home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated. !!
******************************************************************************** Please avoid running ``setup.py`` and ``develop``. Instead, use standards-based tools like pip or uv. By 2025-Oct-31, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! self.initialize_options() Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Obtaining file:///mnt/xuj/OnePoseviaGen/oneposeviagen/fpose/fpose/bundlesdf/mycuda Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [23 lines of output] Traceback (most recent call last): File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/botler/miniforge3/envs/OnePoseviaGen/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-4trg90x7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 12, in <module> ModuleNotFoundError: No module named 'torch' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.`I have fixed the issue by downgrading setuptools to version 79.0.1.
Thinks!!!!