#yt-dlp isn't working

1 messages · Page 1 of 1 (latest)

cyan holly
#

how to fix this?
and also I can't download video from youtube

viral smelt
cyan holly
#

no I didn't try without sudo
and what does "atm" mean

viral smelt
#

atm = at the moment

#

if you type yt-dlp, what does it say/do?

cyan holly
viral smelt
# cyan holly

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

cyan holly
#

Ok

viral smelt
#

huh, that's... odd

#

what does yt-dlp -U output?

cyan holly
viral smelt
#

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

GitHub

A youtube-dl fork with additional features and fixes - yt-dlp/yt-dlp

#

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

idle needle
#

you have got an old version of yt-dlp, you installed it from ubuntu's repos
remove it with sudo apt remove yt-dlp

#

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

cyan holly
#

Should I put my username in the user ?

viral smelt
#

The command should work exactly as listed

cyan holly
#

So I just need to type
"pip install --user yt-dlp"
Same this ?

#

@viral smelt

viral smelt
#

Yup

cyan holly
#

what did I do wrong ?

viral smelt
cyan holly
#

yes

#

I run this command line as you said

viral smelt
#

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

cyan holly
#

should I remove all the pip and yt-dlp ?

dapper wraith
#

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

cyan holly
#

Oh then what command should i run

viral smelt
dapper wraith
#

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

cyan holly
#

Ok

dapper wraith
#

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

cyan holly
viral smelt
# cyan holly

Oop, appears they typo'd part of it, run sudo apt yt-dlp

#

Everything else ran fine

dapper wraith
#

oh damn, yeah sorry, been a while since I used apt

#

it used to work with apt get 🤔

viral smelt
idle needle
# cyan holly

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

cyan holly
viral smelt
#

You may need to show hidden files if you can't see .profile

cyan holly
#

where will add this line ?

#

@viral smelt

viral smelt
#

At the very bottom of your .profile (add a new line after the very last line)

cyan holly
#

ok

#

is everything ok ?

viral smelt
cyan holly
#

which line ?

#

27 ?

viral smelt
cyan holly
#

I really don't understand
you see it please I already give a Screen shot

idle needle
#

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

cyan holly
#

ok

viral smelt
#

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

delicate flowerBOT
#

Yes received a thank you cookie!

idle needle
delicate flowerBOT
#

krab-mancer, and krgb received a thank you cookie!