epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

Can't build on Windows with VS #85

Closed BramVanroy closed 5 years ago

BramVanroy commented 5 years ago

Full trace below.

PS C:\Python\projects\PreDicT\predicting-syntactic-equivalence\sent2vec> pip install .
Processing c:\python\projects\predict\predicting-syntactic-equivalence\sent2vec
Building wheels for collected packages: sent2vec
  Building wheel for sent2vec (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\bram\.virtualenvs\predicting-syntactic-equivalence-vszxdytu\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Bram\\AppData\\Local\\Temp\\pip-req-build-oovczs8z\\setup.py'"'"'; __file__='"'"'C:\\Users\\Bram\\AppData\\Local\\Temp\\pip-req-build-oovczs8z\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Bram\AppData\Local\Temp\pip-wheel-ut62g8vg' --python-tag cp37
       cwd: C:\Users\Bram\AppData\Local\Temp\pip-req-build-oovczs8z\
  Complete output (11 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'sent2vec' extension
  creating build
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\src
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc -Ic:\users\bram\.virtualenvs\predicting-syntactic-equivalence-vszxdytu\lib\site-packages\numpy\core\include -IC:\Python\Python37\include -IC:\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpsrc/sent2vec.cpp /Fobuild\temp.win-amd64-3.7\Release\src/sent2vec.obj -std=c++0x -Wno-cpp -pthread -Wno-sign-compare
  cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for sent2vec
  Running setup.py clean for sent2vec
Failed to build sent2vec
Installing collected packages: sent2vec
  Running setup.py install for sent2vec ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\bram\.virtualenvs\predicting-syntactic-equivalence-vszxdytu\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Bram\\AppData\\Local\\Temp\\pip-req-build-oovczs8z\\setup.py'"'"'; __file__='"'"'C:\\Users\\Bram\\AppData\\Local\\Temp\\pip-req-build-oovczs8z\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Bram\AppData\Local\Temp\pip-record-rucin28u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\bram\.virtualenvs\predicting-syntactic-equivalence-vszxdytu\include\site\python3.7\sent2vec'
         cwd: C:\Users\Bram\AppData\Local\Temp\pip-req-build-oovczs8z\
    Complete output (11 lines):
    running install
    running build
    running build_ext
    building 'sent2vec' extension
    creating build
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc -Ic:\users\bram\.virtualenvs\predicting-syntactic-equivalence-vszxdytu\lib\site-packages\numpy\core\include -IC:\Python\Python37\include -IC:\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpsrc/sent2vec.cpp /Fobuild\temp.win-amd64-3.7\Release\src/sent2vec.obj -std=c++0x -Wno-cpp -pthread -Wno-sign-compare
    cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\bram\.virtualenvs\predicting-syntactic-equivalence-vszxdytu\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Bram\\AppData\\Local\\Temp\\pip-req-build-oovczs8z\\setup.py'"'"'; __file__='"'"'C:\\Users\\Bram\\AppData\\Local\\Temp\\pip-req-build-oovczs8z\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Bram\AppData\Local\Temp\pip-record-rucin28u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\bram\.virtualenvs\predicting-syntactic-equivalence-vszxdytu\include\site\python3.7\sent2vec' Check the logs for full command output.

I imagine that this is the corrupting line: cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'.

BramVanroy commented 5 years ago

Same issue as https://github.com/epfml/sent2vec/issues/60