New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError: global name 'className' is not defined #124
Comments
eqp-001 course HTML : http://pastebin.com/PguhVJ38 |
What do you get if you replace |
Could not find class: eqp-001 |
I guess it's a proxy issue. Will try when not behind a proxy and let you |
yup, I just saw the |
@bit-man, so, the script doesn't bomb anymore with the change? Unfortunately, I myself can't get eqp-001 to be redownloaded also. I kept getting 5xx errors from coursera's side. OTOH, if I login personally, I can get stuff. I will only be able to investigate such stuff this weekend. And I use no proxies (not that my ISP can't be using a transparent one that I don't know about)... |
@bit-man Maybe it works with proxies if you change |
Unfortunately it doesn't work either by changing to allow_redirects=True |
@bitman can you paste the output that you get with the proxies disabled? |
I think you may have the wrong man, are you peer-reviewing? On 19 June 2013 15:14, Jonas De Taeye notifications@github.com wrote:
|
Oh, just for the record, I couldn't access eqp-001 with the older Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
the only thing that we do on this line is getting the csrf_token by hitting the class url, so it must be a problem with your internet configuration |
@bitman sorry ;) bitman != bit-man |
I'm confused enough :) No problem. Scott Regards, Scott Pritchett See my support page http://support.webguys.co On 19 June 2013 15:20, Jonas De Taeye notifications@github.com wrote:
|
the specified class doesn't even matter, so maybe we should return a better error message |
Thanks @jonasdt but the proxy env. variables were already set. |
@jonasdt, you meant that "the specified class doesn't even matter" for me? The context isn't clear. |
@bit-man, can you unset the proxies? Can you use a "regular" browser without the proxy? If you can, then that would help with the bug hunting... |
@rbrito check https://github.com/jplehmann/coursera/blob/master/coursera/coursera_dl.py#L182 |
If the proxy is unset can't access the site and "no route to host is shown" :
|
I'm sorry, I think it is a problem with your internet configuration. From the requests documentation
There is not much that we can do about that ... |
I used it through a proxy or direct connection, no problem about it. BTW I'm having problems to download from ANY Coursera course but can access |
Can you try git bisect? |
Cool stuff !! I'll try later. |
I just got the following mail 14 minutes ago: tl;dr: the archive was disabled for eqp-001, it has been reenabled
|
@webhat, thanks for that hint. At least the eqp-001 would be fixed, but the original poster still seems to have problems. @bit-man, @jonasdt, can we copy the relevant parts of the bug so that we can close this one (the undefined variable as already fixed) and continue with another one, to keep things tidy? |
Oh, just for the record, I tested re-downloading things from eqp-001 and it works fine now. Now, @bit-man, to get you started with the git bisecting, here is a hint:
And try to download stuff. At each step, issue Hope this helps. |
I've setup tinyproxy in my box and was able to sucessfully downloaded a web page using wget.
|
Do you mean that this commit introduced the issue (the issue with the proxy), or that it breaks the program (but with other errors). The master branch is a stable branch, but that does not mean that every commit is stable. The commit above breaks the program as it removes a function which is still used (at that time) in the rest of the program. Can you verify that, with your new setup, coursera-dl works with commit f764480, and fails with commit 9236558. If that is the case, than there might be a problem with requests. Maybe your proxy makes a lot of redirects, so try something like adding |
I tested with a different proxy and the commit 8bba26e introduces the proxy issue. |
ok, I think you lost me here ... Can you please do the following:
If you got an error, please paste it in this thread. |
You're right that's the error but if you checkout to the previous commit the proxy stuff works fine (download using a proxy can be performed) |
ok good, but what if you do |
Sorry forgot to do the second checkout :-P On Sat, Jun 22, 2013 at 10:27 AM, Jonas De Taeye
Víctor A. Rodríguez (http://www.bit-man.com.ar) |
and what is the error :) |
https://github.com/jplehmann/coursera/issues/124#issuecomment-19820596 for
|
What version of requests do you use?
|
$ python -c "import requests; print requests.version" |
Please install the latest version:
Now checkout the master brach and try again. Paste the output in your comment. |
Now, I love following y'all, but I think I was added in error, could someone remove me from the thread :) I (bitman) was mistaken for bit-man. On Tue, Jun 25, 2013 at 2:00 PM, Jonas De Taeye notifications@github.com
|
Scott, if you go to your github notifications, you can click on a I don't know otherwise how one can un-add another person from a github Regards, Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA |
Many thanks, Done. Scott — On Tue, Jun 25, 2013 at 3:19 PM, Rogério Brito notifications@github.com
|
@bit-man, did installing a newer version of requests help here? |
Sadly it didn't help :
argparse==1.2.1 in /usr/lib/python2.7 (from -r requirements.txt (line
|
I'm afraid I'm out of ideas for the moment ... I tried installing tinyproxy, but it started to take too much time :) That said, I did find this thread in the requests issue list, perhaps it has some useful information. |
@bit-man, just for the record, do you need the proxy (say, due to network policies) to access the web? Have you installed a newer version of |
Ping. |
When trying to download any course the error in the subject is shown :
The text was updated successfully, but these errors were encountered: