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

something wrong with building wheel for pyview, on my side #1600

Open
cheesecakejohnsonturbo opened this issue Feb 26, 2025 · 1 comment
Open

Comments

@cheesecakejohnsonturbo
Copy link

I am trying this git for the first time. I'm trying to launch it using a .bat file inside a VENV environment

here's the launcher I use

@echo off
setlocal
set PYTHON=venv\Scripts\python.exe
set VENV_DIR=.\venv

%PYTHON% examples/run_js.py %*
pause
endlocal

It says I need to pip install webview first.


Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: webview
  Building wheel for webview (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for webview (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      webview.c
      C:\Users\username\AppData\Local\Temp\pip-install-ii23pj5k\webview_81dbc1c6a6ee417db1933f73930cad24\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\username\AppData\Local\Temp\pip-install-ii23pj5k\webview_81dbc1c6a6ee417db1933f73930cad24\webview\webview.h(1085): note: consider using '%hhx' in the format string
      C:\Users\username\AppData\Local\Temp\pip-install-ii23pj5k\webview_81dbc1c6a6ee417db1933f73930cad24\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 (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.43.34808\\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
Failed to build webview
ERROR: Could not build wheels for webview, which is required to install pyproject.toml-based projects
@r0x0r
Copy link
Owner

r0x0r commented Feb 27, 2025

the package name is pywebview, not webview

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

2 participants