-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Procedure Results in Non-Functional youtube-dl
#27253
Comments
do you have python installed at all? |
@mighty9245 I did not install Python separately. I installed Ubuntu 20.04 ~ 3 weeks ago. I assumed it had Python installed (I think this is default). I have checked it just now:
Perhaps this is the problem? Python 2 is not installed as default - Python 3 is ??? Is this an Ubuntu issue, or is this a |
i guess this is rather an issue of your system than an issue of youtube-dl. you have to set default python version. a simple and most obvious way of doing this for me is symlinking |
@mighty9245 : What does that do... by that I mean does it actually install something new (Python2) on my system? If Python2 is not installed on my system (and it's not) - how does this work? |
it just sets python3 as default python version. for example, you may have both python2 and python3 installed, and instead of calling python3 most of the time and rarely python2, you can set python3 as default python version and call it via just python and call python2 explicitly when needed. having python3 installed should be enough for youtube-dl, but you have to set is as default python version. |
@mighty9245 I don't want to install Python2 just so I can use the |
you don't have to install python2, you have to set python3 as default python version. actually, this should be done by default and i have no idea why you have python3 installed but don't have it set as default python version. just do |
@mighty9245 Not to shirk responsibility (I do know it's my system after all), but again: I installed nothing - Python3 came as a part of the default installation: From the Focal Fossa Release Notes:
And thanks for your clarification and patience. I'll try this as soon as I finish another experiment I'm running, and post my results here. RESULT:This works! :) |
I recently had this very same issue on an Ubuntu 20.04 install in WSL 2. Same exact error. I found a package, python-is-python3, which you can download from the Ubuntu repository "http://archive.ubuntu.com/ubuntu focal/main amd64 Packages". But this package just creates a symlink, exactly what mighty9245 posted. Unfortunately, the package detail description states, "No packages may declare dependencies on this package." I am guessing this is because the package may break older software requiring python2. I just installed the package on both my Ubuntu20.04 install and kali-linux install, but now I know I could have just manually created a symlink myself. This seems like a much bigger issue than youtube-dl. I am sure many other packages have similar problems if they want to be compatible with both python3 and older systems with python2 installed. |
|
Checklist
Verbose log
Description
The installation procedures provided here do not yield an operational version of
youtube-dl
. As shown above, after the d/l, attempting to check the version yields an error:Perhaps this has something to do with how Ubuntu locates its Python files, or perhaps there is an error in youtube-dl. I have not tried this only on the system identified above: VERSION="20.04.1 LTS (Focal Fossa)"
The text was updated successfully, but these errors were encountered: