Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos
Hi guys, do you still get the same issue with new pafy in Debian? On 07/06/2016 06:16 PM, Zlatan Todoric wrote: Hi, On Tue, 24 May 2016 11:47:52 +0200 =?utf-8?q?R=C3=A9mi_Letot?=wrote: Package: mps-youtube Version: 0.2.5-5 Severity: normal Dear Maintainer, here is what I get when trying to download some videos: Enter /search-term to search or [h]elp url -_KfYQm39kQ Traceback (most recent call last): File "/usr/bin/mpsyt", line 9, in load_entry_point('mps-youtube==0.2.5', 'console_scripts', 'mpsyt')() File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4780, in main if matchfunction(k, v, userinput): File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4680, in matchfunction func(*matches) File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4243, in yt_url p = pafy.new(url) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 148, in new return Pafy(url, basic, gdata, signature, size, callback) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 866, in __init__ self.fetch_basic() File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 892, in fetch_basic smaps, js_url, mainfunc, dashurl = get_js_sm(self.videoid) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 481, in get_js_sm dash_url = stream_info['dashmpd'] KeyError: 'dashmpd' And then I'm back to my shell. I searched the web, and found recommandations to install youtube-dl, but this package is already installed on my system and has no trouble to download that particular video. Thanks for your work, -- Rémi -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mps-youtube depends on: ii ffmpeg 7:3.0.1-3 ii mpv0.14.0-1+b2 ii python33.5.1-3 ii python3-pafy 0.3.80-1 ii python3-pkg-resources 20.10.1-1 Hi, yes this is a issue with pafy backend (an upstream issue). It got resolved used with youtube-dl as backend (which will be available in my new update) but the issue seems to be that it needs python3 version of youtube-dl which appears to not be case in Debian atm but I will check.
Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos
Hi, On Tue, 24 May 2016 11:47:52 +0200 =?utf-8?q?R=C3=A9mi_Letot?=wrote: > Package: mps-youtube > Version: 0.2.5-5 > Severity: normal > > Dear Maintainer, > > here is what I get when trying to download some videos: > > > Enter /search-term to search or [h]elp > > > > url -_KfYQm39kQ > Traceback (most recent call last): > File "/usr/bin/mpsyt", line 9, in > load_entry_point('mps-youtube==0.2.5', 'console_scripts', 'mpsyt')() > File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4780, in > main > if matchfunction(k, v, userinput): > File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4680, in > matchfunction > func(*matches) > File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4243, in > yt_url > p = pafy.new(url) > File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 148, in new > return Pafy(url, basic, gdata, signature, size, callback) > File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 866, in __init__ > self.fetch_basic() > File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 892, in fetch_basic > smaps, js_url, mainfunc, dashurl = get_js_sm(self.videoid) > File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 481, in get_js_sm > dash_url = stream_info['dashmpd'] > KeyError: 'dashmpd' > > > And then I'm back to my shell. > > I searched the web, and found recommandations to install > youtube-dl, but this package is already installed on my > system and has no trouble to download that particular > video. > > Thanks for your work, > -- > Rémi > > -- System Information: > Debian Release: stretch/sid > APT prefers unstable > APT policy: (500, 'unstable'), (1, 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores) > Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages mps-youtube depends on: > ii ffmpeg 7:3.0.1-3 > ii mpv0.14.0-1+b2 > ii python33.5.1-3 > ii python3-pafy 0.3.80-1 > ii python3-pkg-resources 20.10.1-1 Hi, yes this is a issue with pafy backend (an upstream issue). It got resolved used with youtube-dl as backend (which will be available in my new update) but the issue seems to be that it needs python3 version of youtube-dl which appears to not be case in Debian atm but I will check.
Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos
Package: mps-youtube Version: 0.2.5-5 Followup-For: Bug #825169 Hello, I run into the same problem. Bump! Here's a slightly different stacktrace: Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 3497, in preload stream = get_streams(song) File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 345, in get_streams p = get_pafy(vid, force=force, callback=callback) File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 314, in get_pafy p = pafy.new(item.ytid, callback=callback_fn) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 148, in new return Pafy(url, basic, gdata, signature, size, callback) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 866, in __init__ self.fetch_basic() File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 892, in fetch_basic smaps, js_url, mainfunc, dashurl = get_js_sm(self.videoid) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 481, in get_js_sm dash_url = stream_info['dashmpd'] KeyError: 'dashmpd' -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 4.6.0-1-686-pae (SMP w/2 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mps-youtube depends on: ii ffmpeg 7:3.0.2-4 ii mpv0.14.0-1+b2 ii python33.5.1-4 ii python3-pafy 0.3.80-1 ii python3-pkg-resources 20.10.1-1.1 pn python3:any Versions of packages mps-youtube recommends: ii libnotify4 0.7.6-2 ii xclip 0.12+svn84-4 mps-youtube suggests no packages. -- no debconf information
Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos
Package: mps-youtube Version: 0.2.5-5 Severity: normal Dear Maintainer, here is what I get when trying to download some videos: Enter /search-term to search or [h]elp > url -_KfYQm39kQ Traceback (most recent call last): File "/usr/bin/mpsyt", line 9, in load_entry_point('mps-youtube==0.2.5', 'console_scripts', 'mpsyt')() File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4780, in main if matchfunction(k, v, userinput): File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4680, in matchfunction func(*matches) File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4243, in yt_url p = pafy.new(url) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 148, in new return Pafy(url, basic, gdata, signature, size, callback) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 866, in __init__ self.fetch_basic() File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 892, in fetch_basic smaps, js_url, mainfunc, dashurl = get_js_sm(self.videoid) File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 481, in get_js_sm dash_url = stream_info['dashmpd'] KeyError: 'dashmpd' And then I'm back to my shell. I searched the web, and found recommandations to install youtube-dl, but this package is already installed on my system and has no trouble to download that particular video. Thanks for your work, -- Rémi -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mps-youtube depends on: ii ffmpeg 7:3.0.1-3 ii mpv0.14.0-1+b2 ii python33.5.1-3 ii python3-pafy 0.3.80-1 ii python3-pkg-resources 20.10.1-1 pn python3:any Versions of packages mps-youtube recommends: ii libnotify4 0.7.6-2 ii xclip 0.12+svn84-4 mps-youtube suggests no packages. -- no debconf information