[Nottingham] Python behind proxy

stripes theotoky stripes.theotoky at googlemail.com
Wed Dec 19 06:18:23 UTC 2012

Yet another problem,

I am behind a corporate proxy at present and I find that scripts using
python time out, for example

sudo add-apt-repository ppa:voria/ppa


sudo python -c "import sys; py3 = sys.version_info[0] > 2; u =
__import__('urllib.request' if py3 else 'urllib', fromlist=1);

both eventually time out. I don't know where or how to tell python about
the proxy server so can't update calibre and had to add the repository by
directly editing the sources.list.

Suggestions on how to fix it most welcome.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20121219/89d41860/attachment.html>

More information about the Nottingham mailing list