yes you're right i get the sameresults from wget : Last login: Wed Feb 3 05:18:41 on ttys001 MacBook-Pro-15-di-Massimo-Di-Stefano:~ sasha$ wget http://wms.jpl.nasa.gov/wms.cgi --2010-02-03 10:57:26-- http://wms.jpl.nasa.gov/wms.cgi Resolving wms.jpl.nasa.gov... 128.149.132.199 Connecting to wms.jpl.nasa.gov|128.149.132.199|:80... connected. HTTP request sent, awaiting response... 403 Forbidden 2010-02-03 10:57:27 ERROR 403: Forbidden.
MacBook-Pro-15-di-Massimo-Di-Stefano:~ sasha$ and from the browser : Error 403 i mailed the webmaster ... exposing the problem, i hope it will be fixed ... btw i've no clue about what is the reason. i come from italy where my request is sent. Il giorno 03/feb/2010, alle ore 10.27, Dominic Lowe ha scritto: > Hi, > > This is wierd - it looks like you have reached the wms server but the > server has rejected your request. > > I've just tried the same code using a fresh easy install on python 2.5.2 > and 2.6.4 and both worked fine. > > Do you have Wget on OSX? > What happens if you do this at the command line: > > wget http://wms.jpl.nasa.gov/wms.cgi > > Does that retrieve some sort of wms response or do you get a 403 error? > What about if you make the same request from a browser? > > Cheers, > Dom > > > On 03/02/10 04:14, Massimo Di Stefano wrote: >> Hi All, >> >> i'm tring to follow the guidlines from this page : >> >> http://trac.gispython.org/lab/wiki/OwsLib >> >> but i'm having a 403 error : >> >> >> >> Last login: Wed Feb 3 04:49:31 on ttys000 >> MacBook-Pro-15-di-Massimo-Di-Stefano:~ sasha$ sudo easy_install OWSLib >> Password: >> Searching for OWSLib >> Reading http://pypi.python.org/simple/OWSLib/ >> Reading http://trac.gispython.org/projects/PCL/wiki/OwsLib >> Best match: OWSLib 0.3.1 >> Downloading >> http://pypi.python.org/packages/source/O/OWSLib/OWSLib-0.3.1.tar.gz#md5=b822f0581ee4de193df4b253aacb4189 >> Processing OWSLib-0.3.1.tar.gz >> Running OWSLib-0.3.1/setup.py -q bdist_egg --dist-dir >> /tmp/easy_install-UQRai_/OWSLib-0.3.1/egg-dist-tmp-q_eJRh >> zip_safe flag not set; analyzing archive contents... >> tests.coverage: module references __file__ >> tests.runalldoctests: module references __file__ >> tests.test_doctests: module references __file__ >> Adding OWSLib 0.3.1 to easy-install.pth file >> >> Installed /Library/Python/2.6/site-packages/OWSLib-0.3.1-py2.6.egg >> Processing dependencies for OWSLib >> Finished processing dependencies for OWSLib >> MacBook-Pro-15-di-Massimo-Di-Stefano:~ sasha$ python >> Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) >> [GCC 4.2.1 (Apple Inc. build 5646)] on darwin >> Type "help", "copyright", "credits" or "license" for more information. >>>>> >>>>> from owslib.wms import WebMapService >>>>> wms = WebMapService('http://wms.jpl.nasa.gov/wms.cgi', version='1.1.1') >> Traceback (most recent call last): >> File "<stdin>", line 1, in<module> >> File >> "/Library/Python/2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/wms.py", >> line 82, in __init__ >> self._capabilities = reader.read(self.url) >> File >> "/Library/Python/2.6/site-packages/OWSLib-0.3.1-py2.6.egg/owslib/wms.py", >> line 508, in read >> u = self._open(request) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", >> line 124, in urlopen >> return _opener.open(url, data, timeout) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", >> line 389, in open >> response = meth(req, response) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", >> line 502, in http_response >> 'http', request, response, code, msg, hdrs) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", >> line 427, in error >> return self._call_chain(*args) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", >> line 361, in _call_chain >> result = func(*args) >> File >> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", >> line 510, in http_error_default >> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) >> urllib2.HTTPError: HTTP Error 403: Forbidden >>>>> exit() >> >> >> >> >> any hints on how to fix it ? maybe the track pages needs to be update, or >> someting goes wrong on my system ? >> >> thanks! >> >> >> Massimo. >> _______________________________________________ >> Community mailing list >> [email protected] >> http://lists.gispython.org/mailman/listinfo/community > > _______________________________________________ > Community mailing list > [email protected] > http://lists.gispython.org/mailman/listinfo/community
_______________________________________________ Community mailing list [email protected] http://lists.gispython.org/mailman/listinfo/community
