[Yourtopia] Yourtopia Series Metadata in Data Hub

Marian Steinbach marian at sendung.de
Thu Apr 19 09:35:52 BST 2012


> My internet is currently so bad I can't do this. I will try to do this
> later or you could have a go (much better :-).
>
> Just grab and install this python lib:
>
> https://github.com/okfn/datastore-client
>
> Then run the data.py script from:
>
> http://github.com/rgrp/dp-yourtopia-italy
>

Hi Rufus!

I tried. It seems as if there is an issue with the client.delete()
call. It responds with a HTTP 302. I am using Python 2.7.

Any hints?

Marian


Getting data...
Retrieved latest data
Deleting previous data
Traceback (most recent call last):
  File "./data.py", line 49, in <module>
    data()
  File "./data.py", line 24, in data
    client.delete()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/datastore_client-0.1-py2.7.egg/datastore/client.py",
line 101, in delete
    response = opener.open(request)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 400, in open
    response = meth(req, response)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 513, in http_response
    'http', request, response, code, msg, hdrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 432, in error
    result = self._call_chain(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 372, in _call_chain
    result = func(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 598, in http_error_302
    new = self.redirect_request(req, fp, code, msg, headers, newurl)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 559, in redirect_request
    raise HTTPError(req.get_full_url(), code, msg, headers, fp)
urllib2.HTTPError: HTTP Error 302: Moved Temporarily



More information about the Yourtopia mailing list