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
Percy
Percy2y ago
Project ID: 95f78dda-510c-4f99-a4d4-e4160bec9009
Brody
Brody2y ago
this is untested, but try using this as a nixpacks.toml file in your project
[phases.setup]
aptPkgs = ["...", "libpango-1.0-0", "libharfbuzz0b", "libpangoft2-1.0-0", "libffi-dev", "libjpeg-dev", "libopenjp2-7-dev"]
[phases.setup]
aptPkgs = ["...", "libpango-1.0-0", "libharfbuzz0b", "libpangoft2-1.0-0", "libffi-dev", "libjpeg-dev", "libopenjp2-7-dev"]
valuablegrbg
valuablegrbgOP2y ago
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?
root
root2y ago
Yep, you should create it with those contents.
valuablegrbg
valuablegrbgOP2y ago
I created file nixpacks put those contens and still get the same error
Brody
Brody2y ago
show me the file and its contents that you have created please
root
root2y ago
wrong packages, will elaborate momentarily
Brody
Brody2y ago
talk about a cliff hanger
root
root2y ago
libgtk-4-dev gobject-introspection might do it sorry
root
root2y ago
oh weasyprint oops missed that then try adding those to the package list above
valuablegrbg
valuablegrbgOP2y ago
Brody
Brody2y ago
now add the packages aleks has mentioned
valuablegrbg
valuablegrbgOP2y ago
So I added those packages, then I tried other packages from docs but nothing changed
Brody
Brody2y ago
you might want to try moving to a Dockerfile based build then
Want results from more Discord servers?
Add your server