← Whispering

fix: Add QtPy for pywebview compatibility with PyQt6

80dda708d3091f2f5bcc80db950e229bfd446433 · Claude · Dec 1, 2025 20:30

pywebview uses QtPy as an abstraction layer to work with PyQt6.
Without QtPy, pywebview can't detect PyQt6 even when it's installed.

+1 · 1 file changed

  • requirements.txt +1 −0
diff --git a/requirements.txt b/requirements.txt
index d22c5ef..14fb7e5 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -32,3 +32,4 @@ nicegui>=1.4.0
 pywebview>=4.0.0  # Required for NiceGUI native mode
 PyQt6>=6.0.0  # GUI backend for pywebview native mode
 PyQt6-WebEngine>=6.0.0  # WebEngine for pywebview
+QtPy>=2.0.0  # Qt abstraction layer for pywebview