octaltree / playwright-rust

Playwright port to Rust
331 stars 38 forks source link

running in docker env reports some libraries are missing #44

Open foragerDev opened 1 year ago

foragerDev commented 1 year ago
Error "Host system is missing dependencies!\n\n  Missing libraries are:\n      libgobject-2.0.so.0\n      libglib-2.0.so.0\n      libnss3.so\n      libnssutil3.so\n      libsmime3.so\n      libnspr4.so\n      libatk-1.0.so.0\n      libatk-bridge-2.0.so.0\n      libcups.so.2\n      libdrm.so.2\n      libdbus-1.so.3\n      libgio-2.0.so.0\n      libexpat.so.1\n      libxcb.so.1\n      libxkbcommon.so.0\n      libX11.so.6\n      libXcomposite.so.1\n      libXdamage.so.1\n      libXext.so.6\n      libXfixes.so.3\n      libXrandr.so.2\n      libgbm.so.1\n      libpango-1.0.so.0\n      libcairo.so.2\n      libasound.so.2\n      libatspi.so.0\n      libxshmfence.so.1\n"
morenol commented 1 year ago

I think that you should install dependencies in the docker image. You could use:

# playwright deps
npx --package playwright@<playwright-version-used-in-this-library> playwright install-deps
foragerDev commented 1 year ago

It worked after installing dependencies manually.