pip does not find newly deployed/updated package.
vincentdavis
PROOP

2 years ago

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?

0 Replies

vincentdavis
PROOP

2 years ago

83cc97b1-aac6-4c38-b79b-8cc5cdfdf437


brody
EMPLOYEE

2 years ago

try adding a runtime.txt file to your project with just 3.11 in it.


vincentdavis
PROOP

2 years 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
EMPLOYEE

2 years ago

what python version do you use locally


vincentdavis
PROOP

2 years ago

3.12


brody
EMPLOYEE

2 years ago

does cycling-dynamics==0.0.9 need python 3.12?


vincentdavis
PROOP

2 years ago

no


brody
EMPLOYEE

2 years ago

okay then 3.11 should be fine?


vincentdavis
PROOP

2 years ago

The issues is that when I make an update to cycling-dynamics pip does not seem to find it.


vincentdavis
PROOP

2 years ago

I can see it on pipy.org


brody
EMPLOYEE

2 years ago

is the deployment using python 3.11?


vincentdavis
PROOP

2 years ago

I am switching from the docker file right now back to nixpacks


brody
EMPLOYEE

2 years ago

did your dockerfile use python 3.11?


vincentdavis
PROOP

2 years ago

In docker I was using 3.12-slim. Install worked but had other issues


vincentdavis
PROOP

2 years ago

Ok, just pushed the update back to nixpaks



vincentdavis
PROOP

2 years 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

vincentdavis
PROOP

2 years ago

the current version on pipy is 0.0.8


brody
EMPLOYEE

2 years ago

build logs please


vincentdavis
PROOP

2 years ago

k, 1min


vincentdavis
PROOP

2 years ago

That just opening a blank page


brody
EMPLOYEE

2 years ago

please follow the 3 simple steps


vincentdavis
PROOP

2 years ago

Right 😉


vincentdavis
PROOP

2 years ago

1238991616803344400


vincentdavis
PROOP

2 years ago

I am on this page


vincentdavis
PROOP

2 years ago

clicking this bookmark


vincentdavis
PROOP

2 years ago

1238991725855244300


brody
EMPLOYEE

2 years ago

is your browser blocking bookmarklets?


vincentdavis
PROOP

2 years ago

maybe, let me try another browser


vincentdavis
PROOP

2 years ago

easy 😉


vincentdavis
PROOP

2 years ago


brody
EMPLOYEE

2 years ago

try setting a variable NIXPACKS_NO_CACHE=1


vincentdavis
PROOP

2 years 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"
    }

}

vincentdavis
PROOP

2 years ago

I think this is the correct way to set nocache in the json ?


brody
EMPLOYEE

2 years ago

it's not, may I ask what made you think it was?


vincentdavis
PROOP

2 years ago

a bit of googling and a couple AI's 🤷‍♂️


vincentdavis
PROOP

2 years ago

in the nixpacks docs it justy says Caching can be disabled entirely by passing --no-cache.


brody
EMPLOYEE

2 years ago

perhaps my message went unnoticed


vincentdavis
PROOP

2 years ago

and in railway I read "NO_CACHE=1"


vincentdavis
PROOP

2 years ago

Ok, what your saying to do is add a variable in the UI of NIXPACKSNOCACHE=1


brody
EMPLOYEE

2 years ago

correct


vincentdavis
PROOP

2 years 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
"""


vincentdavis
PROOP

2 years ago

still get this line


brody
EMPLOYEE

2 years ago

use the bookmarklet please


vincentdavis
PROOP

2 years ago


vincentdavis
PROOP

2 years ago

Thanks for helping!!!!!


brody
EMPLOYEE

2 years ago

are you sure the module doesn't need python 3.12?


vincentdavis
PROOP

2 years 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


vincentdavis
PROOP

2 years ago

Blind spot,


brody
EMPLOYEE

2 years ago

nixpacks does not support python 3.12 right now, you would need to go back to your dockerfile


vincentdavis
PROOP

2 years ago

or change the package and allow 3.11, thats easy, it does not need 3.12 I am 99% sure


brody
EMPLOYEE

2 years ago

let me know how that goes


vincentdavis
PROOP

2 years ago

Got it !!! Thanks for your help, I sent you a coffee or 2.
https://marginal-gains-production.up.railway.app


brody
EMPLOYEE

2 years ago

thank you very much!


vincentdavis
PROOP

2 years 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.


vincentdavis
PROOP

2 years ago

I got to go, thanks again.


brody
EMPLOYEE

2 years ago

no problem!


Loading...