HearthSim / decrunch

Python wrapper around Crunch DXTc decompressor
https://hearthsim.info
zlib License
14 stars 23 forks source link

Can't install via pip #24

Open xhendrikg opened 2 years ago

xhendrikg commented 2 years ago

Building wheels for collected packages: decrunch Building wheel for decrunch (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [12 lines of output] running bdist_wheel running build running build_ext building 'decrunch' extension creating build creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Icrunch -IC:\Users\X\AppData\Local\Programs\Python\Python310\include -IC:\Users\X\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include /EHsc /Tpcrn_decomp.cpp /Fobuild\temp.win-amd64-3.10\Release\crn_decomp.obj -std=c++11 cl : Befehlszeile warning D9002 : Unbekannte Option "-std=c++11" wird ignoriert. crn_decomp.cpp crn_decomp.cpp(3): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "string.h": No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for decrunch Running setup.py clean for decrunch Failed to build decrunch Installing collected packages: decrunch Running setup.py install for decrunch ... error error: subprocess-exited-with-error

× Running setup.py install for decrunch did not run successfully. │ exit code: 1 ╰─> [12 lines of output] running install running build running build_ext building 'decrunch' extension creating build creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Icrunch -IC:\Users\X\AppData\Local\Programs\Python\Python310\include -IC:\Users\X\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include /EHsc /Tpcrn_decomp.cpp /Fobuild\temp.win-amd64-3.10\Release\crn_decomp.obj -std=c++11 cl : Befehlszeile warning D9002 : Unbekannte Option "-std=c++11" wird ignoriert. crn_decomp.cpp crn_decomp.cpp(3): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "string.h": No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> decrunch

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Eiim commented 4 months ago

Slightly different issue in Python 3.11 and 3.12, likely due to https://github.com/python/cpython/pull/28968:

  × Building wheel for decrunch (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'decrunch' extension
      creating build
      creating build\temp.win-amd64-cpython-312
      creating build\temp.win-amd64-cpython-312\Release
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrunch "-IC:\Program Files\Python312\include" "-IC:\Program Files\Python312\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\cppwinrt" /EHsc /Tpcrn_decomp.cpp /Fobuild\temp.win-amd64-cpython-312\Release\crn_decomp.obj -std=c++11
      cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
      crn_decomp.cpp
      crunch\crn_decomp.h(3692): warning C4018: '<': signed/unsigned mismatch
      crunch\crn_decomp.h(4763): warning C4244: '=': conversion from 'crnd::uint16' to 'crnd::uint8', possible loss of data
      crunch\crn_decomp.h(4821): warning C4244: '=': conversion from 'crnd::uint16' to 'crnd::uint8', possible loss of data
      crunch\crn_decomp.h(4888): warning C4244: '=': conversion from 'crnd::uint16' to 'crnd::uint8', possible loss of data
      crunch\crn_decomp.h(4967): warning C4244: '=': conversion from 'crnd::uint16' to 'crnd::uint8', possible loss of data
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Icrunch "-IC:\Program Files\Python312\include" "-IC:\Program Files\Python312\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.20348.0\\cppwinrt" /EHsc /Tpdecrunch.cpp /Fobuild\temp.win-amd64-cpython-312\Release\decrunch.obj -std=c++11
      cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
      decrunch.cpp
      decrunch.cpp(221): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2