pip does not find newly deployed/updated package.

I have a project that depends on cycling-dynamics==0.0.9 but when the install runs it only find versions up to 0.0.7 I think I need to use pip --no-cache-dir How would I define this in the build script?
46 Replies
Percy
Percy7mo ago
Project ID: 83cc97b1-aac6-4c38-b79b-8cc5cdfdf437
VincentDavis
VincentDavisOP7mo ago
83cc97b1-aac6-4c38-b79b-8cc5cdfdf437
Brody
Brody7mo ago
try adding a runtime.txt file to your project with just 3.11 in it.
VincentDavis
VincentDavisOP7mo ago
Currently I have been trying and failing to use docker. I did have a runtime with python-3.11.7 I think that was the version
Brody
Brody7mo ago
what python version do you use locally
VincentDavis
VincentDavisOP7mo ago
3.12
Brody
Brody7mo ago
does cycling-dynamics==0.0.9 need python 3.12?
VincentDavis
VincentDavisOP7mo ago
no
Brody
Brody7mo ago
okay then 3.11 should be fine?
VincentDavis
VincentDavisOP7mo ago
The issues is that when I make an update to cycling-dynamics pip does not seem to find it. I can see it on pipy.org
Brody
Brody7mo ago
is the deployment using python 3.11?
VincentDavis
VincentDavisOP7mo ago
I am switching from the docker file right now back to nixpacks
Brody
Brody7mo ago
did your dockerfile use python 3.11?
VincentDavis
VincentDavisOP7mo ago
In docker I was using 3.12-slim. Install worked but had other issues Ok, just pushed the update back to nixpaks
VincentDavis
VincentDavisOP7mo ago
GitHub
GitHub - vincentdavis/marginal-gains: Seeking, validating, forecast...
Seeking, validating, forecasting marginal gain in cycling. - vincentdavis/marginal-gains
VincentDavis
VincentDavisOP7mo ago
12.69 ERROR: Could not find a version that satisfies the requirement cycling-dynamics==0.0.9 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7)

12.69 ERROR: No matching distribution found for cycling-dynamics==0.0.9
12.69 ERROR: Could not find a version that satisfies the requirement cycling-dynamics==0.0.9 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7)

12.69 ERROR: No matching distribution found for cycling-dynamics==0.0.9
the current version on pipy is 0.0.8
VincentDavis
VincentDavisOP7mo ago
k, 1min That just opening a blank page
Brody
Brody7mo ago
please follow the 3 simple steps
VincentDavis
VincentDavisOP7mo ago
Right 😉
VincentDavis
VincentDavisOP7mo ago
No description
VincentDavis
VincentDavisOP7mo ago
I am on this page clicking this bookmark
VincentDavis
VincentDavisOP7mo ago
No description
Brody
Brody7mo ago
is your browser blocking bookmarklets?
VincentDavis
VincentDavisOP7mo ago
maybe, let me try another browser easy 😉
Brody
Brody7mo ago
try setting a variable NIXPACKS_NO_CACHE=1
VincentDavis
VincentDavisOP7mo ago
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nocache": "true"
},
"deploy": {
"startCommand": "streamlit run Marginal_Gains.py --server.address 0.0.0.0 --server.port 8501 --server.fileWatcherType none --browser.gatherUsageStats false --client.toolbarMode minimal"
}

}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nocache": "true"
},
"deploy": {
"startCommand": "streamlit run Marginal_Gains.py --server.address 0.0.0.0 --server.port 8501 --server.fileWatcherType none --browser.gatherUsageStats false --client.toolbarMode minimal"
}

}
I think this is the correct way to set nocache in the json ?
Brody
Brody7mo ago
it's not, may I ask what made you think it was?
VincentDavis
VincentDavisOP7mo ago
a bit of googling and a couple AI's 🤷‍♂️ in the nixpacks docs it justy says Caching can be disabled entirely by passing --no-cache.
Brody
Brody7mo ago
perhaps my message went unnoticed
VincentDavis
VincentDavisOP7mo ago
and in railway I read "NO_CACHE=1" Ok, what your saying to do is add a variable in the UI of NIXPACKS_NO_CACHE=1
Brody
Brody7mo ago
correct
VincentDavis
VincentDavisOP7mo ago
""" 12.26 ERROR: Could not find a version that satisfies the requirement cycling-dynamics==0.0.9 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7) 12.26 ERROR: No matching distribution found for cycling-dynamics==0.0.9 """ still get this line
Brody
Brody7mo ago
use the bookmarklet please
VincentDavis
VincentDavisOP7mo ago
Thanks for helping!!!!!
Brody
Brody7mo ago
are you sure the module doesn't need python 3.12?
VincentDavis
VincentDavisOP7mo ago
😠 I thought I checked this several time. I guess I was looking in the wrong place on the pyproject.toml file. I just saw that pipy said 3.12 Blind spot,
Brody
Brody7mo ago
nixpacks does not support python 3.12 right now, you would need to go back to your dockerfile
VincentDavis
VincentDavisOP7mo ago
or change the package and allow 3.11, thats easy, it does not need 3.12 I am 99% sure
Brody
Brody7mo ago
let me know how that goes
VincentDavis
VincentDavisOP7mo ago
Got it !!! Thanks for your help, I sent you a coffee or 2. https://marginal-gains-production.up.railway.app
Brody
Brody7mo ago
thank you very much!
VincentDavis
VincentDavisOP7mo ago
Its not a finished app so not much to see. I am trying to move several streamlit app off of the free strealit hosting to railway. I got to go, thanks again.
Brody
Brody7mo ago
no problem!
Want results from more Discord servers?
Add your server