coursera-dl / coursera-dl

Script for downloading Coursera.org videos and naming them.
GNU Lesser General Public License v3.0
9.35k stars 2.21k forks source link

Not able to download videos #170

Closed rpolavar closed 9 years ago

rpolavar commented 11 years ago

Hi All:

I am facing a problem with the script for the last two days. I have upgraded the script. I have stopped calling coursera_dl.py. Instead, as recommended, I am calling coursera-dl from the top directory. Here is the error: casebasedbiostat-001 Downloading class: casebasedbiostat-001 Traceback (most recent call last): File "c:\z\coursera\coursera\coursera-dl", line 6, in coursera_dl.main() File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 693, in main if download_class(args, class_name): File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 648, in download_class username=args.username, password=args.password File "c:\z\coursera\coursera\coursera\cookies.py", line 320, in get_cookies_for_class session.cookies.update(cookies) File "C:\Anaconda\lib_abcoll.py", line 494, in update self[key] = other[key] File "C:\Anaconda\lib\site-packages\requests\cookies.py", line 241, in getitem return self._find_no_duplicates(name) File "C:\Anaconda\lib\site-packages\requests\cookies.py", line 282, in _find_no_duplicates raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path)) KeyError: "name=Cookie(version=0, name='csrf_token', value='Hsa8Q5jWGacAABdlDU8o', port=None, port_specified=False, domain='class.coursera.org', domain_specified=False, domain_initial_dot=False, path='/compmethods-003', path_specified=False, secure=False, expires=1378357039, discard=False, comment=None, comment_url=None, rest={}, rfc2109=False), domain=None, path=None"

rbrito commented 11 years ago

Hi, Ramana.

On Tue, Aug 6, 2013 at 2:16 AM, Ramana Polavarapu notifications@github.com wrote:

I am facing a problem with the script for the last two days. I have upgraded the script. I have stopped calling coursera_dl.py. Instead, as recommended, I am calling coursera-dl from the top directory. Here is the error: casebasedbiostat-001 Downloading class: casebasedbiostat-001

Here you are trying to download casebasedbiostat-001.

(...)

KeyError: "name=Cookie(version=0, name='csrf_token', value='Hsa8Q5jWGacAABdlDU8o', port=None, port_specified=False, domain='class.coursera.org', domain_specified=False, domain_initial_dot=False, path='/compmethods-003',

Here the authentication cookie is for compmethods-003? Are you trying to download more than one course?

Can you post the entire output of calling the script with the --debug option passed, including the command line? (Feel free to obfuscate only your password and, possibly, your user, but leave the rest untouched).

Also, which versions of the packages are you using? In particular, which versions of the modules does pip report that you have installed? Any further information that we should know to help us help you?

What is the output of git show? Does it show the commit 088f4b96af91ebcf9a25f56b7402bd37e0d69a7b? Does it show my name? If you want some guidance collecting information about your system, please take a look at:

https://github.com/jplehmann/coursera#instructions

Regards,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

rpolavar commented 11 years ago

Hi Rogério:

Thank you for the detailed message. I have killed the cache (_cache folder). I have re-run the program. Here are the pieces of information that you have asked for:

c:\Coursera>python c:\z\coursera\coursera\coursera-dl --debug -u sriramana@gmail
.com -p  casebasedbiostat-001
root[main] Downloading class: casebasedbiostat-001
root[get_cookies_from_cache] Loaded cookies from c:\z\coursera\coursera\_cache\c
ookies\sriramana@gmail.com.txt
Traceback (most recent call last):
  File "c:\z\coursera\coursera\coursera-dl", line 6, in <module>
    coursera_dl.main()
  File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 693, in main
    if download_class(args, class_name):
  File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 648, in download_c
lass
    username=args.username, password=args.password
  File "c:\z\coursera\coursera\coursera\cookies.py", line 320, in get_cookies_fo
r_class
    session.cookies.update(cookies)
  File "C:\Anaconda\lib\_abcoll.py", line 494, in update
    self[key] = other[key]
  File "C:\Anaconda\lib\site-packages\requests\cookies.py", line 241, in __getit
em__
    return self._find_no_duplicates(name)
  File "C:\Anaconda\lib\site-packages\requests\cookies.py", line 282, in _find_n
o_duplicates
    raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name=Cookie(version=0, name='csrf_token', value='ZIyoo5SgWsWEYWqtyqOa
', port=None, port_specified=False, domain='class.coursera.org', domain_specifie
d=False, domain_initial_dot=False, path='/casebasedbiostat-001', path_specified=
False, secure=False, expires=1378367826, discard=False, comment=None, comment_ur
l=None, rest={}, rfc2109=False), domain=None, path=None"

c:\Coursera>
$ git show
commit 088f4b96af91ebcf9a25f56b7402bd37e0d69a7b
Author: Rog‚rio Brito <rbrito@ime.usp.br>
Date:   Wed Jul 17 09:34:09 2013 -0300
README: Add newer examples to avoid misleading people.
...

Pip freeze command output:

Cython==0.18
Flask==0.9
Jinja2==2.6
MDP==3.3
PIL==1.1.7
PySAL==1.5.0
PySide==1.1.2
PyYAML==3.10
Pygments==1.6
SQLAlchemy==0.7.8
Sphinx==1.1.3
Werkzeug==0.8.3
astropy==0.2
beautifulsoup4==4.1.3
biopython==1.60
bitarray==0.8.0
bitey==0.0
boto==2.8.0
chaco==4.2.1
conda==1.5.0
cubes==0.10.2
distribute==0.6.34
docutils==0.10
enable==4.2.1
gdata==2.0.17
gevent==0.13.8
gevent-websocket==0.3.6
gevent-zeromq==0.2.2
googlecl==0.9.12
greenlet==0.4.0
grin==1.2.1
h5py==2.1.1
ipython==0.13.1
llvmpy==0.11.1
lxml==3.0.2
matplotlib==1.2.0
menuinst==1.0.0
meta==development
networkx==1.7
nltk==2.0.4
nose==1.2.1
numba==0.7.0
numexpr==2.0.1
numpy==1.7.0
pandas==0.10.1
ply==3.4
psutil==0.6.1
py==1.4.12
pycparser==2.09.1
pycrypto==2.6
pyface==4.2.1
pyflakes==0.6.1
pyparsing==1.5.6
pyreadline==2.0-dev1
pytest==2.3.4
python-dateutil==2.1
pytz==2012j
pyzmq==2.2.0.1
requests==0.13.9
scikit-image==0.8.2
scikit-learn==0.13
scipy==0.11.0
six==1.2.0
spyder==2.1.13
statsmodels==0.4.3
sympy==0.7.1
tables==2.4.0
tornado==2.4.1
traits==4.2.1
traitsui==4.2.1
wsgiref==0.1.2
xlrd==0.9.0
xlwt==0.7.4

Yes, previously, I was trying to download more than one course. This time around, I downloaded only one. Thank you once again for your help.

Best regards,

Ramana

[rbrito: Edit to format the output as code.] [rbrito: Apparently, this does not work with things from e-mails.]

On 8/6/13, Rogério Brito notifications@github.com wrote:

Hi, Ramana.

On Tue, Aug 6, 2013 at 2:16 AM, Ramana Polavarapu notifications@github.com wrote:

I am facing a problem with the script for the last two days. I have upgraded the script. I have stopped calling coursera_dl.py. Instead, as recommended, I am calling coursera-dl from the top directory. Here is the error: casebasedbiostat-001 Downloading class: casebasedbiostat-001

Here you are trying to download casebasedbiostat-001.

(...)

KeyError: "name=Cookie(version=0, name='csrf_token', value='Hsa8Q5jWGacAABdlDU8o', port=None, port_specified=False, domain='class.coursera.org', domain_specified=False, domain_initial_dot=False, path='/compmethods-003',

Here the authentication cookie is for compmethods-003? Are you trying to download more than one course?

Can you post the entire output of calling the script with the --debug option passed, including the command line? (Feel free to obfuscate only your password and, possibly, your user, but leave the rest untouched).

Also, which versions of the packages are you using? In particular, which versions of the modules does pip report that you have installed? Any further information that we should know to help us help you?

What is the output of git show? Does it show the commit 088f4b96af91ebcf9a25f56b7402bd37e0d69a7b? Does it show my name? If you want some guidance collecting information about your system, please take a look at:

https://github.com/jplehmann/coursera#instructions

Regards,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br


