Error Building Extensions
Muhammad0073121 opened this issue · 1 comments
RAD-NeRF$ pip install ./freqencoder
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
╰─> [69 lines of output]
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running bdist_wheel
running build
running build_ext
/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/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 /home/subzero/Documents/RAD-NeRF/freqencoder/build
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents/RAD-NeRF
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents/RAD-NeRF/freqencoder
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents/RAD-NeRF/freqencoder/src
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/home/subzero/Documents/RAD-NeRF/freqencoder/setup.py", line 49, in
'build_ext': BuildExtension,
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 765, in build_extensions
build_ext.build_extensions(self)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions
self._build_extensions_serial()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial
self.build_extension(ext)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 556, in build_extension
depends=ext.depends,
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 581, in unix_wrap_ninja_compile
cuda_post_cflags = unix_cuda_flags(cuda_post_cflags)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 480, in unix_cuda_flags
cflags + _get_cuda_arch_flags(cflags))
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1694, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
IndexError: list index out of range
[end of output]
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
Installing collected packages: freqencoder
Running setup.py install for freqencoder ... error
error: subprocess-exited-with-error
× Running setup.py install for freqencoder did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running install
/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_ext
/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/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 /home/subzero/Documents/RAD-NeRF/freqencoder/build
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents/RAD-NeRF
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents/RAD-NeRF/freqencoder
creating /home/subzero/Documents/RAD-NeRF/freqencoder/build/temp.linux-x86_64-cpython-37/home/subzero/Documents/RAD-NeRF/freqencoder/src
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/home/subzero/Documents/RAD-NeRF/freqencoder/setup.py", line 49, in
'build_ext': BuildExtension,
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/install.py", line 698, in run
self.run_command('build')
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
self.build_extensions()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 765, in build_extensions
build_ext.build_extensions(self)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 468, in build_extensions
self._build_extensions_serial()
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 494, in _build_extensions_serial
self.build_extension(ext)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 556, in build_extension
depends=ext.depends,
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 581, in unix_wrap_ninja_compile
cuda_post_cflags = unix_cuda_flags(cuda_post_cflags)
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 480, in unix_cuda_flags
cflags + _get_cuda_arch_flags(cflags))
File "/home/subzero/anaconda3/envs/rad-nerf/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1694, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
IndexError: list index out of range
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> freqencoder
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Have you solved this problem, I also encountered "File" C:\ applications\ anaconda3\ envs\ xuniren\ lib\ site-packages\ torch\ utils\ cpp_extension.py ", line 1773, in _get_cuda_arch_flags
arch_list [- 1 ] += '+ PTX'
IndexError: list index out of range "