PJLab-ADG/nr3d_lib

ERROR about installation!

CeoiZidung opened this issue · 5 comments

Hi~
it seems that i cannot install nr3d_lib by simply typing "pip install -v .", it comes with errors like this
"ERROR: Could not build wheels for nr3d-lib, which is required to install pyproject.toml-based projects"
Can u help me with that? Thanks in advance.

Hi, can you provide a description of your environment and the detailed traceback ? thanks

Most likely you should clone nr3d_lib with --recurse-submodules. Sorry I forgot to mention it in the readme.

If you have already cloned, you can use git submodule update --init --recursive to clone the submodules.

@ventusff Hi, I have came across a similar problem and it seems to be related to a missing source file and can be solved by adding
os.path.join(csrc_dir, "sphere_trace", "src", "ray_march.cu"), after line 392, setup.py.

I have the same problem, I totally followed the guidance in readme, my OS is ubuntu22.04 on WSL and conda enviroment is: python=3.8 pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3, and I installed cuda from Nvidia website which version is 11.3 when I use nvcc -V to check. Also I installed scatter and other pip packages. Version of gcc and g++ are both 9.4.

I used git submodule update --init --recursive but it didn't work.

ERROR is :
error: command '/usr/bin/g++' failed with exit code 1
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

ERROR: Failed building wheel for nr3d-lib
Running setup.py clean for nr3d-lib
Running command python setup.py clean
=> Targeting compute capability 75
running clean
removing 'build/temp.linux-x86_64-cpython-38' (and everything under it)
removing 'build/lib.linux-x86_64-cpython-38' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
removing 'build'
Failed to build nr3d-lib
ERROR: Could not build wheels for nr3d-lib, which is required to install pyproject.toml-based projects

I don't know how to solve it, it troubled me for several days, please help me, thank you very much.

I have the same problem, I totally followed the guidance in readme, my OS is ubuntu22.04 on WSL and conda enviroment is: python=3.8 pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3, and I installed cuda from Nvidia website which version is 11.3 when I use nvcc -V to check. Also I installed scatter and other pip packages. Version of gcc and g++ are both 9.4.

I used git submodule update --init --recursive but it didn't work.

ERROR is : error: command '/usr/bin/g++' failed with exit code 1 error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

ERROR: Failed building wheel for nr3d-lib Running setup.py clean for nr3d-lib Running command python setup.py clean => Targeting compute capability 75 running clean removing 'build/temp.linux-x86_64-cpython-38' (and everything under it) removing 'build/lib.linux-x86_64-cpython-38' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.8' does not exist -- can't clean it removing 'build' Failed to build nr3d-lib ERROR: Could not build wheels for nr3d-lib, which is required to install pyproject.toml-based projects

I don't know how to solve it, it troubled me for several days, please help me, thank you very much.

I tried again on colab and it worked, just follow readme