R
Railway9mo ago
lplpqq

chromium installation

so basically im using dataframe_image library in python which converts pandas dataframe to an .png image. but it requires chromium for conversion and how am i supposed to install it on the server?
22 Replies
Percy
Percy9mo ago
Project ID: 7e6798b4-612a-4ee5-bc3f-5f8d7d127a4c
lplpqq
lplpqq9mo ago
7e6798b4-612a-4ee5-bc3f-5f8d7d127a4c
Brody
Brody9mo ago
you could use playwright to install chromium? they provide a simple command to do it:
playwright install --with-deps chromium
playwright install --with-deps chromium
lplpqq
lplpqq9mo ago
where should i put that?
Brody
Brody9mo ago
you could get this command ran during build by providing a nixpacks.toml file like this one
[phases.chromium]
dependsOn = ['install']
cmds = ['playwright install --with-deps chromium']
[phases.chromium]
dependsOn = ['install']
cmds = ['playwright install --with-deps chromium']
lplpqq
lplpqq9mo ago
ok, thanks, ill give it a try but now im trying this thing https://discord.com/channels/713503345364697088/1078694823000821821
lplpqq
lplpqq9mo ago
dataframe_image uses it somehow to convert pandas to image and it works great on my local machine
Brody
Brody9mo ago
yeah but running chrome is going to increase your costs, surely you've seen the chrome eats ram memes
lplpqq
lplpqq9mo ago
so you suppose that this thing would be enough?
Brody
Brody9mo ago
can't hurt to try
lplpqq
lplpqq9mo ago
0.235 /bin/bash: line 1: playwright: command not found
Brody
Brody9mo ago
playwright is a python package, thus you would need to specify it in your requirements.txt file
lplpqq
lplpqq9mo ago
aight same thing
lplpqq
lplpqq9mo ago
No description
lplpqq
lplpqq9mo ago
what is it for? i mean, i dont get the guide
lplpqq
lplpqq9mo ago
? why did my app stop showing any logs man, so how am i suppposed to install chromium, could you help me please im ready to provide anything
lplpqq
lplpqq9mo ago
here is the log
Brody
Brody9mo ago
this is community support, and on top of that, it's the weekend, please be patient
Want results from more Discord servers?
Add your server