Reply to this email directly or view it on GitHub: https://github.com/jplehmann/coursera/issues/170#issuecomment-22159667

rbrito commented 11 years ago

Ah, thanks for your pip output. That was very useful.

I noticed that you are using a pre-1.0 version of requests. Please, upgrade to a version post 1.2 (I use 1.2.3 locally). requests has changed its interface a lot. Please, report back what you see.

rpolavar commented 11 years ago

Thank you very much for pointing out the older version of requests. I upgraded it to 1.2.3. However, I face a problem with casebasedbiostat-001 still. The relevant portion of the stack trace is: Downloading: casebasedbiostat-001\01_Module_1-_What_common_background_understand ing_do_I_need_to_get_started_in_improving_my_ability_to_critically_and_quantitat ively_reason_about_health_questions\08_1.5B_Binomial_Distribution-_What_Do_Binom ial_Distributions_Look_Like.pdf Downloading https://d396qusza40orc.cloudfront.net/casebasedbiostat/lecture_slide s%2FZegerLecture5.pdf -> casebasedbiostat-001\01_Module_1-_What_common_backgroun d_understanding_do_I_need_to_get_started_in_improving_my_ability_to_critically_a nd_quantitatively_reason_about_health_questions\08_1.5B_Binomial_Distribution-_W hat_Do_Binomial_Distributions_Look_Like.pdf Starting new HTTPS connection (1): d396qusza40orc.cloudfront.net Traceback (most recent call last): File "c:\z\coursera\coursera\coursera-dl", line 6, in coursera_dl.main() File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 693, in main if download_class(args, class_name): File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 677, in download_c lass args.hooks) File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 364, in download_l ectures downloader.download(url, lecfn) File "c:\z\coursera\coursera\coursera\downloaders.py", line 43, in download self._start_download(url, filename) File "c:\z\coursera\coursera\coursera\downloaders.py", line 295, in _start_dow nload with open(filename, 'wb') as f: IOError: [Errno 2] No such file or directory: u'casebasedbiostat-001\01Module 1-_What_common_background_understanding_do_I_need_to_get_started_in_improving_my _ability_to_critically_and_quantitatively_reason_about_health_questions\08_1.5B _Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like.pdf'

Here is the entire stack trace: casebasedbiostat-001 Downloading class: casebasedbiostat-001 Starting new HTTPS connection (1): class.coursera.org Already authenticated. Downloaded https://class.coursera.org/casebasedbiostat-001/lecture/index (55913 bytes) Module_1-_What_common_background_understanding_do_I_need_to_get_started_in_impro ving_my_ability_to_critically_and_quantitatively_reason_about_health_questions 1.1._The_Scientific_Method 1.2._On_Cause 1.3._On_Probability 1.4A_Probability_Distributions-_MeanMedian 1.4B_Probability_Distributions-_Mean_MedianSpread 1.4C_Probability_Distributions-_Shape 1.5A_Binomial_Distribution-_Parameters 1.5B_Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like 1.5C_Binomial_Distribution-_General_Binomial_Formula 1.6A_Gaussian_Distribution-_Central_Limit_Theorum 1.6B_Gaussian_Distribution-_Key_Facts Module_2-_How_do_average_medical_care_costs_for_people_with_a_major_smoking-caus ed_disease 2.1A_Distribution_of_medical_expenditures 2.1B_Distribution_of_medical_expenditures-_StemLeaf_Plots 2.1C_Distribution_of_medical_expenditures-_Boxplots 2.2A_Confidence_Intervals 2.2B_Confidence_Intervals_Continued Found 2 sections and 16 lectures on this page casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\01_1.1._The_Scientific_Method.pdf already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\01_1.1._The_Scientific_Method.mp4 already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\01_1.1._The_Scientific_Method.txt already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\01_1.1._The_Scientific_Method.srt already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\02_1.2._On_Cause.pdf already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\02_1.2._On_Cause.mp4 already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\02_1.2._On_Cause.txt already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\02_1.2._On_Cause.srt already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\03_1.3._On_Probability.pdf already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\03_1.3._On_Probability.mp4 already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\03_1.3._On_Probability.txt already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\03_1.3._On_Probability.srt already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\04_1.4A_Probability_Distributions-_MeanMedian.pdf alrea dy downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\04_1.4A_Probability_Distributions-_MeanMedian.mp4 alrea dy downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\04_1.4A_Probability_Distributions-_MeanMedian.txt alrea dy downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\04_1.4A_Probability_Distributions-_MeanMedian.srt alrea dy downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\05_1.4B_Probability_Distributions-_Mean_MedianSpread.pd f already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\05_1.4B_Probability_Distributions-_Mean_MedianSpread.mp 4 already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\05_1.4B_Probability_Distributions-_Mean_Median__Spread.tx t already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\05_1.4B_Probability_Distributions-_Mean_MedianSpread.sr t already downloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\06_1.4C_Probability_Distributions-_Shape.pdf already down loaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\06_1.4C_Probability_Distributions-_Shape.mp4 already down loaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\06_1.4C_Probability_Distributions-_Shape.txt already down loaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\06_1.4C_Probability_Distributions-_Shape.srt already down loaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\07_1.5A_Binomial_Distribution-_Parameters.pdf already dow nloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\07_1.5A_Binomial_Distribution-_Parameters.mp4 already dow nloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\07_1.5A_Binomial_Distribution-_Parameters.txt already dow nloaded casebasedbiostat-001\01_Module_1-_What_common_background_understanding_do_I_need _to_get_started_in_improving_my_ability_to_critically_and_quantitativelyreason about_health_questions\07_1.5A_Binomial_Distribution-_Parameters.srt already dow nloaded Downloading: casebasedbiostat-001\01_Module_1-_What_common_background_understand ing_do_I_need_to_get_started_in_improving_my_ability_to_critically_and_quantitat ively_reason_about_health_questions\08_1.5B_Binomial_Distribution-_What_Do_Binom ial_Distributions_Look_Like.pdf Downloading https://d396qusza40orc.cloudfront.net/casebasedbiostat/lecture_slide s%2FZegerLecture5.pdf -> casebasedbiostat-001\01_Module_1-_What_common_backgroun d_understanding_do_I_need_to_get_started_in_improving_my_ability_to_critically_a nd_quantitatively_reason_about_health_questions\08_1.5B_Binomial_Distribution-_W hat_Do_Binomial_Distributions_Look_Like.pdf Starting new HTTPS connection (1): d396qusza40orc.cloudfront.net Traceback (most recent call last): File "c:\z\coursera\coursera\coursera-dl", line 6, in coursera_dl.main() File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 693, in main if download_class(args, class_name): File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 677, in download_c lass args.hooks) File "c:\z\coursera\coursera\coursera\coursera_dl.py", line 364, in download_l ectures downloader.download(url, lecfn) File "c:\z\coursera\coursera\coursera\downloaders.py", line 43, in download self._start_download(url, filename) File "c:\z\coursera\coursera\coursera\downloaders.py", line 295, in _start_dow nload with open(filename, 'wb') as f: IOError: [Errno 2] No such file or directory: u'casebasedbiostat-001\01Module 1-_What_common_background_understanding_do_I_need_to_get_started_in_improving_my _ability_to_critically_and_quantitatively_reason_about_health_questions\08_1.5B _Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like.pdf'

c:\Coursera>

Thank you once again for your time and for your help.

Best regards,

Ramana

On 8/11/13, Rogério Brito notifications@github.com wrote:

Ah, thanks for your pip output. That was very useful.

I noticed that you are using a pre-1.0 version of requests. Please, upgrade to a version post 1.2 (I use 1.2.3 locally). requests has changed its interface a lot. Please, report back what you see.


Reply to this email directly or view it on GitHub: https://github.com/jplehmann/coursera/issues/170#issuecomment-22446577

rbrito commented 11 years ago

Hi.

On Sat, Aug 10, 2013 at 8:30 PM, Ramana Polavarapu notifications@github.com wrote:

Thank you very much for pointing out the older version of requests. I upgraded it to 1.2.3.

That's great.

However, I face a problem with casebasedbiostat-001 still.

Does the script work with other courses, so that we can begin isolating the problems?

Traceback (most recent call last): [...] File "c:\z\coursera\coursera\coursera\downloaders.py", line 295, in _st= artdow nload with open(filename, 'wb') as f: IOError: [Errno 2] No such file or directory: u'casebasedbiostat-001\01= Module_ 1-_What_common_background_understanding_do_I_need_to_get_started_in_impro= ving_my _ability_to_critically_and_quantitatively_reason_about_health_questions\= 08_1.5B _Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like.pdf'

