Railway fails to find correct version of pypi package discord-py-interactions

Error log:
[stage-0 6/8] RUN --mount=type=cache,id=s/160fe6d3-84bb-4b29-a3bb-61b5f308406f-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

5.444 ERROR: Could not find a version that satisfies the requirement discord-py-interactions==5.9.2 (from versions: 3.0.2, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.4.0, 4.4.1)

5.444 ERROR: No matching distribution found for discord-py-interactions==5.9.2
[stage-0 6/8] RUN --mount=type=cache,id=s/160fe6d3-84bb-4b29-a3bb-61b5f308406f-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

5.444 ERROR: Could not find a version that satisfies the requirement discord-py-interactions==5.9.2 (from versions: 3.0.2, 4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.4.0, 4.4.1)

5.444 ERROR: No matching distribution found for discord-py-interactions==5.9.2
On pypi, the latest version of discord-py-interactions is 5.9.2. (https://pypi.org/project/discord-py-interactions/) The correct version is installed well on my local Mac, but railway doesn't seem to find the correct version.
PyPI
discord-py-interactions
Easy, simple, scalable and modular: a Python API wrapper for interactions.
Solution:
add a runtime.txt file with 3.11 in it
Jump to solution
14 Replies
Percy
Percy15mo ago
Project ID: 160fe6d3-84bb-4b29-a3bb-61b5f308406f
Brody
Brody15mo ago
can you send the build table at the top of the build logs please?
Andrew Chung
Andrew Chung15mo ago
This is the whole build log
Brody
Brody15mo ago
it's most certainly not lol use this https://bookmarklet.up.railway.app/log-downloader/
Andrew Chung
Andrew Chung15mo ago
Thanks! But I still get the same logs.
Brody
Brody15mo ago
redeploy please, then redownload the logs
Andrew Chung
Andrew Chung15mo ago
Thanks now I got the full logs
Brody
Brody15mo ago
perfect what python version are you using locally
Andrew Chung
Andrew Chung15mo ago
Local version is Python 3.11.2
Solution
Brody
Brody15mo ago
add a runtime.txt file with 3.11 in it
Andrew Chung
Andrew Chung15mo ago
Wow thanks it's working now! Is there any documentation about runtime.txt?
Andrew Chung
Andrew Chung15mo ago
Thanks!
Brody
Brody15mo ago
no problem!
Want results from more Discord servers?
Add your server