How can I deploy Playwright Python script on Heroku?
I am trying to deploy my code on Heroku.
using :
python3
getting this error on Heroku console.
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║ ║ Please install them with the following command: ║
║ ║
║ sudo playwright install-deps ║
║ ║
║ Alternatively, use apt: ║
║ sudo apt-get install libatk1.0-0\ ║
║ libatk-bridge2.0-0\ ║
.
.
.10 Replies
other-emerald•17mo ago
@Soul_Denied ツ Hi, its missing dependencies error, will need to install them before deploy
magic-amberOP•17mo ago
as we need to install dependency.
in my local machine. I use
playwright install
and same thing I am doing on my Heroku app.
I tried writing this in my Procfile
also I tried this in my code.
but I am getting the issue mentioned in the question.@Soul_Denied ツ just advanced to level 1! Thanks for your contributions! 🎉
magic-amberOP•17mo ago
@Mathew later onward when that error comes up.
I tried using same way to run this command.
sudo playwright install-deps
but this not being executed in the herokuother-emerald•17mo ago
@Soul_Denied ツ well, heroku may not support playwright installing and running on it's env.
I guess it works on local with no error.
if you need it deployed on cloud server, you will have to set up a server
magic-amberOP•17mo ago
How I can setup on Heroku?
I found documentations for Node JS. but for python not able to find out.
other-emerald•17mo ago
I had no experience with playwright on heroku, maybe I can see the Node documentation?
magic-amberOP•17mo ago
other-emerald•17mo ago
ok, may I see your app's setting on heroku dashboard?
magic-amberOP•17mo ago
which setting you wanna see?