JeffWang987 / OpenOccupancy

[ICCV 2023] OpenOccupancy: A Large Scale Benchmark for Surrounding Semantic Occupancy Perception
Apache License 2.0
590 stars 50 forks source link

OpenOccupancy-main$ python setup.py develop 报错 #51

Open zkailinzhang opened 5 months ago

zkailinzhang commented 5 months ago

iled: /opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/include/pybind11/detail/../cast.h: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = (! pybind11::detail::args_are_all_positional<{pybind11::object, pybind11::str}>()); _Tp = void]’: /opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/include/pybind11/detail/../cast.h:1611:11: required from ‘pybind11::object pybind11::detail::object_api::operator()(Args&& ...) const [with pybind11::return_value_policy policy = (pybind11::return_value_policy)1u; Args = {pybind11::object, pybind11::str}; Derived = pybind11::detail::accessor]’ /opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/include/pybind11/detail/../detail/../pytypes.h:1520:30: required from ‘pybind11::str pybind11::str::format(Args&& ...) const [with Args = {pybind11::object, pybind11::str}]’ /opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/include/pybind11/pybind11.h:1948:90: required from here /opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/include/pybind11/detail/../cast.h:1611:67: in constexpr expansion of ‘pybind11::detail::args_are_all_positional<{pybind11::object, pybind11::str}>()’ /opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/include/pybind11/detail/../cast.h:1611:11: error: constexpr call flows off the end of the function typename = enable_if_t<!args_are_all_positional()>> ^~~~ /opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/include/pybind11/detail/../cast.h:1611:11: note: in template argument for type ‘bool’ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "setup.py", line 45, in setup( File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/setuptools/init.py", line 159, in setup return distutils.core.setup(**attrs) File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run self.install_for_development() File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/setuptools/command/develop.py", line 114, in install_for_development self.run_command('build_ext') File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions build_ext.build_extensions(self) File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 202, in build_extension _build_ext.build_extension(self, ext) File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension objects = self.compiler.compile(sources, File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 658, in unix_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/opt/anaconda3/envs/py38_cu118_occ_zkl/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1909, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension