NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
« Previous 1 2 3 4 5 … 9 Next »
Python Missing from 7.0.0.241105

 
  • 0 Vote(s) - 0 Average
Python Missing from 7.0.0.241105
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#1
2024-11-05, 01:28 AM (This post was last modified: 2024-11-05, 01:39 AM by pkscout.)
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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#2
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
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#3
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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#4
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
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#5
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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#6
2024-11-05, 02:21 AM
OK since you like most users still have to use pip the script makes more sense anyway.

Martin
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#7
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
apt-get update
apt-get -y install python3
apt-get -y install python3-requests
apt-get -y install python3-websocket
apt-get -y install python3-opencv

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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#8
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
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#9
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.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Icon missing rmvanderspek 12 1,564 2023-02-10, 03:31 PM
Last Post: rmvanderspek
  What Time Does the "Delete Missing Recording" Maintenance Run? pkscout 12 3,503 2020-09-20, 05:32 PM
Last Post: pkscout

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode