pytracking icon indicating copy to clipboard operation
pytracking copied to clipboard

FAILED: prroi_pooling_gpu.o

Open mtmyyy opened this issue 2 years ago • 5 comments

Hi When I config the environment,I meet with the questions:

Building extension module _prroi_pooling... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/2] c++ -MMD -MF prroi_pooling_gpu.o.d -DTORCH_EXTENSION_NAME=_prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /cver/tcying/lib/python3.8/site-packages/torch/include -isystem /cver/tcying/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /cver/tcying/lib/python3.8/site-packages/torch/include/TH -isystem /cver/tcying/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda-11.3/include -isystem /usr/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /cver/tcying/ytc/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu.c -o prroi_pooling_gpu.o FAILED: prroi_pooling_gpu.o c++ -MMD -MF prroi_pooling_gpu.o.d -DTORCH_EXTENSION_NAME=_prroi_pooling -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /cver/tcying/lib/python3.8/site-packages/torch/include -isystem /cver/tcying/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /cver/tcying/lib/python3.8/site-packages/torch/include/TH -isystem /cver/tcying/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda-11.3/include -isystem /usr/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /cver/tcying/ytc/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu.c -o prroi_pooling_gpu.o In file included from /cver/tcying/lib/python3.8/site-packages/torch/include/torch/csrc/Device.h:3:0, from /cver/tcying/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8, from /cver/tcying/lib/python3.8/site-packages/torch/include/torch/extension.h:6, from /cver/tcying/ytc/pytracking/ltr/external/PreciseRoIPooling/pytorch/prroi_pool/src/prroi_pooling_gpu.c:12: /cver/tcying/lib/python3.8/site-packages/torch/include/torch/csrc/python_headers.h:10:10: 致命错误: Python.h:没有那个文件或目录 #include <Python.h> ^~~~~~~~~~ 编译中断。 ninja: build stopped: subcommand failed. Error building extension '_prroi_pooling' Done

and this is my environment , and I have already source ~/.bashrc.

export LD_LIBRARY_PATH=/usr/local/cuda-11.3/lib64:$LD_LIBRARY_PATH export PATH=/usr/local/cuda-11.3/bin:$PATH export CUDA_HOME=/usr/local/cuda-11.3

How can I solve it? Thanks

mtmyyy avatar Oct 12 '22 11:10 mtmyyy

I have the same question

mrk35353 avatar Nov 30 '22 03:11 mrk35353

same error when running run_video with dimp50

g8392 avatar Apr 23 '23 04:04 g8392

same error when running run_video with dimp50

Should upgrade you python, maybe your python lacks some header files

hphnngcquan avatar Apr 28 '23 02:04 hphnngcquan

same error when running run_video with dimp50

I forgot how to solve it specifically. It seems like it was resolved after I reinstalled the appropriate Pytorch or other configuration files

mtmyyy avatar Apr 28 '23 02:04 mtmyyy

does any one know how to solve it pls

AbdallahOmarAhmed avatar Mar 18 '24 01:03 AbdallahOmarAhmed