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

getting this error #3

Open
hsl1 opened this issue May 19, 2019 · 3 comments
Open

getting this error #3

hsl1 opened this issue May 19, 2019 · 3 comments

Comments

@hsl1
Copy link

hsl1 commented May 19, 2019

when try to install get this eror:

http://prntscr.com/nqor9t

have win10 and c++ build tools
Any help?

@elibroftw
Copy link

2022 same error

C:\Users\maste\Documents\GitHub\r2-t2-go>pip install webview
Collecting webview
  Downloading webview-0.1.5.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: webview
  Building wheel for webview (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_ext
      creating build
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\webview
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWEBVIEW_WINAPI=1 -IC:\Users\maste\AppData\Local\Programs\Python\Python310\include -IC:\Users\maste\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" /Tcwebview/webview.c /Fobuild\temp.win-amd64-3.10\Release\webview/webview.obj
      webview.c
      C:\Users\maste\AppData\Local\Temp\pip-install-73oam0f7\webview_7e075f00d2e04afa8578ecf3f97c4f63\webview\webview.h(1085): warning C4477: 'sscanf' : format string '%02x' requires an argument of type 'unsigned int *', but variadic argument 1 has type 'char *'
      C:\Users\maste\AppData\Local\Temp\pip-install-73oam0f7\webview_7e075f00d2e04afa8578ecf3f97c4f63\webview\webview.h(1085): note: consider using '%hhx' in the format string
      C:\Users\maste\AppData\Local\Temp\pip-install-73oam0f7\webview_7e075f00d2e04afa8578ecf3f97c4f63\webview\webview.h(1338): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      webview/webview.c(117): error C2065: 'PATH_MAX': undeclared identifier
      webview/webview.c(117): error C2057: expected constant expression
      webview/webview.c(117): error C2466: cannot allocate an array of constant size 0
      webview/webview.c(117): error C2133: 'result': unknown size
      webview/webview.c(123): warning C4034: sizeof returns 0
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\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 webview
  Running setup.py clean for webview
Failed to build webview
Installing collected packages: webview
  Running setup.py install for webview ... error
  error: subprocess-exited-with-error

  × Running setup.py install for webview did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      running install
      C:\Users\maste\AppData\Roaming\Python\Python310\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      creating build
      creating build\temp.win-amd64-3.10
      creating build\temp.win-amd64-3.10\Release
      creating build\temp.win-amd64-3.10\Release\webview
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWEBVIEW_WINAPI=1 -IC:\Users\maste\AppData\Local\Programs\Python\Python310\include -IC:\Users\maste\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" /Tcwebview/webview.c /Fobuild\temp.win-amd64-3.10\Release\webview/webview.obj
      webview.c
      C:\Users\maste\AppData\Local\Temp\pip-install-73oam0f7\webview_7e075f00d2e04afa8578ecf3f97c4f63\webview\webview.h(1085): warning C4477: 'sscanf' : format string '%02x' requires an argument of type 'unsigned int *', but variadic argument 1 has type 'char *'
      C:\Users\maste\AppData\Local\Temp\pip-install-73oam0f7\webview_7e075f00d2e04afa8578ecf3f97c4f63\webview\webview.h(1085): note: consider using '%hhx' in the format string
      C:\Users\maste\AppData\Local\Temp\pip-install-73oam0f7\webview_7e075f00d2e04afa8578ecf3f97c4f63\webview\webview.h(1338): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
      webview/webview.c(117): error C2065: 'PATH_MAX': undeclared identifier
      webview/webview.c(117): error C2057: expected constant expression
      webview/webview.c(117): error C2466: cannot allocate an array of constant size 0
      webview/webview.c(117): error C2133: 'result': unknown size
      webview/webview.c(123): warning C4034: sizeof returns 0
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\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.
╰─> webview

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

@hasansezertasan
Copy link

Is there a solution for this problem?

@andydish
Copy link

andydish commented Mar 7, 2023

I am getting the same errors. Any resolution?

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

No branches or pull requests

4 participants