Open XiaoYuanJun-zy opened 8 months ago
@XiaoYuanJun-zy
I faced the same issue, and I fixed it by changing the environment settings. You could try different versions of CUDA and Python, and also check the gcc/g++ version to solve the problem
I fix up this problem by this article.
https://blog.csdn.net/BarryA11en/article/details/132894702
If you need to change GCC/G++ version, you can refer to this article.
Looking in indexes: https://mirrors.aliyun.com/pypi/simple Processing ./freqencoder Preparing metadata (setup.py) ... done Building wheels for collected packages: freqencoder Building wheel for freqencoder (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [90 lines of output] running bdist_wheel running build running build_ext /sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/utils/cpp_extension.py:820: UserWarning: There are no g++ version bounds defined for CUDA version 11.6 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building '_freqencoder' extension creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9 creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder creating /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src Emitting ninja build file /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] c++ -MMD -MF /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/bindings.o.d -pthread -B /sdc/home/zhaoyuan/anaconda3/envs/geneface2/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /sdc/home/zhaoyuan/anaconda3/envs/geneface2/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/include -fPIC -O2 -isystem /sdc/home/zhaoyuan/anaconda3/envs/geneface2/include -fPIC -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/TH -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/THC -I/sdc/home/zhaoyuan/CUDA/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/include/python3.9 -c -c /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/bindings.cpp -o /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/bindings.o -O3 -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_freqencoder -D_GLIBCXX_USE_CXX11_ABI=0 [2/2] /sdc/home/zhaoyuan/CUDA/bin/nvcc -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/TH -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/THC -I/sdc/home/zhaoyuan/CUDA/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/include/python3.9 -c -c /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/freqencoder.cu -o /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/freqencoder.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS__ -use_fast_math -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_freqencoder -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 FAILED: /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/freqencoder.o /sdc/home/zhaoyuan/CUDA/bin/nvcc -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/TH -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/THC -I/sdc/home/zhaoyuan/CUDA/include -I/sdc/home/zhaoyuan/anaconda3/envs/geneface2/include/python3.9 -c -c /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/freqencoder.cu -o /sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/build/temp.linux-x86_64-3.9/sdc/home/zhaoyuan/download/RAD-NeRF-main/freqencoder/src/freqencoder.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS__ -use_fast_math -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_freqencoder -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 /sdc/home/zhaoyuan/anaconda3/envs/geneface2/lib/python3.9/site-packages/torch/include/c10/core/SymInt.h(84): warning #68-D: integer conversion resulted in a change of sign
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for freqencoder Running setup.py clean for freqencoder Failed to build freqencoder ERROR: Could not build wheels for freqencoder, which is required to install pyproject.toml-based projects Looking in indexes: https://mirrors.aliyun.com/pypi/simple Processing ./shencoder Preparing metadata (setup.py) ... done Building wheels for collected packages: shencoder Building wheel for shencoder (setup.py) ... |^Z [3]+ Stopped bash scripts/install_ext.sh