Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install via pip #24

Open
xhendrikg opened this issue Jul 7, 2022 · 1 comment
Open

Can't install via pip #24

xhendrikg opened this issue Jul 7, 2022 · 1 comment

Comments

@xhendrikg
Copy link

xhendrikg commented Jul 7, 2022

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
Copy link

Eiim commented Jul 8, 2024

Slightly different issue in Python 3.11 and 3.12, likely due to python/cpython#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants