R
Railway2y ago
DylZ

Pip is not installing the most recent version of a library.

So I am trying to host a discord bot using interactions.py. They have V5.0.1 out but Railway will not install anything newer than 4.4.1. Here is the error if its helpful.
ERROR: Could not find a version that satisfies the requirement discord-py-interactions>5.0.0 (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)
ERROR: Could not find a version that satisfies the requirement discord-py-interactions>5.0.0 (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)
I can install 5.0.1 just fine on my machine so Im not sure why it wont work on railway.
14 Replies
Percy
Percy2y ago
Project ID: 460ee0b8-2b67-4840-b9df-a90eda47c734
Percy
Percy2y ago
You should consider upgrading via the '/opt/venv/bin/python -m pip install --upgrade pip' command.
⚠️ experimental feature
DylZ
DylZ2y ago
460ee0b8-2b67-4840-b9df-a90eda47c734
jackson
jackson2y ago
probably not on a new enough version of python or pip
DylZ
DylZ2y ago
How would I go about updating pip? Im quite new to railway still so I dont really know my way around completely yet.
jackson
jackson2y ago
if you're using a dockerfile you can just add a RUN command, if you aren't you'll need to try upgrading the nixpacks python version
DylZ
DylZ2y ago
So would you recommend me using a docker file then?
jackson
jackson2y ago
first try switching python versions https://nixpacks.com/docs/providers/python#setup
Python | Nixpacks
App source + Nix packages + Docker = Image
jackson
jackson2y ago
i'd suggest 3.9
DylZ
DylZ2y ago
Im just checking out the docs for interactions.py just to check if they have a requirement.
DylZ
DylZ2y ago
DylZ
DylZ2y ago
Alright so ill go for 3.10 then
jackson
jackson2y ago
yeah that makes sense
DylZ
DylZ2y ago
Alright perfect, that fixed everything. THank you very much Have an amazing rest of your day!
Want results from more Discord servers?
Add your server