-
Notifications
You must be signed in to change notification settings - Fork 73
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
install setup.py ERROR #26
Comments
This is not the right way to install. You should follow the instructions in INSTALL.md. Lines 20 to 32 in bcb6b16
Please use |
Thank you for your reply! I try it with python setup.py install. but i got 3 Error about CUDA ! I don't know Y? ~/AlphAction$ python setup.py install error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]’ without object error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’ without object My CUDA_HOME is this! (alphaction) zhangzhenbo@zhangzhenbo:~$ echo $LD_LIBRARY_PATH with this Error I work all of the day!!!!!!!!!!!!!! Thank you for your help!!!!!!!!!!!! |
I have the nvcc in the bin (alphaction) zhangzhenbo@zhangzhenbo:/usr/local/cuda-10.1/bin$ ls |
I'd recommend that you try the following steps to see what the problem is.
If these still not help you sort things out, please provide me with what you got in each step so that I will have more detailed information to assist. |
1 ### (alphaction) zhangzhenbo@:~/AlphAction$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver 2 ### (alphaction) zhangzhenbo@:~/AlphAction$ python -c 'from torch.utils.collect_env import main; main()' OS: Ubuntu 18.04.5 LTS Python version: 3.7 Versions of relevant libraries: 3 ### (alphaction) zhangzhenbo@:~/AlphAction$ pip install -e /home/zhangzhenbo/AlphAction Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
ERROR: Command errored out with exit status 1: /home/zhangzhenbo/anaconda3/envs/alphaction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/zhangzhenbo/AlphAction/setup.py'"'"'; file='"'"'/home/zhangzhenbo/AlphAction/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. |
. Falling back to using the slow distutils backend. could not found ninja ? command '/usr/local/cuda-10.1/bin/nvcc' failed with exit status 1? both them is the problem key? |
I've never met this problem before. Maybe you could try this? pytorch/vision#1893 (comment) Upgrade CUDA10.1 to the newest version 10.1.243. |
Hi,good morning!I solved that problem! this I update the CUDA-10.1.125 to CUDA-10.1.243 and then None Error, I compile it so good,I'm very happy and share with U of your help! |
Cheers! 🍻 😄 |
@yelantf My environment is :
My error log when installing setup.py :
|
@WinstonDeng So your nvcc tools is in V9.1? The nvcc version should be consistent with that built with PyTorch. You may need to install cudatoolkit with version 10.2 to make sure |
Thanks for your help! I finish it after updating my cuda envs. |
@yelantf 1. (alphaction) htw@medianet-MS-7885:~/AlphAction$ nvcc --version 2.(alphaction) htw@medianet-MS-7885:~/AlphAction$ python -c 'from torch.utils.collect_env import main; main()' OS: Ubuntu 18.04.5 LTS (x86_64) Python version: 3.7 (64-bit runtime) Nvidia driver version: 455.32.00 Versions of relevant libraries: 3.(alphaction) htw@medianet-MS-7885:~/AlphAction$ pip install -e .
ERROR: Command errored out with exit status 1: /home/htw/anaconda3/envs/alphaction/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/htw/AlphAction/setup.py'"'"'; file='"'"'/home/htw/AlphAction/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. |
Hi!thank you for the project, when I installing the setup.py file i meet ERROR, the ERROR is below, I hope you can help me。
g++: error: /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.o: No such file or directory
error: command 'g++' failed with exit status 1
(alphaction) zhangzhenbo@zhangzhenbo-TUF-Gaming-FX505GM-FX86FM:
/AlphAction$ g++ --version18.04) 7.5.0g++ (Ubuntu 7.5.0-3ubuntu1
Copyright (C) 2017 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.
(alphaction) zhangzhenbo@zhangzhenbo-TUF-Gaming-FX505GM-FX86FM:~/AlphAction$ python setup.py install
running install
running bdist_egg
running egg_info
writing alphaction.egg-info/PKG-INFO
writing dependency_links to alphaction.egg-info/dependency_links.txt
writing requirements to alphaction.egg-info/requires.txt
writing top-level names to alphaction.egg-info/top_level.txt
reading manifest file 'alphaction.egg-info/SOURCES.txt'
writing manifest file 'alphaction.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'alphaction._custom_cuda_ext' extension
Emitting ninja build file /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.1
g++ -pthread -shared -B /home/zhangzhenbo/anaconda3/envs/alphaction/compiler_compat -L/home/zhangzhenbo/anaconda3/envs/alphaction/lib -Wl,-rpath=/home/zhangzhenbo/anaconda3/envs/alphaction/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/vision.o /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.o /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.o /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.o /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.o -L/home/zhangzhenbo/anaconda3/envs/alphaction/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda-10.1/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.7/alphaction/_custom_cuda_ext.cpython-37m-x86_64-linux-gnu.so
g++: error: /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/SoftmaxFocalLoss_cuda.o: No such file or directory
g++: error: /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/SigmoidFocalLoss_cuda.o: No such file or directory
g++: error: /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/ROIPool3d_cuda.o: No such file or directory
g++: error: /home/zhangzhenbo/AlphAction/build/temp.linux-x86_64-3.7/home/zhangzhenbo/AlphAction/alphaction/csrc/cuda/ROIAlign3d_cuda.o: No such file or directory
error: command 'g++' failed with exit status 1
The text was updated successfully, but these errors were encountered: