I updated to 7.0.0.241105 in Docker, and it seems Python (and pip) is no longer included. Or at least I can't find it. I didn't see anything about that in the release notes, and without Python my entire workflow is broken. I guess I'll have to dig up the Docker stuff I did to add python to NextPVR and go back to maintaining my own image.
2024-11-05, 01:35 AM
(This post was last modified: 2024-11-05, 01:36 AM by mvallevand.)
Was python included before or did you add it. You can just run a bash shell into Docker and add it to sub's It is pretty hard to add all the pip requirements needed for python to make it worthwhile.
Martin
2024-11-05, 01:42 AM
At some point it got added, because I stopped maintaining my image specifically because the default image had Python. And now it's gone. I'm manually adding stuff for now, but adding stuff to the image after it's been downloaded is the worst possible way to manage a Docker image. So tomorrow I'll go back and build my own image again.
2024-11-05, 01:52 AM
I just find it odd that the python modules that you said were included where the same ones that you installed here https://forums.nextpvr.com/showthread.ph...#pid529636 there are so many others that many python users might want.
When I used Docker I just put a script in config that I ran each release. You could even script PreStartup.sh to do it for you. Martin
2024-11-05, 01:55 AM
It wasn't any of the modules, it was just Python3 and pip. They were on the image, and now they aren't. It's fine. I'll look at using PreStartup.sh to add Python and pip. That's not a bad way to handle it.
2024-11-05, 02:21 AM
OK since you like most users still have to use pip the script makes more sense anyway.
Martin
2024-11-05, 11:28 AM
I actually managed to do this without pip. Apparently Debian Bookworm really wants you to use the built in package manager, and I found the packages for Python3 and the modules I need, so a pretty simple Prestartup.sh does it. I blew away the container and tested. Sure enough, at first start it installs everything and only adds a couple minutes to the first startup time.
Code: #install Python3 and needed modules Thanks for the pointer to that. I'm sure actual Docker people will cringe at installing something in a container after it's setup, but it's an easier to maintain solution than constantly building my own Docker image.
2024-11-05, 02:38 PM
Note sure of the value of the update without the upgrade. You might want to test for a file to save startup time unless you want security updates..
Lucky that what need are system files and you can avoid chroot issues. I am sure it is no worse then running a custom image. Martin
2024-11-05, 10:00 PM
I'm pretty sure apt-get update just updates the catalog. Which I do want to do to make sure I have the most current Python and modules. But then again, even after all these years I'm still not a Linux person, so I might be wrong.
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Icon missing | rmvanderspek | 12 | 1,151 |
2023-02-10, 03:31 PM Last Post: rmvanderspek |
|
What Time Does the "Delete Missing Recording" Maintenance Run? | pkscout | 12 | 2,991 |
2020-09-20, 05:32 PM Last Post: pkscout |