Announcement

Collapse
No announcement yet.

youtube-dl and KDE neon 18.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    youtube-dl and KDE neon 18.04

    My KDE neon 18.04 was a clean install and I'm in the process of adding software I want to it.

    youtube-dl, direct from the github pages, is what I have on Kubuntu 18.04. I installed it today on KDE neon but got
    Code:
    /usr/bin/env: ‘python’: No such file or directory
    when I tried to run it.

    The answer, if one wants to stay with the github version, is to use:
    Code:
    /your/path/python3 /usr/local/bin/youtube-dl
    and that works for me.
    Kubuntu 20.04

    #2
    You could just create a simlink of /your/path/python3 to /usr/bin/env yes?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      youtube-dl looks for the link "python" ,,, python2.7 makes that link , it seems python3.6 makes a "python3" link .

      you could just make the link python>python3

      check by running
      Code:
      ls -la /usr/bin/python*
      @hear I get

      Code:
      vinny@vinny-Bonobo-Extreme:~$ ls -la /usr/bin/python*
      lrwxrwxrwx 1 root root       9 Apr 16 10:31[COLOR=#ff0000] /usr/bin/python -> python2.7[/COLOR]
      lrwxrwxrwx 1 root root       9 Apr 16 10:31 /usr/bin/python2 -> python2.7
      -rwxr-xr-x 1 root root 3633560 Apr 15 17:51 /usr/bin/python2.7
      lrwxrwxrwx 1 root root      33 Apr 15 17:51 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
      lrwxrwxrwx 1 root root      16 Apr 16 10:31 /usr/bin/python2-config -> python2.7-config
      -rwxr-xr-x 1 root root     154 Nov 11  2017 /usr/bin/python2-pbr
      lrwxrwxrwx 1 root root       9 Jun 21 17:52 /usr/bin/python3 -> python3.6
      -rwxr-xr-x 2 root root 4567672 Sep 12 14:26 /usr/bin/python3.6
      -rwxr-xr-x 2 root root 4567672 Sep 12 14:26 /usr/bin/python3.6m
      lrwxrwxrwx 1 root root      10 Jun 21 17:52 /usr/bin/python3m -> python3.6m
      lrwxrwxrwx 1 root root      16 Apr 16 10:31 /usr/bin/python-config -> python2.7-config
      what do you get @chimak111 ?

      VINNY
      i7 4core HT 8MB L3 2.9GHz
      16GB RAM
      Nvidia GTX 860M 4GB RAM 1152 cuda cores

      Comment


        #4
        Originally posted by vinnywright View Post
        what do you get @chimak111 ?

        VINNY
        Thanks for looking into this!

        I get
        Code:
        $ ls -la /usr/bin/python*
        lrwxrwxrwx 1 root root       9 Sep 28 13:53 /usr/bin/python3 -> python3.6
        -rwxr-xr-x 1 root root 4567672 Sep 12 23:56 /usr/bin/python3.6
        -rwxr-xr-x 1 root root 4567672 Sep 12 23:56 /usr/bin/python3.6m
        lrwxrwxrwx 1 root root      10 Sep 28 13:53 /usr/bin/python3m -> python3.6m
        $
        Could it be that you have more entries because you added more stuff to your system by now? Mine is relatively new.

        I've gone the alias route:
        Code:
        alias yt43='/usr/bin/python3 /usr/local/bin/youtube-dl -f 43 -o "/home/chimak/Downloads/%(title)s" '
        alias yt18='/usr/bin/python3 /usr/local/bin/youtube-dl -f 18 -o "/home/chimak/Downloads/%(title)s" '
        alias yth='/usr/bin/python3 /usr/local/bin/youtube-dl -o "/home/chimak/Downloads/%(title)s" '
        alias ytu='sudo /usr/bin/python3 /usr/local/bin/youtube-dl -U'
        though I've not tried the last as yet.
        Kubuntu 20.04

        Comment


          #5
          I installed youtube-dl from the Bionic repository.
          It works fine without a link or an alias.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment


            #6
            Originally posted by chimak111 View Post
            Thanks for looking into this!

            I get
            Code:
            $ ls -la /usr/bin/python*
            lrwxrwxrwx 1 root root       9 Sep 28 13:53 /usr/bin/python3 -> python3.6
            -rwxr-xr-x 1 root root 4567672 Sep 12 23:56 /usr/bin/python3.6
            -rwxr-xr-x 1 root root 4567672 Sep 12 23:56 /usr/bin/python3.6m
            lrwxrwxrwx 1 root root      10 Sep 28 13:53 /usr/bin/python3m -> python3.6m
            $
            Could it be that you have more entries because you added more stuff to your system by now? Mine is relatively new.
            yes ,,,,as you see I also have python2.7 installed , and lots of other stuff

            but like I said , youtube-dl is looking for "python" in /usr/bin and not pythonx.x or pythonx .

            VINNY
            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment


              #7
              Originally posted by GreyGeek View Post
              I installed youtube-dl from the Bionic repository.
              It works fine without a link or an alias.
              that is true ,,,,but we are talking about the git ver that will allow updating with "sudo youtube-dl -U" it is newer and can be kept newer .

              VINNY
              i7 4core HT 8MB L3 2.9GHz
              16GB RAM
              Nvidia GTX 860M 4GB RAM 1152 cuda cores

              Comment


                #8
                Originally posted by vinnywright View Post
                that is true ,,,,but we are talking about the git ver that will allow updating with "sudo youtube-dl -U" it is newer and can be kept newer .

                VINNY
                That indeed is why I'm going with the github version:

                Code:
                $ /usr/bin/python3 /usr/local/bin/youtube-dl --version
                2018.09.26
                $ apt policy youtube-dl
                youtube-dl:
                 Installed: (none)
                 Candidate: 2018.03.14-1
                $
                As you can see, the repo version is already old.

                That's why I installed mpv from the repos with "--no-install-recommends" to avoid it pulling the repo version of youtube-dl.
                Kubuntu 20.04

                Comment


                  #9
                  Originally posted by chimak111 View Post
                  That indeed is why I'm going with the github version:

                  Code:
                  $ /usr/bin/python3 /usr/local/bin/youtube-dl --version
                  2018.09.26
                  $ apt policy youtube-dl
                  youtube-dl:
                  Installed: (none)
                  Candidate: 2018.03.14-1
                  $
                  As you can see, the repo version is already old.

                  That's why I installed mpv from the repos with "--no-install-recommends" to avoid it pulling the repo version of youtube-dl.
                  I have both versions installed , but the system uses the git ver,

                  Code:
                  vinny@vinny-Bonobo-Extreme:~$ youtube-dl --version
                  [COLOR=#ff0000]2018.09.26[/COLOR]
                  vinny@vinny-Bonobo-Extreme:~$ apt policy youtube-dl
                  youtube-dl:
                  Installed: 2018.03.14-1
                  Candidate: 2018.03.14-1
                  Version table:
                  *** 2018.03.14-1 500
                       500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
                       500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
                       100 /var/lib/dpkg/status
                  vinny@vinny-Bonobo-Extreme:~$ dpkg -l | grep youtube-dl
                  ii  youtube-dl                                      2018.03.14-1                                     all          downloader of videos from YouTube and other sites
                  vinny@vinny-Bonobo-Extreme:~$ ls -la /usr/bin | grep youtube-dl
                  -rwxr-xr-x  1 root root          88 Mar 16  2018 youtube-dl
                  vinny@vinny-Bonobo-Extreme:~$ which youtube-dl
                  [COLOR=#ff0000]/usr/local/bin/youtube-dl[/COLOR]
                  vinny@vinny-Bonobo-Extreme:~$ ls -la /usr/local/bin | grep youtube-dl
                  -rwxr-xr-x  1 root root 1701941[COLOR=#0000ff] Sep 30 09:56[/COLOR] youtube-dl
                  vinny@vinny-Bonobo-Extreme:~$
                  the time/date stamp on it shows that I just updated it and the "which" call shows which one the system is using .

                  VINNY
                  i7 4core HT 8MB L3 2.9GHz
                  16GB RAM
                  Nvidia GTX 860M 4GB RAM 1152 cuda cores

                  Comment


                    #10
                    Originally posted by vinnywright View Post
                    that is true ,,,,but we are talking about the git ver that will allow updating with "sudo youtube-dl -U" it is newer and can be kept newer .

                    VINNY
                    Oh, Ok...
                    $ sudo youtube-dl -U

                    Usage: youtube-dl [OPTIONS] URL [URL...]

                    youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian.
                    Please update youtube-dl using apt(8).
                    See https://packages.debian.org/sid/youtube-dl for the latest packaged version.
                    So I used:
                    Code:
                    $ [FONT=courier new][B]sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl[/B][/FONT]
                    
                    [FONT=courier new][B]$ sudo chmod a+rx /usr/local/bin/youtube-dl[/B][/FONT]
                    
                    [FONT=courier new][B]$ sudo youtube-dl -U
                    [/B][/FONT]
                    youtube-dl is up-to-date (2018.09.26)
                    I installed it over the version in the repository, so all the Python dependencies and links were already satisfied.

                    Thanks for the info!
                    Last edited by GreyGeek; Sep 30, 2018, 02:05 PM.
                    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                    – John F. Kennedy, February 26, 1962.

                    Comment


                      #11
                      Originally posted by GreyGeek View Post
                      Oh, Ok...

                      So I used:
                      Code:
                      $ [FONT=courier new][B]sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl[/B][/FONT]
                      
                      [FONT=courier new][B]$ sudo chmod a+rx /usr/local/bin/youtube-dl[/B][/FONT]
                      
                      [FONT=courier new][B]$ sudo youtube-dl -U
                      [/B][/FONT]
                      youtube-dl is up-to-date (2018.09.26)
                      I installed it over the version in the repository, so all the Python dependencies and links were already satisfied.

                      Thanks for the info!
                      you now have both as well ,,,,, the Ubuntu "youtube-dl" installs to "/usr/bin" the one from "yt-dl.org" you used "wget" to get , installs to "/usr/local/bin"
                      the system will give you that one over the first .

                      check "which youtube-dl"

                      VINNY
                      i7 4core HT 8MB L3 2.9GHz
                      16GB RAM
                      Nvidia GTX 860M 4GB RAM 1152 cuda cores

                      Comment


                        #12
                        Originally posted by vinnywright View Post
                        you now have both as well ,,,,, the Ubuntu "youtube-dl" installs to "/usr/bin" the one from "yt-dl.org" you used "wget" to get , installs to "/usr/local/bin"
                        the system will give you that one over the first .

                        check "which youtube-dl"

                        VINNY
                        $ which youtube-dl
                        /usr/local/bin/youtube-dl

                        $ vdir /usr/bin/youtube-dl
                        -rwxr-xr-x 1 root root 409 Sep 14 21:11 /usr/bin/youtube-dl

                        I uninstalled the repository version.

                        You're the master, Vinny!
                        Last edited by GreyGeek; Sep 30, 2018, 02:37 PM.
                        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                        – John F. Kennedy, February 26, 1962.

                        Comment


                          #13
                          Originally posted by GreyGeek View Post
                          $ which youtube-dl
                          /usr/local/bin/youtube-dl

                          $ vdir /usr/bin/youtube-dl
                          -rwxr-xr-x 1 root root 409 Sep 14 21:11 /usr/bin/youtube-dl

                          You're the master, Vinny!
                          I use it a lot , so am somewhat aware of it.

                          VINNY
                          i7 4core HT 8MB L3 2.9GHz
                          16GB RAM
                          Nvidia GTX 860M 4GB RAM 1152 cuda cores

                          Comment


                            #14
                            I just got back from a 2-week trip and am still a bit out of it. Above all, I don't understand the bit about git and am leery of anything called youtube-something.

                            I plan to do a clean install of the 18.04 Neon and am wondering what version I should use. Should I install the git version or not? Woulld someone please either explain or point me to an explanation.

                            Do I understand correctly that there are now at least three ways of doing line-mode updates: apt-get, pkcon and youtube-dl?

                            Thanks in advance.
                            Last edited by joneall; Oct 02, 2018, 01:42 AM. Reason: Added update query.
                            'I must have a prodigious quantity of mind; it takes me as much as a week sometimes to make it up.' Mark Twain

                            Comment


                              #15
                              Forget about youtube-dl. That's a downloader for YouTube videos

                              If you want a relatively stable experience with KDE Neon, choose the user edition from https://neon.kde.org/download which will take you to https://files.kde.org/neon/images/ne...ition/current/, and read the FAQ at the top of this page: https://neon.kde.org/faq

                              Re. apt-get, apt, and pkcon, please see https://www.kubuntuforums.net/showth...konsole-output. sudo apt update followed by sudo apt full-upgrade should keep your system up to date.
                              Attached Files
                              Last edited by chimak111; Oct 02, 2018, 03:10 AM.
                              Kubuntu 20.04

                              Comment

                              Working...
                              X