-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Last step issue!! #230
Comments
the same.still don't know how to fix it |
well, you should look at this issue. |
I have the similar problem as you have mentioned. For my situation, it turns out that the compiler selects wrong "Eigen3" library when compiling the code. It have selected the Eigen3 in "usr/local", which was previously built for other project, not the Eigen3 installed in the conda environment. So the "include_dirs" in "FoundationPose-main/bundlesdf/mycuda/setup.py" line 35 should be modified as "path/to/your/eigen3/in/anaconda". |
when i run this step # Build extensions
export CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH:/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/pybind11/share/cmake/pybind11"
bash build_all_conda.sh
it shows like:
[100%] Linking CXX shared module mycpp.cpython-39-x86_64-linux-gnu.so
[100%] Built target mycpp
Obtaining file:///home/dlweg/FoundationPose/bundlesdf/mycuda
Preparing metadata (setup.py) ... done
Installing collected packages: common
DEPRECATION: Legacy editable install of common==0.0.0 from file:///home/dlweg/FoundationPose/bundlesdf/mycuda (setup.py develop) is deprecated. pip 25.0 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
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/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py:398: UserWarning: There are no g++ version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'common' extension
creating /home/dlweg/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39
Emitting ninja build file /home/dlweg/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] /home/dlweg/FoundationPose/cuda-11.8/bin/nvcc -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/TH -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/THC -I/home/dlweg/FoundationPose/cuda-11.8/include -I/usr/local/include/eigen3 -I/usr/include/eigen3 -I/home/dlweg/miniconda3/envs/foundationpose/include/python3.9 -I/home/dlweg/miniconda3/envs/foundationpose/include/python3.9 -c -c /home/dlweg/FoundationPose/bundlesdf/mycuda/common.cu -o /home/dlweg/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++14 -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="cxxabi1011"' -DTORCH_EXTENSION_NAME=common -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
FAILED: /home/dlweg/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/common.o
/home/dlweg/FoundationPose/cuda-11.8/bin/nvcc -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/TH -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/THC -I/home/dlweg/FoundationPose/cuda-11.8/include -I/usr/local/include/eigen3 -I/usr/include/eigen3 -I/home/dlweg/miniconda3/envs/foundationpose/include/python3.9 -I/home/dlweg/miniconda3/envs/foundationpose/include/python3.9 -c -c /home/dlweg/FoundationPose/bundlesdf/mycuda/common.cu -o /home/dlweg/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++14 -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="_cxxabi1011"' -DTORCH_EXTENSION_NAME=common -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89
/home/dlweg/FoundationPose/bundlesdf/mycuda/common.cu:26:10: fatal error: Eigen/Dense: No such file or directory
26 | #include "Eigen/Dense"
| ^~~~~~~~~~~~~
compilation terminated.
[2/2] c++ -MMD -MF /home/dlweg/FoundationPose/bundlesdf/mycuda/build/temp.linux-x86_64-cpython-39/bindings.o.d -pthread -B /home/dlweg/miniconda3/envs/foundationpose/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/dlweg/miniconda3/envs/foundationpose/include -fPIC -O2 -isystem /home/dlweg/miniconda3/envs/foundationpose/include -fPIC -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/TH -I/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/include/THC -I/home/dlweg/FoundationPose/cuda-11.8/include -I/usr/local/include/eigen3 -I/usr/include/eigen3 -I/home/dlweg/miniconda3/envs/foundationpose/include/python3.9 -I/home/dlweg/miniconda3/envs/foundationpose/include/python3.9 -c -c /home/dlweg/FoundationPose/bundlesdf/mycuda/bindings.cpp -o /home/dlweg/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="_cxxabi1011"' -DTORCH_EXTENSION_NAME=common -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/dlweg/miniconda3/envs/foundationpose/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build
subprocess.run(
File "/home/dlweg/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.
note: This error originates from a subprocess, and is likely not a problem with pip.
The text was updated successfully, but these errors were encountered: