Forums

Playwright module missing dependencies

Hello, I am trying to run a script that uses tiktok api by David Teather. When running, it uses playwright and I run into this issue:

`playwright._types.Error: Host system is missing dependencies! Missing libraries are:

      libbrotlidec.so.1
      libvpx.so.5
      libicui18n.so.60
      libicuuc.so.60
      libwoff2dec.so.1.0.2
      libgstgl-1.0.so.0
      libgstcodecparsers-1.0.so.0
      libpng16.so.16
      libwebpdemux.so.2
      libwebp.so.6
      libGLESv2.so.2`

Is there anyway to get these dependencies placed onto my host system so I can use this API? Thank you!

Users can't install system packages, but we are working on the new system image, so we will check if we can satisfy playwright dependencies in it.

@devinjcooley It's done! :-) If you upgrade to our new Glastonbury system image (see here for details) you should be able to use playwright.

i am on Glastonbury but still getting error on playwright

python3 -m playwright install
Downloading Playwright build of chromium v888113 - 124.3 Mb [====================] 100% 0.0s Failed to install browsers Error: Failed to download chromium, caused by Error: ENOENT: no such file or directory, mkdir '/home/gutdraw/.cache/ms-playwright/chromium-888113/chrome-linux/MEIPreload/' 23:12 ~ (master)$

@gutdraw Do it in the virtual environment.

@fjl Hey, I am straggling with the same issue:

Failed to install browsers Error: Failed to download chromium v907428, caused by Error: ENOENT: no such file or directory, mkdir '/home/username/.cache/ms-playwright/chromium-907428/chrome-linux/MEIPreload/'

I enabled virtual environment by command: workon <virtualenv_name>.

What do you mean by this phrase?

Do it in the virtual environment.

If it cannot find a directory that it looks like it should have created, then my guess would be that an earlier part of it failed. Is there some other error earlier that might shed some light? If not, that may be an issue that you should raise with the maintainers of playwright.