Skip to content

[Bug]: playwright install doesn't seem to be checking for libgtk-4 #43747

Closed

Description

@hjp

Version

1.64.1

Steps to reproduce

  1. Set up an Ubuntu 24.04 server without a GUI
  2. pip install playwright
  3. playwright install. This will tell you to apt-get install some packages. The list doesn't include libgtk-4-1.
  4. apt-get install the requested packages
  5. run playwright install again. Now it complains about missing libraries (libgtk-4.so.1, libvulkan.so.1, ...), but doesn't tell you how to fix this.
  6. libgtk-4.so.1 should be in libgtk-4-1, so run apt install libgtk-4-1
  7. run playwright install again. Now it finds more missing dependencies and tells you to run apt-get install again
  8. do this
  9. run playwright install again. Now it completes successfully

Expected behavior

playwright install should notice that libgtk-4-1 is missing in step 3 and include it in the list of required dependencies.
Also, the dependencies found in step 7 should be already be requested in step 3.

And also, also 😄 playwright should probably tell the user to run playwright install again after installing the packages to check that everything is ok.

Actual behavior

playwright install doesn't notice that libgtk-4-1 is missing. Instead it prints a long list of missing libraries and lets the user figure out which package they have to install to fix it.

Additional context

No response

Environment

System:
    OS: Linux 6.8 Ubuntu 24.04.5 LTS 24.04.5 LTS (Noble Numbat)
    CPU: (32) x64 Intel(R) Xeon(R) Gold 5315Y CPU @ 3.20GHz
    Memory: 237.73 GB / 251.35 GB
    Container: Yes
  Binaries:
    Node: 26.13.0 - /home/hjp/.nvm/versions/node/v26.13.0/bin/node
    npm: 11.20.0 - /home/hjp/.nvm/versions/node/v26.13.0/bin/npm
  Languages:
    Bash: 5.2.21 - /bin/bash

(The node and npm versions are probably not correct. The node binary in the pypi package identifies itself as v24.22.1)

Activity

  1. github-actions commented on Oct 29, 2026

    @github-actions
  2. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    Hi, I'm the Playwright bot and I reproduced this on Ubuntu 24.04 x64.

    Reproduced on current main, 1.65.0-next (ac44835d064d1e824ed1ba8b9f544f3493ec3dbe). Validation stops at the first failing browser, so Firefox's dependency warning hides WebKit's GTK 4 requirements. GTK 4 already has a package mapping, but missing mappings for Vulkan and Graphene cause WebKit to print only library names.

    The proposed fix reports all failing browsers, adds the missing package mappings, and tells users to rerun installation after installing dependencies. For the current release, playwright install --with-deps installs the required packages, including GTK 4.

    Verification

    The existing all-browser installation test was extended to simulate missing GTK 3, GTK 4, Vulkan and Graphene. It failed before the fix and passed afterward. All 16 tests in the installation-command and dependency-validation specs passed, including normal launches of Chromium 157.0.8103.15, Firefox 158.0 and WebKit 27.2.

    A separate isolated filesystem using the real system ldd reproduced the same two-stage warning without removing any packages from the runner. With the fix, one validation run lists both browsers' package instructions. Restoring the recommended libraries makes all browser dependency checks pass. The build and all required lint/type checks passed.

    Testing was on Linux only, using 1.65.0-next; I did not separately test the reported 1.64.1 release.

    Draft fix: #43750

    Triaged on Linux by the Playwright bot - agent run

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions