Reputation: 557
I am attemping to use Matplotlib and arcgisimage to download and plot an image using the arcgis REST API service. A snippet error I'm running into is below. I suspect I can't connect to this arcgis server, because I'm being blocked by the firewall at my organization. Typically when I want to download something, say using pip, I have to enter a proxy, i.e. proxy.**.gov:8080. How would I go about getting around this firewall? I've tested my code at home without a firewall, and the arcgisimage works fine, which is why I suspect it's a firewall issue. Thanks.
/opt/antelope/python2.7.8/lib/python2.7/urllib2.pyc in do_open(self, http_class, req)
1182 except socket.error, err: # XXX what error?
1183 h.close()
-> 1184 raise URLError(err)
1185 else:
1186 try:
URLError: <urlopen error [Errno 110] Connection timed out>
Upvotes: 0
Views: 5932
Reputation: 557
I did the following, and this should work:
$ export http_proxy='http://myproxy.example.com:1234'
$ python myscript.py # Using http://myproxy.example.com:1234 as a proxy
Upvotes: 1