facebookresearch / nocturne

A data-driven, fast driving simulator for multi-agent coordination under partial observability.
MIT License
259 stars 29 forks source link

[Bug] Problem installing it on Windows 10 #55

Open vinybrasil opened 1 year ago

vinybrasil commented 1 year ago

Operating system

Windows 10

Bug description

I was trying to install it on windows 10 and the following error occurred. Can someone help? I ran the "python setup.py develop" command and the following error appeared on the screen

Steps to reproduce

No response

Relevant log output

D:\Users\User\anaconda3\envs\nocturne\lib\site-packages\setuptools\config\expand.py:142: UserWarning: File 'D:\\projects\\random_projects\\nocturne\\nocturne\\README.rst # todo' cannot be found
  warnings.warn(f"File {path!r} cannot be found")
D:\Users\User\anaconda3\envs\nocturne\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
D:\Users\User\anaconda3\envs\nocturne\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
setup.py:42: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  cmake_version = LooseVersion(
CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeTestCXXCompiler.cmake:62 (message):
  The C++ compiler

    "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: D:/projects/random_projects/nocturne/nocturne/build/temp.win-amd64-cpython-38/Release/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_a3a88.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.

      Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30146 for x64
      Copyright (C) Microsoft Corporation.  All rights reserved.
      cl /c /I"D:\gsl\vcpkg\installed\x64-windows\include" /Zi /Wall /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D VERSION_INFO=0.0.1 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"cmTC_a3a88.dir\Debug\\" /Fd"cmTC_a3a88.dir\Debug\vc142.pdb" /external:W4 /Gd /TP /errorReport:queue  -O3 -Wextra -Wno-register -Wno-comment -fPIC -march=native -Wfatal-errors -fvisibility=hidden "D:\projects\random_projects\nocturne\nocturne\build\temp.win-amd64-cpython-38\Release\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"
    cl : command line error D8021: invalid numeric argument '/Wextra' [D:\projects\random_projects\nocturne\nocturne\build\temp.win-amd64-cpython-38\Release\CMakeFiles\CMakeTmp\cmTC_a3a88.vcxproj]

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:12 (project)

Aborting due to errors when running command ['cmake', 'D:\\projects\\random_projects\\nocturne\\nocturne\\nocturne', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\\projects\\random_projects\\nocturne\\nocturne', '-DPYTHON_EXECUTABLE=D:\\Users\\User\\anaconda3\\envs\\nocturne\\python.exe', '-DCMAKE_BUILD_TYPE=Release']
eugenevinitsky commented 1 year ago

Hey,

I'm really sorry, I have no idea how to resolve this and have no windows machine to debug this on either. I'd recommend installing a linux partition in the meantime.