TypeError: object of type 'generator' has no len() #3660

Closed
opened 2026-02-20 23:28:17 -05:00 by deekerman · 1 comment
Owner

Originally created by @computerfreak105 on GitHub (Dec 14, 2014).

Hi, this url doesn't work for me:
https://www.youtube.com/channel/UCRqPLUhVrHf2aBWG45vsQNg

D:>youtube-dl -f 140/m4a -o d:\yt/%(uploader)s/%(title)s_%(upload_date)s.%(ext)
s -a yt.txt --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-f', '140/m4a', '-o', 'd:\yt/%(uploader)s/%(title)
s_%(upload_date)s.%(ext)s', '-a', 'yt.txt', '--verbose']
[debug] Batch file urls: [u'https://www.youtube.com/channel/UCRqPLUhVrHf2aBWG45v
sQNg', u'https://www.youtube.com/channel/UCTrzehjmmSq8LGelmdVgkSQ', u'https://ww
w.youtube.com/channel/UC6hF8KUR8IBl79elnmmyxtg', u'https://www.youtube.com/chann
el/UClSI_tMwPf7jML91xBV4TIQ']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.12.14
[debug] Python version 2.7.8 - Windows-XP-5.1.2600-SP3
[debug] exe versions: none
[debug] Proxy map: {}
[youtube:channel] UCRqPLUhVrHf2aBWG45vsQNg: Downloading webpage
[download] Downloading playlist: UCRqPLUhVrHf2aBWG45vsQNg
[youtube:channel] playlist UCRqPLUhVrHf2aBWG45vsQNg: Downloading 18 videos
[download] Downloading video #1 of 18
[youtube] cssnsNZkaHU: Downloading webpage
[youtube] cssnsNZkaHU: Extracting video information
[youtube] cssnsNZkaHU: Downloading DASH manifest
[debug] Invoking downloader on 'https://r7---sn-nfpnnjvh-1giz.googlevideo.com/vi
deoplayback?id=72cb27b0d6646875&itag=140&source=youtube&requiressl=yes&ms=au&mm=
31&gcr=ch&mv=m&ratebypass=yes&mime=audio/mp4&gir=yes&clen=43419819&lmt=141692649
3237674&dur=2704.590&key=dg_yt0&sver=3&fexp=900064,900718,901493,927622,932404,9
405645,9405855,943917,947209,947218,948124,952302,952605,952901,953912,955301,95
7103,957105,957201&mt=1418537162&signature=0E6CA914561781F920A30F1288141E764160E
A95.7278400F519BF21659A58818ED0BFC9797936ACA&upn=3QmmOsMrnOE&ip=178.192.42.248&i
pbits=0&expire=1418558781&sparams=ip,ipbits,expire,id,itag,source,requiressl,ms,
mm,gcr,mv,ratebypass,mime,gir,clen,lmt,dur'
Traceback (most recent call last):
File "main.py", line 19, in
File "youtube_dl__init__.pyo", line 356, in main
File "youtube_dl__init__.pyo", line 346, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1129, in download
File "youtube_dl\YoutubeDL.pyo", line 566, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 698, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 619, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 566, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 612, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 901, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 1099, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1075, in dl
File "youtube_dl\downloader\common.pyo", line 297, in download
File "youtube_dl\downloader\http.pyo", line 157, in real_download
File "youtube_dl\utils.pyo", line 244, in sanitize_open
File "ntpath.pyo", line 64, in join
File "ntpath.pyo", line 114, in splitdrive
TypeError: object of type 'generator' has no len()

Hope this helps.
Thanks
Ben

Originally created by @computerfreak105 on GitHub (Dec 14, 2014). Hi, this url doesn't work for me: https://www.youtube.com/channel/UCRqPLUhVrHf2aBWG45vsQNg D:>youtube-dl -f 140/m4a -o d:\yt/%(uploader)s/%(title)s_%(upload_date)s.%(ext) s -a yt.txt --verbose [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-f', '140/m4a', '-o', 'd:\yt/%(uploader)s/%(title) s_%(upload_date)s.%(ext)s', '-a', 'yt.txt', '--verbose'] [debug] Batch file urls: [u'https://www.youtube.com/channel/UCRqPLUhVrHf2aBWG45v sQNg', u'https://www.youtube.com/channel/UCTrzehjmmSq8LGelmdVgkSQ', u'https://ww w.youtube.com/channel/UC6hF8KUR8IBl79elnmmyxtg', u'https://www.youtube.com/chann el/UClSI_tMwPf7jML91xBV4TIQ'] [debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252 [debug] youtube-dl version 2014.12.14 [debug] Python version 2.7.8 - Windows-XP-5.1.2600-SP3 [debug] exe versions: none [debug] Proxy map: {} [youtube:channel] UCRqPLUhVrHf2aBWG45vsQNg: Downloading webpage [download] Downloading playlist: UCRqPLUhVrHf2aBWG45vsQNg [youtube:channel] playlist UCRqPLUhVrHf2aBWG45vsQNg: Downloading 18 videos [download] Downloading video #1 of 18 [youtube] cssnsNZkaHU: Downloading webpage [youtube] cssnsNZkaHU: Extracting video information [youtube] cssnsNZkaHU: Downloading DASH manifest [debug] Invoking downloader on 'https://r7---sn-nfpnnjvh-1giz.googlevideo.com/vi deoplayback?id=72cb27b0d6646875&itag=140&source=youtube&requiressl=yes&ms=au&mm= 31&gcr=ch&mv=m&ratebypass=yes&mime=audio/mp4&gir=yes&clen=43419819&lmt=141692649 3237674&dur=2704.590&key=dg_yt0&sver=3&fexp=900064,900718,901493,927622,932404,9 405645,9405855,943917,947209,947218,948124,952302,952605,952901,953912,955301,95 7103,957105,957201&mt=1418537162&signature=0E6CA914561781F920A30F1288141E764160E A95.7278400F519BF21659A58818ED0BFC9797936ACA&upn=3QmmOsMrnOE&ip=178.192.42.248&i pbits=0&expire=1418558781&sparams=ip,ipbits,expire,id,itag,source,requiressl,ms, mm,gcr,mv,ratebypass,mime,gir,clen,lmt,dur' Traceback (most recent call last): File "**main**.py", line 19, in <module> File "youtube_dl__init__.pyo", line 356, in main File "youtube_dl__init__.pyo", line 346, in _real_main File "youtube_dl\YoutubeDL.pyo", line 1129, in download File "youtube_dl\YoutubeDL.pyo", line 566, in extract_info File "youtube_dl\YoutubeDL.pyo", line 698, in process_ie_result File "youtube_dl\YoutubeDL.pyo", line 619, in process_ie_result File "youtube_dl\YoutubeDL.pyo", line 566, in extract_info File "youtube_dl\YoutubeDL.pyo", line 612, in process_ie_result File "youtube_dl\YoutubeDL.pyo", line 901, in process_video_result File "youtube_dl\YoutubeDL.pyo", line 1099, in process_info File "youtube_dl\YoutubeDL.pyo", line 1075, in dl File "youtube_dl\downloader\common.pyo", line 297, in download File "youtube_dl\downloader\http.pyo", line 157, in real_download File "youtube_dl\utils.pyo", line 244, in sanitize_open File "ntpath.pyo", line 64, in join File "ntpath.pyo", line 114, in splitdrive TypeError: object of type 'generator' has no len() Hope this helps. Thanks Ben
Author
Owner

@jaimeMF commented on GitHub (Dec 14, 2014):

Duplicate of #4324.

@jaimeMF commented on GitHub (Dec 14, 2014): Duplicate of #4324.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#3660
No description provided.