-
Notifications
You must be signed in to change notification settings - Fork 444
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
[Solved] Failed to build tinycudann; Could not build wheels for tinycudann; Could not find filesystem; xxx.so.xx no such file or directory #337
Comments
Cheers!!! At least now I've temporarily solved the problem. Background & Solution
Here Attention
If you do met the similar problem but cannot figure out what that website says, you can read stuffs below
Tthen you may find some Forgive me for my looooong comment, because for a novice like me it's realy sad to read a solution which is quite simple and effective but puzzles me... T^T |
Hi There,
Perhaps, you might want to create your conda environment and installation in interactive mode (using salloc). This will help you better to identify where your installation problems are. Hope this helps. |
Thank you very much for your thorough answer!!! I've solved the problem and learned a lot from your comment!!! |
Thank you very much for sharing! This method successfully solved my problem. |
I found that directly using these commands can also work: |
Congratulations! 🎉 For me, I've already added these paths before but still met those terrifying problems. So I had to try other methods to solve them. 😜 |
Oh, the command |
Thank you so much! When I changed to a different version, I encountered the above problem again and applied your method to solve it. |
I encounter the same error about
My Solution: |
My problems have been solved!
If you met similar problems as below, maybe my experience could help you out~
Problem-Cause-Solution
Basic problem:
Failed to build tinycudann
andCould not build wheels for tinycudann
...gcc -v
orgcc --version
. These problems arise due to low gcc version (<8). Here I referred to the CSDN blog about filesystem&gcc and stackoverflow.ldd <path/to/cc1plus>
, where you should replace<path/to/ccqplus>
by the correct path in your error information. e.g. For the example above, it should beldd /mnt/petrelfs/share/gcc/gcc-8.5.0/libexec/gcc/x86_64-pc-linux-gnu/8.5.0/cc1plus
.libmpfr.so.1 => not found
. Check the output carefully and you may find the other line in the form oflibmpfr.so.1 => <a/thorough/path>
. Copy the correct path and check it if neccessary using commandscd <that/paht>
and 'ls' (Remember to 'cd' back afterwards!).LD_LIBRARY_PATH
:export LD_LIBRARY_PATH=<path>:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
. (I use cluster, so if you are not, just add it/them to your environmental variables.)The Original Description (modified a little)
Background
I just wanted to try threestudio, so I followed its directions and installed pytorch before install the requirements. In its requirements.txt is "git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch", but I failed at this step.
I had to install tiny-cuda-nn in the cluster. By setting the environmental variables (export xxx=xxx), I made cuda=11.3 and gcc=7.5.0. These settings used to prove successful but I don't know why it should fail after I reinstalled conda and reset the environments... Or maybe it is because I killed a terminal by closing the VS code (at that time I successfully built the PyTorch extension for tiny-cuda-nn)?
I have no idea but to delete the folder, clone it again, reinstall conda and reset all the environments... But I just got errors again and again! Could someone help me out? Pleeeease!
Besides, I used
srun
to run the process:In the terminal (I hided the partition):
srun -p xxx --gres=gpu:0 --ntasks-per-node=1 python tmp.py
My settings:
python=3.9.16
cuda=11.3
gcc=7.5.0
torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1
pip=23.1.2
setuptools=67.8.0
wheel=0.38.4
Important Outputs (I think)
What I've tried
Below is the whole info (except that of srun):**(I think I've hided all my information..)
The text was updated successfully, but these errors were encountered: