playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
1.94k stars 144 forks source link

[Bug]: Host system is missing dependencies to run browsers - on Ubuntu 24.04 #455

Open naimsulejmani opened 1 month ago

naimsulejmani commented 1 month ago

2024/05/09 23:57:14 Downloading browsers...
Playwright Host validation warning: 
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║
║ Missing libraries:                                   ║
║     libicudata.so.70                                 ║
║     libicui18n.so.70                                 ║
║     libicuuc.so.70                                   ║
║     libvpx.so.7                                      ║
╚══════════════════════════════════════════════════════╝
    at validateDependenciesLinux (/home/naimsulejmani/.cache/ms-playwright-go/1.42.1/package/lib/server/registry/dependencies.js:216:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Registry._validateHostRequirements (/home/naimsulejmani/.cache/ms-playwright-go/1.42.1/package/lib/server/registry/index.js:627:43)
    at async Registry._validateHostRequirementsForExecutableIfNeeded (/home/naimsulejmani/.cache/ms-playwright-go/1.42.1/package/lib/server/registry/index.js:725:7)
    at async Registry.validateHostRequirementsForExecutablesIfNeeded (/home/naimsulejmani/.cache/ms-playwright-go/1.42.1/package/lib/server/registry/index.js:714:43)
    at async t.<anonymous> (/home/naimsulejmani/.cache/ms-playwright-go/1.42.1/package/lib/cli/program.js:119:7)
2024/05/09 23:57:15 Downloaded browsers successfully

Recently, I upgraded my Ubuntu to the latest version, 24.04, and now my Go project is failing due to missing libraries as mention above. Are there any plans for a quick fix to address this issue?

canstand commented 1 month ago

Depend on upstream: https://github.com/microsoft/playwright/issues/30368