Closed naimsulejmani closed 4 months ago
Depend on upstream: https://github.com/microsoft/playwright/issues/30368
Solved in #472 (v0.4501.0)
in ubuntu:22.04 ╔══════════════════════════════════════════════════════╗ ║ Host system is missing dependencies to run browsers. ║ ║ Missing libraries: ║ ║ libglib-2.0.so.0 ║ ║ libgobject-2.0.so.0 ║ ║ libnss3.so ║ ║ libnssutil3.so ║ ║ libsmime3.so ║ ║ libnspr4.so ║ ║ libdbus-1.so.3 ║ ║ libatk-1.0.so.0 ║ ║ libatk-bridge-2.0.so.0 ║ ║ libcups.so.2 ║ ║ libgio-2.0.so.0 ║ ║ libdrm.so.2 ║ ║ libexpat.so.1 ║ ║ libxcb.so.1 ║ ║ libxkbcommon.so.0 ║ ║ libatspi.so.0 ║ ║ libX11.so.6 ║ ║ libXcomposite.so.1 ║ ║ libXdamage.so.1 ║ ║ libXext.so.6 ║ ║ libXfixes.so.3 ║ ║ libXrandr.so.2 ║ ║ libgbm.so.1 ║ ║ libpango-1.0.so.0 ║ ║ libcairo.so.2 ║ ║ libasound.so.2 ║ ╚══════════════════════════════════════════════════════╝
I found that this issue only exists with playwright install chromium, and everything is normal when I switch to chrome
Try run go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps
Try run
go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps
Yes, that's correct, but it will cause the volume to increase in the container, and only chromium is the smallest, so I want to use chromium 🤣
However, I can currently use Chrome. Thank you for your contribution
Maybe you can use go run github.com/playwright-community/playwright-go/cmd/playwright@latest install chromium --with-deps
. I'm pretty sure it ignores Firefox and Webkit and their dependencies.
也许你可以使用
go run github.com/playwright-community/playwright-go/cmd/playwright@latest install chromium --with-deps
。我很确定它会忽略 Firefox 和 Webkit 及其依赖项。
👍 good
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?