Hello all !
when I call  “pip install -v -e .” on the code of https://github.com/Epiphqny/SOLOv2 I got on Windows 10 the following error :
(SoloV2) (…)
Remarqueÿ: inclusion du fichierÿ:       C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\torch\include\torch/csrc/utils/tensor_numpy.h
Remarqueÿ: inclusion du fichierÿ:     C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\torch\include\torch/csrc/Generator.h
C:\Users\MASTER\Desktop\installations SoloV2\SOLOv2-master2\SOLOv2-master\mmdet\ops\nms\src\nms_cuda.cpp(9): error C3861: 'AT_CHECK’ÿ: identificateur introuvable
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\torch\utils\cpp_extension.py”, line 1667, in _run_ninja_build
subprocess.run(
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\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 "<string>", line 1, in <module>
  File "C:\Users\MASTER\Desktop\installations SoloV2\SOLOv2-master2\SOLOv2-master\setup.py", line 217, in <module>
    setup(
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\setuptools\__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\setuptools\command\develop.py", line 34, in run
    self.install_for_development()
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\setuptools\command\develop.py", line 136, in install_for_development
    self.run_command('build_ext')
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
    _build_ext.run(self)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\torch\utils\cpp_extension.py", line 708, in build_extensions
    build_ext.build_extensions(self)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\command\build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\distutils\command\build_ext.py", line 528, in build_extension
    objects = self.compiler.compile(sources,
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\torch\utils\cpp_extension.py", line 681, in win_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\torch\utils\cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\torch\utils\cpp_extension.py", line 1683, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\colorama\ansitowin32.py", line 59, in closed
    return stream.closed
ValueError: underlying buffer has been detached

ERROR: Command errored out with exit status 1: ‘C:\ProgramData\Anaconda3\envs\SoloV2\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\MASTER\Desktop\installations SoloV2\SOLOv2-master2\SOLOv2-master\setup.py’"’"’; file=’"’"‘C:\Users\MASTER\Desktop\installations SoloV2\SOLOv2-master2\SOLOv2-master\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.
Exception information:
Traceback (most recent call last):
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\pip_internal\cli\base_command.py”, line 189, in main
status = self.run(options, args)
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\pip_internal\cli\req_command.py”, line 178, in wrapper
return func(self, options, args)
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\pip_internal\commands\install.py”, line 391, in run
installed = install_given_reqs(
File "C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\pip_internal\req_init.py", line 80, in install_given_reqs
requirement.install(
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\pip_internal\req\req_install.py”, line 764, in install
install_editable_legacy(
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\pip_internal\operations\install\editable_legacy.py”, line 49, in install_editable
call_subprocess(
File “C:\ProgramData\Anaconda3\envs\SoloV2\lib\site-packages\pip_internal\utils\subprocess.py”, line 258, in call_subprocess
raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: ‘C:\ProgramData\Anaconda3\envs\SoloV2\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\MASTER\Desktop\installations SoloV2\SOLOv2-master2\SOLOv2-master\setup.py’"’"’; file=’"’"‘C:\Users\MASTER\Desktop\installations SoloV2\SOLOv2-master2\SOLOv2-master\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.
Removed build tracker: ‘C:\Users\MASTER\AppData\Local\Temp\pip-req-tracker-shii74p4’
(SoloV2) C:\Users\MASTER\Desktop\installations SoloV2\SOLOv2-master2\SOLOv2-master>