RuntimeError: Error compiling objects for extension
My original environment was able to run normally, but later my computer had a problem and the environment became unusable. I need to reinstall the environment now, and the installation steps are the same as before. Win10 system installation pytorch 1.7.0, mmcv=1.4.0, mmdetection=2.17.0. But every time it installs mmcv, the following error occurs, and I don't quite understand where the problem lies. I hope you can help me, thank you!
`(BoostingRCNN) PS D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0> python setup.py build_ext D:\Anaconda3\envs\BoostingRCNN\lib\site-packages\setuptools\installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. SetuptoolsDeprecationWarning, running build_ext D:\Anaconda3\envs\BoostingRCNN\lib\site-packages\torch\utils\cpp_extension.py:274: UserWarning: Error checking compiler version for cl: 'utf-8' codec can't decode byte 0xd3 in position 0: invalid continuation byte warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building 'mmcv._ext' extension creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7 creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release\mmcv creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release\mmcv\ops creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release\mmcv\ops\csrc creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release\mmcv\ops\csrc\pytorch creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release\mmcv\ops\csrc\pytorch\cpu creating D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release\mmcv\ops\csrc\pytorch\cuda Emitting ninja build file D:\ZMX\envs\BoostingR-CNN\mmcv-1.4.0\build\temp.win-amd64-3.7\Release\build.ninja... Compiling objects... Using envvar MAX_JOBS (4) as the number of workers... ninja: error: build.ninja:3: lexing error
Traceback (most recent call last): File "D:\Anaconda3\envs\BoostingRCNN\lib\site-packages\torch\utils\cpp_extension.py", line 1522, in _run_ninja_build env=env) File "D:\Anaconda3\envs\BoostingRCNN\lib\subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '4']' 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 382, in
Sorry, I have no idea what is going on. Maybe you can contact mmdet team to help you. Or you may try the new version of mmdet. Maybe it works.
Okay, thank you!