apify / actor-templates

This project is the :house: home of Apify actor template projects to help users quickly get started.
https://apify.com/
24 stars 14 forks source link

fix: python playwright template #277

Closed vdusek closed 2 months ago

vdusek commented 2 months ago

based on Slack bug report:

There is a problem with the [Playwright + Chrome template](https://console.apify.com/actors/templates/python-playwright). When you use the template, build the Actor and try to run it, it returns this to the log:

playwright._impl._api_types.Error: Executable doesn't exist at /root/.cache/ms-playwright/chromium-1084/chrome-linux/chrome
Looks like Playwright was just installed or updated.
Please run the following command to download new browsers:
playwright install

And then, when you add RUN playwright install to the Dockerfile, there is one more error, this time with playwright install-deps.

Only then, after you add RUN playwright install-deps to the Dockerfile, it finally works.