carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

an import is missing from gdata.contacts.service.py which causes an exception in appengine #676

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Installing gdata and atom in an app engine (python) application
2.During oauth processing I run from libraries.gdata.contacts import service
3. This import fails

What is the expected output? What do you see instead?
No output is expected - however instead a traceback is seen.

AttributeError("'module' object has no attribute 'contacts'",), <traceback 
object at 0x1037894d0>)
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2-2.5.2/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
    from libraries.gdata.contacts import service
  File "/.../gdata/contacts/service.py", line 52, in <module>
    class ContactsService(gdata.service.GDataService):
  File "/.../gdata/contacts/service.py", line 335, in ContactsService
    converter=gdata.contacts.ContactsFeedFromString):
AttributeError: 'module' object has no attribute 'contacts'

What version of the product are you using?
2.0.18

Please provide any additional information below.
If you add import gdata.contacts to the beginning of the file it fixes the error

Original issue reported on code.google.com by aaron.je...@gmail.com on 15 Aug 2013 at 9:10