Repository: oppia/oppia

Issue:
Proxy issue for downloading files on Windows while installing Oppia
It seems that for Windows users this creates a problem while they are setting up the development environment.
If they are behind a proxy users might see a message like the one its here 
in this Pastebin --> http://pastebin.com/z34hsmi9
This created a problem for me while setting up Oppia after installing Vagrant.
So a possible solution would be to update `scripts/install_third_party.py` file
to set the proxy value to empty  string before any file download starts and set it globally 
@seanlip 
Assign me to this I would get this done first then would get on #1840 
Thanks :smile: 



Discussion:
Hi @raju249 -- assigned!

Also, could you please be a little more clear about what the intended fix is (i.e. what does "handle the proxy" mean) and how the issue manifests itself? I couldn't figure out what labels to assign to this issue because the description is pretty vague.

Hi @seanlip done 😄 
This is the first issue I am filing.
So just in the learning phase 😅 
Thanks for correcting me 

Thanks @raju249. Could you please also be more specific about what the "problem" is? E.g. add log messages, screenshots, etc.

@seanlip 
Actually I faced this problem when I was getting started for the first time and at that time I didn't take any screenshot or copy of log messages :sweat_smile: 
I just got some errors printed on console 
I am really sorry ..
I don't have any way to reproduce the issue.
May be any new Windows user would bring those exact errors

@seanlip 
@gvishal has a better idea of documenting this problem in the wiki where all the instructions for setting up oppia is written.
This way the users who require a proxy wouldn't face a problem and those who don't require would set up temporarily to empty string as specified in the wiki.
What you think?

Sounds reasonable to me, thanks @raju249. Could you please liaise with @jacobdavis11 regarding what to add to the wiki? (He's the maintainer-on-duty this week.)

Also, @bbriggs should be aware of this, I think.

(@bbriggs -- any recommendations?)

Thanks @seanlip 
@jacobdavis11 
We should start soon :smile: So no one else faces this problem 
Thanks

If you can explain the issue, we can work out how to work around it and document that in the wiki.

@bbriggs 
That was the same problem I spoke about it in gitter chat
When I  was getting started 
I had some `IO Error` while downloading files

We should document it here in the issue or else it didn't happen :)

Ohh
Let me see the form I remember linking the pastebin for the error


Resolving patch:
diff --git a/scripts/install_third_party.py b/scripts/install_third_party.py
--- a/scripts/install_third_party.py
+++ b/scripts/install_third_party.py
@@ -27,6 +27,12 @@
 
 import common
 
+#These two lines prevent a "IOError: [Errno socket error]
+#[Errno -2] Name or service not known" error
+# in urllib.urlretrieve, if the user is behind a proxy.
+if 'VAGRANT' in os.environ:
+    os.environ['http_proxy'] = ''
+
 TOOLS_DIR = os.path.join('..', 'oppia_tools')
 THIRD_PARTY_DIR = os.path.join('.', 'third_party')
 THIRD_PARTY_STATIC_DIR = os.path.join(THIRD_PARTY_DIR, 'static')


Test patch: