#1434: g.extension: option to specify proxy server
-------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: | Status: new
enhancement |
Priority: major | Milestone: 7.0.2
Component: | Version: svn-trunk
Installation |
Resolution: | Keywords: g.extension, urllib, wget, r.in.wms
CPU: All | Platform: All
-------------------------+-------------------------------------------------
Changes (by neteler):
* milestone: 6.4.4 => 7.0.2
Comment:
While the GRASS GIS 7's version of g.extension comes with proxy support,
this crashes when the proxy requires authorization:
{{{
(Tue Oct 13 11:51:20 2015)
g.extension -s extension=r.seg operation=add
proxy=http=http://proxy.unige.it:8080
Downloading precompiled GRASS Addons <r.seg>...
Traceback (most recent call last):
File "C:\OSGeo4W\apps\grass\grass-7.1.svn/scripts/g.extens
ion.py", line 1692, in <module>
sys.exit(main())
File "C:\OSGeo4W\apps\grass\grass-7.1.svn/scripts/g.extens
ion.py", line 1675, in main
install_extension(source=source, url=url, xmlurl=xmlurl)
File "C:\OSGeo4W\apps\grass\grass-7.1.svn/scripts/g.extens
ion.py", line 637, in install_extension
ret += install_extension_win(module)
File "C:\OSGeo4W\apps\grass\grass-7.1.svn/scripts/g.extens
ion.py", line 895, in install_extension_win
url_file = urlopen(zfile, proxies=PROXIES)
File "C:\OSGeo4W\apps\Python27\lib\urllib.py", line 87, in
urlopen
return opener.open(url)
File "C:\OSGeo4W\apps\Python27\lib\urllib.py", line 208,
in open
return getattr(self, name)(url)
File "C:\OSGeo4W\apps\Python27\lib\urllib.py", line 359,
in open_http
return self.http_error(url, fp, errcode, errmsg,
headers)
File "C:\OSGeo4W\apps\Python27\lib\urllib.py", line 372,
in http_error
result = method(url, fp, errcode, errmsg, headers)
File "C:\OSGeo4W\apps\Python27\lib\urllib.py", line 715,
in http_error_407
errcode, errmsg, headers)
File "C:\OSGeo4W\apps\Python27\lib\urllib.py", line 381,
in http_error_default
raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 407, 'Proxy Authentication
Required', <httplib.HTTPMessage instance at 0x024A2DA0>)
(Tue Oct 13 11:51:21 2015) Command finished (0 sec)
}}}
Can this please turned into a proper error message? Thanks.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1434#comment:7>
GRASS GIS <https://grass.osgeo.org>