coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.93k stars 640 forks source link

No download - FileNotFound #368

Open bmrejen opened 8 years ago

bmrejen commented 8 years ago

🚨Please review the Troubleshooting section before reporting any issue. Don't forget also to check the current issues to avoid duplicates.

Subject of the issue

Followed the instructions but had an error message

Your environment

https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/info China

Expected behaviour

It should download all the videos.

Actual behaviour

E:\360\edx-dl-master\edx-dl-master>py edx-dl.py -u XXXXXXXXXXXXX@gmail.com https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/info edx_dl version 0.0.0 Password: Building initial headers for future requests. Getting initial CSRF token. Found CSRF token. Logging into Open edX site: https://courses.edx.org/login_ajax Extracting course information from dashboard. Downloading China [HarvardX/SW12x/2013_SOND] Downloading 16 section(s) Section 1: What's this all about? Trailer Important Preliminary Survey Tutorial Section 2: Meet ChinaX Meet the Professors Meet the Team Section 3: The Big Picture Introduction: Time, Space and Identity None Section 2: Space Section 3: Identity Section 4: China's History Mapped Glossary Feedback Reference Section 4: Week 1 Office Hours Week 1 Office Hours Section 5: Origin Stories Historical Overview Section 1: Introduction: Origin Stories Section 2: How We Tell Our Stories: Artifacts vs. Texts Section 3: Culture Heroes and Sage Kings Section 4: What Archaeology Tells Us Section 5: The History of the Two Stories Section 6: Interview with Professor Rowan Flad Discussion Check Glossary Feedback Reference Section 6: Week 2 Office Hours Week 2 Office Hours Section 7: Legitimation of Power in Antiquity Historical Overview Section 1: Introduction Section 2: The Shang System and Its Sources Section 3: Sources of Shang I - How to Read a Bronze Vessel? Section 4: Sources of Shang II - Origin of Writing Section 5: The Zhou System and Its Sources Section 6: Zhou Bronzes (Optional) Section 7: Conclusion - Zhou Moves East Forum Discussion Glossary Feedback Reference Section 8: Week 3 Office Hours Week 3 Office Hours Section 9: Discussing One Interpretation of the Nature of Chinese Civilization Section 1: Discussing One Interpretation of the Nature of Chinese Civilization Section 2: Professor Bol and Kirby discuss "Early Civilization in China: Reflections on How It Became Chinese" Discussion Check Glossary Feedback Reference Section 10: Confucius and Confucianism Historical Overview Section 1: The Many Faces of Confucianism Section 2: Confucius of The Analects Section 3: Reading The Analects Section 4: Confucius' Successors Discussion Forum Section 5: The Confucian Path Section 6: Professor Puett on Zhuangzi (Optional) Discussion Check Reading Glossary Feedback Reference Section 11: Week 5 Office Hours Week 5 Office Hours Section 12: Competing Schools and Warring States Section 1: The Hundred Schools of Thought Section 2: Strategies for Doing Good Section 3: Strategies for Survival Section 4: Strategies for Gaining Control Section 5: Conclusion Section 6: Professor Puett on Zhuangzi (Optional) Section 7: Professor Puett on Zhuangzi in Relation to Confucius (Optional) Section 8: Professor Puett on Laozi (Optional) Discussion Forum: Confucian thinkers and the Hundred Masters Discussion Check Reading Glossary and Quotes Feedback Reference Section 13: Week 6 Office Hours Week 6 Office Hours Section 14: Notes Sharing Notes Sharing Course Review Section 15: Final Assessment Final Assessment Section 16: Mini-Course 1 Conclusion Mini-Course 1 Conclusion Feedback End-of-Course Survey Extracting all units information in parallel. Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/e6edeb3ff6c240e3b6a709ad341c4e5c/9d52e4ed873741069a504cacfea407b1/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/e6edeb3ff6c240e3b6a709ad341c4e5c/f686cfb43eb14df584ae014106bbdd14/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c6e473678314f789dd65640333f9a73/9537f615720d4331ac17cf5526a09461/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/ebc92d6d3b3f489fb77465c7ef6e0b70/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/9ffda64e4ec8496e86611e304cc6b783/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/c07614b4e4ad4ddfacfbc61cd555c390/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/62277e032d474b83835d71281b00b82c/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/bc70d585d57f443692d6da8a2017bb18/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/ca3c4026564b43f59cd10ef50504763b/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/024570126409414eb9f00084f7d736f3/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/7acceca4a64742979539e51f9dcfe66f/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/d306ebd1b41a4375871fd11f0e17a644/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/7b64823b8be049c68b1ac38686c5256f/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/5750d8272a1141c89f1caa5d28f7b071/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/632fa1a794594f208b968c7a1d0d548d/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/d41adf4f81d74237824cf516fbb58a18/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/9bf2693aa37045b8b08be5224bd04488/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/32b3ad25d11f4e79a56fc0cad39f1fe2/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c6e473678314f789dd65640333f9a73/8a9fcdb86fe8460dac9bbe23f1b3e63d/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/1ecdbbd883ef4419ba57f2ba8d6d9cc2/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/683bd1daee7f42b3bca2868f1401f67f/f46c889e5a574ba6b2913361cc121460/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/e6edeb3ff6c240e3b6a709ad341c4e5c/678be3665ba349ac88bcc2c71dad6f30/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/f63e03e1836643ad9f59df4c2d9dc237/9193a16d743a47b38e687827d0d494fa/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/00e385fb89474b91bc90b2d0a677d3f4/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/8cfca16718324944bb4d83dde881e798/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/14748f69973e4eccbbfd5180839b78f5/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/08e377093ec046918f8d96bd3c10b521/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/0ef1078fa876439387eef4abf8cd4ebc/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/09c055bc30bf454e82095012bb16a895/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/550fa450f6f846e38805c58d7658fc85/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/35a66a2705f6461cb051f1674f746183/3b8ed9626d7f4244aebebabc84742ca1/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/0b3eaee136b54789a76a71f8231a30c2/cbf04a73b76647edbf78fe4d403ec1ef/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/5bd893fcb71740c2a51fedf5fa72996c/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/c33eb77dd2bd4d14bbca9bb567e51c5d/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/4d01fbf74e4e48f9b271e14082d7efad/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/b2bf1c0cb0d14f7691b6f1b85889dced/ba74ed2fcbd14013bb1d3b7c9d8bb6d0/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/c34856d348db45359a1454a0b0a7378e/89e01283799f4420960f59a929d9f0c3/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/c34856d348db45359a1454a0b0a7378e/e759d42b73774f21943812279aabc051/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/c34856d348db45359a1454a0b0a7378e/cb359e95852b4de18dafd9d141a21412/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/dcb9e81a9e2e493b8fe1ae06b1c68f51/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/ee1e776fe56c428eb3f4d0c9434b1cd3/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/04d23151765a44119c0523fe66d1d7e8/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/ff9950559e1e4440ba304218b24f4ff8/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/daa596a00dfe4524a9b52f85a07f69ed/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/9ab0c56f07a04668b1d2cc8d5113247b/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/92742d3fa67d4b72832f48b91442e874/c571d827288448edbb7d25e66620cf41/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/e0ace8fdb3794f3d93b8c7e1b998964c/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/270fa3aa86ef46d3938bc68db2ead647/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/744fec5d7bd844e2b90b9d42ec71988e/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/fe7e4dd7fcb74f10bd846c4aa14b7465/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/1c0ecfac733c463f8cdbf3daae55fc70/6df025a57c6c40b28e4e114eed364086/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/c34856d348db45359a1454a0b0a7378e/524234d39f87446dbf66dc9122c53ed2/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/c34856d348db45359a1454a0b0a7378e/5ec5b6978ccc44f7ab237aa55cf6966d/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/c34856d348db45359a1454a0b0a7378e/5a978f0875af4c3ea9d84b58b3edd854/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/1f586479105141c8b37faaf4ee863f41/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/38217338946e4f1f85703c70629acdc4/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/11b24fa1075542509de588b8bab51496/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/f19b10d5b6cb48b9a724f8b78519cbe9/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/d9bd192ffafb4f3488a7f73408e7d7e7/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/b270f12bfc8b417ab02672dd9caf538c/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/6435f3abf67e4718a3bfc3ad576bba0e/044a88cbcdea43c38387d6effe10bbda/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/43e4c677054342bb9bb5f438d6c73929/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/1b5c8608c5e44c4b8b4e42cb3851cc74/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/f41f61877a8242f9b4a17dc15caaf60a/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/89da18b8e3734c4aaf8336ce5bfeb57e/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/333db8d2c1834b3e98c5cc5d555a5ed8/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/7bada39e4e154bd5b1cb4a396ffaae49/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/ba8af158f90746349de1c568def120e1/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/2495cda7c5f54ab09b2bc343af69df42/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/ac191d7007084cf7bf008166c1b77ff1/b5f638be9bf64d219e9238550604499e/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/e1611702f62a43e5a8aea6bad7a9d710/5adbb8387cb14822932cd95bf079e16f/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/4ed968ed9df64a9a8293df55892e7def/d2dee5fae2ed4fb69a508aaf0d218e26/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/11a6da27ec4846b79ad918f9dfe41769/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/edca4cf223914b739f6d2da3b4a67b19/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/47124f150a314d6d9af83c6de6bb691f/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/7c4a7bf359a14906b55d6c09fc1cd0bc/02c518346891453bbb90bae28a43fa86/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/f2b335b931bb4af096f96207d186ddba/05329e770a094534af5ba5fc77e65e81/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/ac191d7007084cf7bf008166c1b77ff1/cc9a37f724b74795afbfb2957bca23a6/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/4ed968ed9df64a9a8293df55892e7def/3a954968196248b5b3d2842528e2eaef/' Processing 'https://courses.edx.org/courses/HarvardX/SW12x/2013_SOND/courseware/4ed968ed9df64a9a8293df55892e7def/f5ff311e60cf40a5970f72f3ab58308d/' Removed 4 duplicated urls from 382 in total Output directory: Downloaded [download] https://youtube.com/watch?v=lcg9UM1UQuc => Downloaded\China\01-Whats_this_all_about\01-%(title)s-%(id)s.%(ext)s Downloading video with URL https://youtube.com/watch?v=lcg9UM1UQuc from YouTube. Traceback (most recent call last): File "edx-dl.py", line 6, in edx_dl.main() File "E:\360\edx-dl-master\edx-dl-master\edx_dl\edx_dl.py", line 1051, in main download(args, selections, all_units, headers) File "E:\360\edx-dl-master\edx-dl-master\edx_dl\edx_dl.py", line 836, in download headers) File "E:\360\edx-dl-master\edx-dl-master\edx_dl\edx_dl.py", line 798, in download_unit headers) File "E:\360\edx-dl-master\edx-dl-master\edx_dl\edx_dl.py", line 780, in download_video skip_or_download(youtube_downloads, headers, args) File "E:\360\edx-dl-master\edx-dl-master\edx_dl\edx_dl.py", line 767, in skip_or_download f(url, filename, headers, args) File "E:\360\edx-dl-master\edx-dl-master\edx_dl\edx_dl.py", line 700, in download_url download_youtube_url(url, filename, headers, args) File "E:\360\edx-dl-master\edx-dl-master\edx_dl\edx_dl.py", line 740, in download_youtube_url execute_command(cmd, args) File "E:\360\edx-dl-master\edx-dl-master\edx_dl\utils.py", line 37, in execute_command subprocess.check_call(cmd) File "C:\Users\HP-6530b\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 579, in check_call retcode = call(_popenargs, _kwargs) File "C:\Users\HP-6530b\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 560, in call with Popen(_popenargs, _kwargs) as p: File "C:\Users\HP-6530b\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 950, in init restore_signals, start_new_session) File "C:\Users\HP-6530b\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 1220, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

Edxdownloader commented 7 years ago

I'm having this exact same issue... Did you solve by any chance?

antc11 commented 6 years ago

I had this issue and have no idea about Python however created a lot of print() requests into edx_dl.py and util.py to assist debugging.

Discovered that it couldn't find youtube-dl which in my environment appears to use ..\Scripts\youtube-dl.exe.

Had a PATH to C:...\Scripts\ but hadn't rebooted, need to reboot to take affect in Windows.

So if this is same issue add C:...\Scripts\ to you PATH and retry.