Skip to content
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

ERROR about installation! #2

Open
CeoiZidung opened this issue Aug 29, 2023 · 5 comments
Open

ERROR about installation! #2

CeoiZidung opened this issue Aug 29, 2023 · 5 comments

Comments

@CeoiZidung
Copy link

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.

@ventusff
Copy link
Contributor

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

@ventusff
Copy link
Contributor

ventusff commented Aug 29, 2023

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.

@ushio2021
Copy link

@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.

@wome1youka1gua
Copy link

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.

@wome1youka1gua
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants