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

Reply via email to