3 months ago
I am deploying a FastAPI application directly from my GitHub, and I have validated that it builds properly and works locally. Weasyprint isn't working through Railway, and I've tried troubleshooting through some existing threads. I am not installing and configuring through Docker like these, and I'm wondering if Docker is the only way to resolve this.
https://station.railway.com/questions/error-installing-weasy-print-a30df387
I have also tried setting my NIXPACKS_PKGS=libgobject-2.0-0 libcairo2 libpango-1.0-0 libgdk-pixbuf2.0-0 libffi-dev per https://station.railway.com/questions/cant-install-weasyprint-dependencies-d742101d, and that has not worked. Thanks!
```
WeasyPrint could not import some external libraries. Please carefully follow the installation steps before reporting an issue:
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#troubleshooting ```
Pinned Solution
3 months ago
Try RAILPACK_DEPLOY_APT_PACKAGES instead.
Nixpacks is deprecated: https://docs.railway.com/reference/nixpacks
2 Replies
3 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!
3 months ago
Try RAILPACK_DEPLOY_APT_PACKAGES instead.
Nixpacks is deprecated: https://docs.railway.com/reference/nixpacks
Status changed to Solved brody • 3 months ago