There was a change in introduced in version 1.2.0 of the gdata-python- client which requires use of a new function to swap out the HTTP request mechanism.
gdata.alt.appengine.run_on_appengine(client) Please see instructions here: http://code.google.com/appengine/articles/gdata.html . Unfortunately this did break the old sample code in the code lab, but this new design will better allow for new features in the future. Happy coding, Jeff On Oct 8, 3:56 pm, pragmaticobjects <[EMAIL PROTECTED]> wrote: > I know that is another post with the same subject, but that one was > still not helping me. So can I start a new thread of discussion. > > In my handler, I have the following couple of lines: > > client = gdata.contacts.service.ContactsService() > feeds = client.GetContactsFeed() > > and the following imports: > > import wsgiref.handlers > import gdata.service > > import gdata.urlfetch > # Use urlfetch instead of httplib > gdata.service.http_request_handler = gdata.urlfetch > > import gdata.contacts > import gdata.contacts.service > > from google.appengine.ext import webapp > from google.appengine.ext.webapp import template > > but I am still getting the following errors: > > Traceback (most recent call last): > File "/home/user/Data/Dev/google_appengine/google/appengine/ext/ > webapp/__init__.py", line 496, in __call__ > handler.get(*groups) > File "/home/user/Data/Dev/google_appengine/workspace/vnmail/view/my/ > handler.py", line 43, in get > feeds = client.GetContactsFeed() > File "/usr/lib/python2.5/site-packages/gdata/contacts/service.py", > line 58, in GetContactsFeed > return self.Get(uri, > converter=gdata.contacts.ContactsFeedFromString) > File "/usr/lib/python2.5/site-packages/gdata/service.py", line 665, > in Get > headers=extra_headers) > File "/usr/lib/python2.5/site-packages/atom/service.py", line 163, > in request > data=data, headers=all_headers) > File "/usr/lib/python2.5/site-packages/atom/http_interface.py", line > 148, in perform_request > return http_client.request(operation, url, data=data, > headers=headers) > File "/usr/lib/python2.5/site-packages/atom/http.py", line 117, in > request > connection.endheaders() > File "/usr/lib/python2.5/httplib.py", line 860, in endheaders > self._send_output() > File "/usr/lib/python2.5/httplib.py", line 732, in _send_output > self.send(msg) > File "/usr/lib/python2.5/httplib.py", line 699, in send > self.connect() > File "/usr/lib/python2.5/httplib.py", line 666, in connect > for res in socket.getaddrinfo(self.host, self.port, 0, > AttributeError: 'module' object has no attribute 'getaddrinfo' > > Line 43 in .../my/handler.py is the line that says feeds = > client.GetContactsFeed() > > I also saw the posthttp://code.google.com/p/hello-youtube/wiki/Codelab, > and /atom and /gdata in my application directory. What am I doing > wrong? It looks like httplib.py still is still the one in effect. > Please help. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---