Discord Bot Python Build Fails
malkistcoder
TRIALOP

2 years ago

I am trying to host my Discord Bot on Railway. No matter what I do to try and fix it (including custom build commands and such), I always get this error.

ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1

Error: Docker build failed

Do you know what I can do to fix this? I am using Python for this project.

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

5 Replies

brody
EMPLOYEE

2 years ago


malkistcoder
TRIALOP

2 years ago

I did get it to work but I had to remove logging from my dependencies (which I kind of don't want to do)

Attachments


brody
EMPLOYEE

2 years ago

What version of python are you using locally?


malkistcoder
TRIALOP

2 years ago

Python 3.12.1


brody
EMPLOYEE

2 years ago

Railway doesn't support Python 3.12, so instead, add a runtime.txt file to your project with just 3.11 in it.


Loading...