ERROR: Command errored out with exit status 1:
command: /home/anaconda3/envs/OTA/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/thomas/cvpods/setup.py'"'"'; file='"'"'/home/thomas/cvpods/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/thomas/cvpods/
Complete output (82 lines):
which: no hipcc in (/home/anaconda3/envs/OTA/bin:/home/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
running develop
running egg_info
writing cvpods.egg-info/PKG-INFO
writing dependency_links to cvpods.egg-info/dependency_links.txt
writing requirements to cvpods.egg-info/requires.txt
writing top-level names to cvpods.egg-info/top_level.txt
reading manifest file 'cvpods.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'cvpods.egg-info/SOURCES.txt'
running build_ext
building 'cvpods._C' extension
Emitting ninja build file /home/thomas/cvpods/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/1] /home/anaconda3/envs/OTA/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/anaconda3/envs/OTA/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/anaconda3/envs/OTA/include -fPIC -I/home/thomas/cvpods/cvpods/layers/csrc -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/TH -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC -I/home/anaconda3/envs/OTA/include/python3.7m -c -c /home/thomas/cvpods/cvpods/layers/csrc/vision.cpp -o /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o
/home/anaconda3/envs/OTA/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/anaconda3/envs/OTA/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/anaconda3/envs/OTA/include -fPIC -I/home/thomas/cvpods/cvpods/layers/csrc -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/TH -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC -I/home/anaconda3/envs/OTA/include/python3.7m -c -c /home/thomas/cvpods/cvpods/layers/csrc/vision.cpp -o /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC/THCGeneral.h:7,
from /home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC/THC.h:4,
from /home/thomas/cvpods/cvpods/layers/csrc/PSROIPool/psroi_pool_cuda.h:4,
from /home/thomas/cvpods/cvpods/layers/csrc/vision.cpp:15:
/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/c10/cuda/CUDAStream.h:6:10: fatal error: cuda_runtime_api.h: No such file or directory
6 | #include
| ^~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1400, in _run_ninja_build
check=True)
File "/home/anaconda3/envs/OTA/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/thomas/cvpods/setup.py", line 192, in <module>
"tools/pods_debug",
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/root/.local/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 580, in build_extensions
build_ext.build_extensions(self)
File "/root/.local/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/home/anaconda3/envs/OTA/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 423, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1140, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1413, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension
----------------------------------------
ERROR: Command errored out with exit status 1: /home/anaconda3/envs/OTA/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/thomas/cvpods/setup.py'"'"'; file='"'"'/home/thomas/cvpods/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
@zengarden 麻烦问下这是什么原因啊,折磨了好久了
ERROR: Command errored out with exit status 1: command: /home/anaconda3/envs/OTA/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/thomas/cvpods/setup.py'"'"'; file='"'"'/home/thomas/cvpods/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps cwd: /home/thomas/cvpods/ Complete output (82 lines): which: no hipcc in (/home/anaconda3/envs/OTA/bin:/home/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin) running develop running egg_info writing cvpods.egg-info/PKG-INFO writing dependency_links to cvpods.egg-info/dependency_links.txt writing requirements to cvpods.egg-info/requires.txt writing top-level names to cvpods.egg-info/top_level.txt reading manifest file 'cvpods.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'cvpods.egg-info/SOURCES.txt' running build_ext building 'cvpods._C' extension Emitting ninja build file /home/thomas/cvpods/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/1] /home/anaconda3/envs/OTA/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/anaconda3/envs/OTA/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/anaconda3/envs/OTA/include -fPIC -I/home/thomas/cvpods/cvpods/layers/csrc -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/TH -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC -I/home/anaconda3/envs/OTA/include/python3.7m -c -c /home/thomas/cvpods/cvpods/layers/csrc/vision.cpp -o /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o /home/anaconda3/envs/OTA/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/anaconda3/envs/OTA/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/anaconda3/envs/OTA/include -fPIC -I/home/thomas/cvpods/cvpods/layers/csrc -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/TH -I/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC -I/home/anaconda3/envs/OTA/include/python3.7m -c -c /home/thomas/cvpods/cvpods/layers/csrc/vision.cpp -o /home/thomas/cvpods/build/temp.linux-x86_64-3.7/home/thomas/cvpods/cvpods/layers/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ In file included from /home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC/THCGeneral.h:7, from /home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/THC/THC.h:4, from /home/thomas/cvpods/cvpods/layers/csrc/PSROIPool/psroi_pool_cuda.h:4, from /home/thomas/cvpods/cvpods/layers/csrc/vision.cpp:15: /home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/include/c10/cuda/CUDAStream.h:6:10: fatal error: cuda_runtime_api.h: No such file or directory 6 | #include
| ^
~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/anaconda3/envs/OTA/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1400, in _run_ninja_build check=True) File "/home/anaconda3/envs/OTA/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.ERROR: Command errored out with exit status 1: /home/anaconda3/envs/OTA/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/thomas/cvpods/setup.py'"'"'; file='"'"'/home/thomas/cvpods/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. @zengarden 麻烦问下这是什么原因啊,折磨了好久了