hen attempting to install pywebview[gtk], the installation fails due to a missing girepository-2.0 dependency. This is part of the GObject Introspection libraries, which are needed for PyGObject.
Error Message:
Run-time dependency girepository-2.0 found: NO (tried pkgconfig and cmake)
Not looking for a fallback subproject for the dependency girepository-2.0 because:
Use of fallback dependencies is disabled.
../meson.build:31:9: ERROR: Dependency 'girepository-2.0' is required but not found.
Steps to Reproduce:
Create a virtual environment.
Attempt to install pywebview[gtk].
Observe the error message indicating the missing dependency.
Suggested Solution: Install the gir1.2-glib-2.0 package to resolve the dependency issue.
Environment Details:
OS: Ubuntu 24.04
Python Version: 3.12
pywebview Version: 5.4