Humm, I have no experience with Windows and the limitations in path lenghts etc. Can you, just for the sake of debugging, use an external downloader like wget, curl or aria2c?

Our homegrown downloader is certainly way more limited than the specialized downloaders that I mentioned.

If the external downloaders don't work, then please send the entire output when running with the --debug option, as it will reveal what we may be trying to do under the hood.

Thanks,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

rbrito commented 11 years ago

Hi again,

On Sat, Aug 10, 2013 at 9:37 PM, Rogério Brito wrote:

On Sat, Aug 10, 2013 at 8:30 PM, Ramana Polavarapu wrote:

Traceback (most recent call last): [...] File "c:\z\coursera\coursera\coursera\downloaders.py", line 295, in _st= artdow nload with open(filename, 'wb') as f: IOError: [Errno 2] No such file or directory: u'casebasedbiostat-001\01= Module_ 1-_What_common_background_understanding_do_I_need_to_get_started_in_impro= ving_my _ability_to_critically_and_quantitatively_reason_about_health_questions\= 08_1.5B _Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like.pdf'

Humm, I have no experience with Windows and the limitations in path lenghts etc. Can you, just for the sake of debugging, use an external downloader like wget, curl or aria2c?

I just enrolled in this class and the titles of the sections are gloriously long; in my ipython shell, I get this (certainly going to be messed up):

In [1]: len('casebasedbiostat-001/01_Module_1_What_common_background_understanding_do_I_need_to_get_started_in_improving_my_ability_to_critically_and_quantitatively_reason_about_health_questions/08_1.5B_Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like.srt') Out[1]: 258

That is, simply that part of the path may already mess up with filesystem limitations (especially in systems where PATH_MAX is relatively low). While I have no problems with my Linux system, it will certainly be nice to see how other tools cope with that.

Regards,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

rpolavar commented 11 years ago

Thank you, for trying it out. I tried it out of Cygwin terminal. Same error. Perhaps, we can ignore this error for now since the file names are too long. What I will do is that I shall download them onto my Linux desktop. If need be, I shall rename the files and ftp them to my windows box. Thank you.

Regards,

Ramana

On 8/11/13, Rogério Brito notifications@github.com wrote:

Hi again,

On Sat, Aug 10, 2013 at 9:37 PM, Rogério Brito wrote:

On Sat, Aug 10, 2013 at 8:30 PM, Ramana Polavarapu wrote:

Traceback (most recent call last): [...] File "c:\z\coursera\coursera\coursera\downloaders.py", line 295, in _st= artdow nload with open(filename, 'wb') as f: IOError: [Errno 2] No such file or directory: u'casebasedbiostat-001\01= Module_ 1-_What_common_background_understanding_do_I_need_to_get_started_in_impro= ving_my _ability_to_critically_and_quantitatively_reason_about_health_questions\= 08_1.5B _Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like.pdf'

Humm, I have no experience with Windows and the limitations in path lenghts etc. Can you, just for the sake of debugging, use an external downloader like wget, curl or aria2c?

I just enrolled in this class and the titles of the sections are gloriously long; in my ipython shell, I get this (certainly going to be messed up):

In [1]: len('casebasedbiostat-001/01_Module_1_What_common_background_understanding_do_I_need_to_get_started_in_improving_my_ability_to_critically_and_quantitatively_reason_about_health_questions/08_1.5B_Binomial_Distribution-_What_Do_Binomial_Distributions_Look_Like.srt') Out[1]: 258

That is, simply that part of the path may already mess up with filesystem limitations (especially in systems where PATH_MAX is relatively low). While I have no problems with my Linux system, it will certainly be nice to see how other tools cope with that.

Regards,

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br


Reply to this email directly or view it on GitHub: https://github.com/jplehmann/coursera/issues/170#issuecomment-22450245

victorwestmann commented 9 years ago

Is this issue fixed somehow? I have Windows as my main platform. Perhaps I can help.

rbrito commented 9 years ago

Thanks for the bug triage, Victor. I guess that the remaining bits of this bug (namely, downloading files with very long filenames under Windows) is already covered by other bug reports.

Thanks to everyone involved!