R
Railway•12mo ago
Faolain

What is the latest Python version installed?

Quick question, when a .python-version file is provided and is set to 3.11 what is the version that is installed? Can the patch version be modified or set? For example 3.11.6 or 3.11.5?
Solution:
add
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
to the setup phase, untested...
Jump to solution
27 Replies
Percy
Percy•12mo ago
Project ID: N/A
Faolain
FaolainOP•12mo ago
N/A
Fragly
Fragly•12mo ago
3.11
Faolain
FaolainOP•12mo ago
is that 3.11.0?
Fragly
Fragly•12mo ago
Faolain
FaolainOP•12mo ago
Indeed I already looked there but appreciate it, I want to know what the patch version installed is and if this can be specified
Fragly
Fragly•12mo ago
oh my bad, I didn't read your whole question no clue what the patch is, even tried checking commit history on nixpacks and railway
Brody
Brody•12mo ago
what version of python 3.11 is installed
3.11.4
Can the patch version be modified or set?
there is no straight forward way with nixpacks, but lets try something
Fragly
Fragly•12mo ago
Brody!! where'd you find that information for future reference
Brody
Brody•12mo ago
python --version
Fragly
Fragly•12mo ago
oh wow 💀
Brody
Brody•12mo ago
what minor version of python 3.11 do you want?
Faolain
FaolainOP•12mo ago
thinking latest aka 3.11.6 Brody (the reason I mention it is that I think the python interpreter may have a memory leak on an older version so looking to try latest to see if that resolves it)
Brody
Brody•12mo ago
what version would that be?
Faolain
FaolainOP•12mo ago
just updated the above text as you were typing haha, 3.11.6
Brody
Brody•12mo ago
do you have a nixpacks.toml file right now?
Faolain
FaolainOP•12mo ago
yep
Brody
Brody•12mo ago
the one from litestar?
Faolain
FaolainOP•12mo ago
yep
Brody
Brody•12mo ago
i forget, does it have a setup phase?
Faolain
FaolainOP•12mo ago
just this
[phases.setup]
nixPkgs = ['...']
[phases.setup]
nixPkgs = ['...']
Brody
Brody•12mo ago
odd
Solution
Brody
Brody•12mo ago
add
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
nixpkgsArchive = 'bc2d5988780f02c26daea44016df56a1dc4fb8e2'
to the setup phase, untested
Faolain
FaolainOP•12mo ago
thanks will try tomorrow as it's late for me, I guess a better question is any idea on the update cycle/how easy this will be in the future?
Brody
Brody•12mo ago
it wont be easy with nixpacks anytime soon, but railway does know that setting specific versions is a massive pain point and they will look to improve this at some point, but either way, a dockerfile will always be able to get your app on the newest version before nix packages can, on account of the automated image releases a lot of software companies do, in contrast nix packages works on user commits to set up and make available new versions
Faolain
FaolainOP•12mo ago
really appreciate it as always Brody!
Brody
Brody•12mo ago
of course!
Want results from more Discord servers?
Add your server