Deployment failed. Failed to build an image
johannah-joy
HOBBYOP

2 months ago

Hello! Attached is the screenshot of the Build Logs with the failures. This is my first time encountering an issue with libpq5 as well as mise. I'm using Railpack and Python 3.8.0 on a MacBook (macos high sierra version 10.13.6). How can I resolve these errors?

Attachments

$10 Bounty

2 Replies

darseen
HOBBYTop 5% Contributor

2 months ago

The libpq5 part is actually fine. The red bar next to it is misleading it likely just groups the entire log block as failed because the subsequent Python step crashed. The text under libpq5 (Hit:1, Reading package lists...) shows a successful update.

You are trying to install python 3.8.0. This is an old version. The Linux environment Railway is using (Debian Bookworm visible in the logs) is too new to have a pre-compiled binary for that exact version of Python I assume.

The fix:

The easiest solution is to just bump the python version to the latest patch of 3.8, or a newer version entirely.

Or you could change 3.8.0 to just 3.8 which usually grabs the latest available patch


bbhoss
FREE

2 months ago

Python 3.8 is very old and no longer supported. When did this app last deploy? Your best bet is to upgrade to a newer version of Python, it looks like 3.10 is the oldest version supported with precompiled binaries. You can also set the MISE_PYTHON_COMPILE=1 variable to have it try to compile Python 3.8 when it builds. But it's likely this will fail completely, and certain to make the build take a very long time to complete.


Loading...