R
Railway4mo 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
Percy4mo ago
Project ID: 7e6798b4-612a-4ee5-bc3f-5f8d7d127a4c
lplpqq
lplpqq4mo ago
7e6798b4-612a-4ee5-bc3f-5f8d7d127a4c
Brody
Brody4mo 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
lplpqq4mo ago
where should i put that?
Brody
Brody4mo 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
lplpqq4mo ago
ok, thanks, ill give it a try but now im trying this thing https://discord.com/channels/713503345364697088/1078694823000821821
lplpqq
lplpqq4mo ago
dataframe_image uses it somehow to convert pandas to image and it works great on my local machine
Brody
Brody4mo ago
yeah but running chrome is going to increase your costs, surely you've seen the chrome eats ram memes
lplpqq
lplpqq4mo ago
so you suppose that this thing would be enough?
Brody
Brody4mo ago
can't hurt to try
lplpqq
lplpqq4mo ago
0.235 /bin/bash: line 1: playwright: command not found
Brody
Brody4mo ago
playwright is a python package, thus you would need to specify it in your requirements.txt file
lplpqq
lplpqq4mo ago
aight same thing
lplpqq
lplpqq4mo ago
No description
lplpqq
lplpqq4mo ago
what is it for? i mean, i dont get the guide
lplpqq
lplpqq4mo 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
lplpqq4mo ago
here is the log
Brody
Brody4mo ago
this is community support, and on top of that, it's the weekend, please be patient