AstunTechnology / Loader

GML & KML loader written in Python using OGR
MIT License
56 stars 35 forks source link

Proxy stopping access to easy install #7

Closed mtravis closed 11 years ago

mtravis commented 11 years ago

Hi Matt

Yesterday I was trying to run loader via a colleague's PC and ran into a problem. We tried to run loader from OSgeo4w shell and it said lxml wasn't installed on his machine. When i went back over the installation notes i saw that you've changed them to bring in lxml using easy_install instead - which is great btw.

However when we downloaded the script and ran it we found our (poxy) proxy wouldn't let us through. Is there something to add to the python command to get through the proxy?

For now I have downloaded lxml direct but would love to use easy install in future

Thanks

Mat

walkermatt commented 11 years ago

Hi Matt,

You should be able to set the HTTP_PROXY environment variable in the command prompt prior to running Loader. The form is:

set HTTP_PROXY=http://username:password@host:port

The host and port are those of your proxy server. If the proxy does not require a username and password they can be left out: set HTTP_PROXY=http://host:port.

If you're proxy is an NTLM proxy that requires authentication then you might find installing and configuring Cntlm which acts as a local go between proxy that does not require authentication helps.

Thanks,

Matt.

mtravis commented 11 years ago

Brilliant. I'll give it a whirl next time i'm in the office.

Cheers

Matt

On Tue, Jan 29, 2013 at 1:50 PM, Matt Walker notifications@github.comwrote:

Hi Matt,

You should be able to set the HTTP_PROXY environment variable in the command prompt prior to running Loader. The form is:

set HTTP_PROXY=http://username:password@host:port

The host and port are those of your proxy server. If the proxy does not require a username and password they can be left out: set HTTP_PROXY=http://host:port.

If you're proxy is an NTLM http://en.wikipedia.org/wiki/NTLM proxy that requires authentication then you might find installing and configuring Cntlm http://cntlm.sourceforge.net/ which acts as a local go between proxy that does not require authentication helps.

Thanks,

Matt.

— Reply to this email directly or view it on GitHubhttps://github.com/AstunTechnology/Loader/issues/7#issuecomment-12835098.

mtravis commented 11 years ago

Hi Matt

Exactly where do I use:

"set HTTP_PROXY=http://username:password@host:port"

Do I have to add it to loader.py or run it in OSgeo4w shell before I trying to run something.

Thanks

Matt T

mtravis commented 11 years ago

I've just realised that I use this in the normal command window to change the environment variables.

walkermatt commented 11 years ago

Cool, let me know how you get on. Always happy to improve the docs.