OSError at /cannot load library 'gobject-2.0-0'
Hello, I want to deploy django app that uses weasyprint. I use win10 as local server, to fix this issue I installed GTK, but how do I fix this issue in railway?
Project ID: 95f78dda-510c-4f99-a4d4-e4160bec9009
15 Replies
Project ID:
95f78dda-510c-4f99-a4d4-e4160bec9009
this is untested, but try using this as a nixpacks.toml file in your project
Sorry it's my first deploy, but I don't have this file in my project, should create nixpacks.toml or maybe I can't find this file?
Yep, you should create it with those contents.
I created file nixpacks put those contens and still get the same error
show me the file and its contents that you have created please
wrong packages, will elaborate momentarily
talk about a cliff hanger
libgtk-4-dev gobject-introspection
might do it
sorryi just following what the docs say
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#ubuntu-20-04
oh weasyprint oops
missed that
then try adding those to the package list above
now add the packages aleks has mentioned
So I added those packages, then I tried other packages from docs but nothing changed
you might want to try moving to a Dockerfile based build then