#yt-dlp isn't working
1 messages · Page 1 of 1 (latest)
two questions:
Does running yt-dlp do anything atm?
Have you tried running the command you posted without sudo?
no I didn't try without sudo
and what does "atm" mean
yt-dlp appears to be installed, you're saying it's not downloading videos?
try running yt-dlp <URL> but replace <URL> with a youtube video link, does it download? If not, send another screenshot of what happens
It seems as though your yt-dlp install might be broken? I'd recommend uninstalling it the same way you installed it, then follow the official installation guide, use either the section that mentions using pip or using apt
https://github.com/yt-dlp/yt-dlp/wiki/Installation
As much as I'd like to help you out more here, I'm pretty tired so I'm about to pass out. Hope you get this sorted buddy
you have got an old version of yt-dlp, you installed it from ubuntu's repos
remove it with sudo apt remove yt-dlp
then, dont run pip with sudo. it will install python modules system wide in the same location as your package manager, which will be a headache in the future
https://wiki.archlinux.org/title/Python#Package_management
instead, install the latest version only for your user: pip install --user yt-dlp
then you should have an up to date version of yt-dlp. something to keep in mind is that you have to keep it updated using pip install --user --upgrade yt-dlp
Should I put my username in the user ?
Nope, it just means to install to your current user, rather than the full system
The command should work exactly as listed
Yup
Did you do as Yes said here and run sudo apt remove yt-dlp first?
Mhmm, thoughts @idle needle?
Could this be caused by the sudo pip3 install attempt? I'd say maybe try to sudo pip3 remove but I don't use much/any python so idk about the repercussions of suggesting that
should I remove all the pip and yt-dlp ?
consider pip uninstall yt-dlp, if that has an error just run it with sudo
also please note that the package name is NOT yt-dlp on pip
it is in fact youtube-dl
and you probably installed some typo-squatted name
@cyan holly
Oh then what command should i run
yt-dlp is a fork of youtube-dl with added features iirc
I don't think so? I haven't heard of it before
lemme double check
ah I see, nice
ok yeah so try running this @cyan holly sudo pip uninstall yt-dlp && sudo apt remove yt-dlp && sudo apt get yt-dlp
then it should work
Ok
if you get an error about it being outdated, this likely means debian just has an outdated version, in that case we can try installing the pip version in user mode
so it won't mess with debian libraries on the system
Oop, appears they typo'd part of it, run sudo apt yt-dlp
Everything else ran fine
oh damn, yeah sorry, been a while since I used apt
it used to work with apt get 🤔
It's apt-get, however it's generally advised to use apt instead as apt is a wrapper for apt-get providing more features and whatnot
you dont have ~/.local/bin in your path, which is where yt-dlp binary is installed by pip --user
so you gotta add line PATH="$PATH:$HOME/.local/bin" to the end of your ~/.profile file
then relogin/reboot, depending on your DM
how I add this path ?
can you give me the proper line.
You open the .profile file inside your home, scroll to the very end of the file, add a new line with exactly PATH="$PATH:$HOME/.local/bin"
You may need to show hidden files if you can't see .profile
At the very bottom of your .profile (add a new line after the very last line)
uhhh wait, it should be included already, just above the line you're about to add
Lines 25-27 check if the path exists then includes it, yes
I really don't understand
you see it please I already give a Screen shot
I finally see what happened.
ubuntu/mint/debian does include ~/.local/bin in PATH but only if it exists. So when you booted up, before running pip install --user yt-dlp ~/.local/bin didn't exist yet. After you ran the command however the directory was created. But because .profile is only sourced on login/boot, the ~/.local/bin wasn't added to your PATH yet.
So, you can restore .profile to how it was before editing and simply reboot. Assuming yt-dlp is still installed like I described earlier, it should now be in your PATH and therefore work when you type yt-dlp in terminal
I tried this in an ubuntu vm to double check and I didnt even have to reboot, logging out and logging back in had the same effect
ok
Just gonna take a moment to give props to @idle needle for the awesome advice here, thanks for the multi day endeavor of helping out getting this all sorted
Yes received a thank you cookie!
Likewise, and also thank you and @dapper wraith for being there to help when I wasn't able to. Unfortunately my timezone really doesn't align well with ironer's
krab-mancer, and krgb received a thank you cookie!