Open Soumya-Sharma-20 opened 1 year ago
I have the exact same issue too. I run the code on colab and it returns this error.
I have the exact same issue too. I run the code on colab and it returns this error.
You need to rebuild raymarching from scratch and then run the env again after installing packages, it will work , there might be some new version issues / compatibility issues because of which this issue occured
Same issue too, I noticed that "error: #error C++17 or later compatible compiler is required to use PyTorch.", and I am trying to resolve it
Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by python setup.py build_ext --inplace && pip install .
Same operation for gridencode, shencoder, and freqencoder
Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by
python setup.py build_ext --inplace && pip install .
Same operation for gridencode, shencoder, and freqencoder
This worked for me. Thank you very much!
Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by
python setup.py build_ext --inplace && pip install .
Same operation for gridencode, shencoder, and freqencoder
why i run python setup.py build_ext --inplace && pip install
.occurs the problem below?How can i solve it ?
running build_ext
Traceback (most recent call last):
File "setup.py", line 44, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 396, in build_extensions
self._check_abi()
File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 767, in _check_abi
check_compiler_abi_compatibility(compiler)
File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 300, in check_compiler_abi_compatibility
if not check_compiler_ok_for_platform(compiler):
File "/home/Newdisk2/benke/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 257, in check_compiler_ok_for_platform
which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT)
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['which', 'x86_64-linux-gnu-g++']' returned non-zero exit status 1.
Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by
python setup.py build_ext --inplace && pip install .
Same operation for gridencode, shencoder, and freqencoder
it works! thanks a lot
Change raymarching/backend.py, Line 7 & 13 and raymarching/setup.py, Line 8 & 14, "c++14" -> "c++17", and recompile it by
python setup.py build_ext --inplace && pip install .
Same operation for gridencode, shencoder, and freqencoder
I searched a lot of web pages to solve this problem, thank you very much for the solution, it works for me!
While running !python main_nerf.py data/specs1light2 --workspace data/specs1light2 --iters 15000 --num_steps 128 --upsample_steps 128 --fp16 --bound 1.0 --scale 0.8 --dt_gamma 0 --tcnn This issue occured.
**Even after verifying the gcc version , cudnn version , gpu version ,python and pyTorch compatibilities , the issue is not getting resolved . import torch print(torch.version) !g++ --version
2.1.0+cu118 g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
import torch print(torch.backends.cudnn.version()) 8700**
Can anyone help with the debugging of this issue?