2 months ago
I have a small project built on python/django. Being very new to web applications and deployment I was very pleased to get it up and running on Railway. This is quite recent, and so used Railpack as the builder. Everything was fine until I added weasy printing to my app. It worked fine on my local linux machine, but when I tried deploying it, I ran into problems. After much reading and experimenting, I found that weasy needs other supporting files that are not installed via pip etc. I found and article that explained which packages were required by weasy and how to load them into a NIXPACK variable. Since this was Railpack, I did more reading and found the variable name RAILPACK_BUILD_APT_PACKAGES, and copied in these package names: libgobject-2.0-0 libcairo2 libpango-1.0-0 libgdk-pixbuf2.0-0 libffi-dev
The build seems to choke on the first package libgobject-2.0-0. I have tried variations on the name, and just can't figure out what needs to happen. If I leave libgobject-2.0-0 out of the list, the build completes, but fails on deployment. If I put it in it fails in the build process.
Does anyone have any ideas?
8 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
2 months ago
Should be easy peasy lemon weasy.
Can you share the build logs please?
2 months ago
Not sure if this is the acceptable way to share the bulid log, but here it is..attached..
Attachments
koukla-victoria
Not sure if this is the acceptable way to share the bulid log, but here it is..attached..
2 months ago
Hi!
The package you're looking for goes by the name libglib2.0-0. Please check to see if that works. (Note the change in hyphenation)
2 months ago
Hi thanks for that suggestion. It got further, but crashes once deployed. Again the log is attached. Still seems to be tied to locating that one library. libgobject-2.0-0
Attachments
koukla-victoria
Hi thanks for that suggestion. It got further, but crashes once deployed. Again the log is attached. Still seems to be tied to locating that one library. libgobject-2.0-0
2 months ago
I believe it's because it's also needed during runtime. Add apt update && apt install libglib2.0-0 && before your current start command, see if that fixes it.
2 months ago
Scratch the above, try setting RAILPACK_DEPLOY_APT_PACKAGES to the exact same value as what you have RAILPACK_BUILD_APT_PACKAGES set to.
2 months ago
I had to add one more library to both lists, but it seems to be working now. THANK YOU for your help!
My final list of libraries is libglib2.0-0 libcairo2 libpango-1.0-0 libgdk-pixbuf2.0-0 libffi-dev libpangoft2-1.0-0
Status changed to Solved brody • about 2 months ago



