Solved problem. Python virtual environments. Or install another python version with your package manager and make sure the python script calls it in the shebang instead of a generic /usr/bin/env python.
Comment on Another reason to love Linux
Boomkop3@reddthat.com 1 year ago
Alright, I want two apps that depend on two different version of python, but won’t work on the other.
No warning, no notice, just one of the two fails to start. Thank you package manager
Penguincoder@beehaw.org 1 year ago
Boomkop3@reddthat.com 1 year ago
Tried it, but some apps depend on spawning other python processes. Half the time that results in them breaking out of the env cuz they’re using the python in the system path
Penguincoder@beehaw.org 1 year ago
So change the shebang to explicitly reference the venv python.
Boomkop3@reddthat.com 1 year ago
Ye that’s handy, until some script inside a library or something doesn’t
30p87@feddit.org 1 year ago
yay python31{0,2}
Boomkop3@reddthat.com 1 year ago
Or three docker containers
TehPers@beehaw.org 1 year ago
What’s wrong with 3.13?
30p87@feddit.org 1 year ago
That it’s the newest and therefore already installed version, but, in this scenario, also not the correct one.
Malgas@beehaw.org 1 year ago
And that’s why nix exists.
Boomkop3@reddthat.com 1 year ago
I tried it, ye. And although I like the concept, I can’t say the implementation was to my liking
PhilipTheBucket@ponder.cat 1 year ago
What didn’t you like about it? I am just curious; I finally stepped out of using Debian for everything which I have been doing for approximately 200 years, and tried NixOS, and to me it is incredibly nice the way it solves a lot of these issues.
Boomkop3@reddthat.com 1 year ago
When I tried it it looked really cool. Up until it just… didn’t work. And then looking around I found a bunch of people giving me better snippets of scripts and it was not helpful
PhilipTheBucket@ponder.cat 1 year ago
venv or nix
These are 2014 problems
Boomkop3@reddthat.com 1 year ago
Tried both, didn’t like 'm, using docker now