[Nottingham] Python behind proxy

stripes theotoky stripes.theotoky at googlemail.com
Wed Dec 19 06:33:58 UTC 2012


Hi,

It threw the following error but it must have set the environment variable
anyway because the second time I ran it it without the http_proxy it worked
fine. Thank you that has been annoying me for a while now.

sudo env http_proxy=http://my.proxy:80/  python -c "import sys; py3 =
sys.version_info[0] > 2; u = ....'

 Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 1
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    ^
SyntaxError: invalid syntax

Stripes.


> fairly sure both of those will read the environment variable http_proxy
> anyway...
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20121219/2d288c1f/attachment.html>


More information about the Nottingham mailing list