@prettygood@pwm pip threw it in /usr/bin/ and the permissions there look fine. It's complaining about "ImportError: cannot import name 'main' from 'yt_dlp' (unknown location)" but I don't know my way around python very well, so I don't know whether there's an obvious reason the location is unknown
@binkle@pwm that's part of why I don't fuck with pip, I straight up don't understand what it does, but it sounds like maybe there's some difference in $PATH between your user and root.
@prettygood@binkle@pwm One of the reasons why I can't fix Invidious on this instance. The IPv6 rotator needs root privileges and I can't install it as root and guess what is missing in all the somewhat official RHEL8 repos. python3-venv. And installing to the user directory and letting root cron access it there is a complete hack and probably would upset SELinux and I'm not feeling writing a policy just for that.
@binkle@prettygood I'm guessing your python path does not include where the yt_dlp module actually is, which is probably wherever pip put it assuming you didn't use a system install
the main yt_dlp script may expect to be in the same directory, or for the module to be in the python path.
you could try adjusting your python path in the shell and seeing if it works, or move the script into wherever it was, then symlinking to it or something
@binkle@prettygood OH fuck
Okay here's why it worked with sudo, you sudo pip installed (bad idea) so the module is not in the path of the user you are running as because it's in the root user's system modules
@binkle@prettygood I think pip will put them in $HOME/.local/.bin no matter who is running it so if you sudo it it goes under /root/ which of course is inaccessible to normal users.
@pwm@prettygood turns out this system doesn't actually make a separate $home for each user, which I think is why the tutorial I was following was doing everything as root
FUCK it we're leaving it as is. It'll be a janky mess until the day it dies
Add comment