Hello Hari,

Have you tried syncing the entire client library with the repository? Many
fixes have been pushed to the repository but haven't been packaged in a
release yet.
Also, I just tried running the sample with Python 2.6.1 on Mac OS X 10.6.8
and it worked perfectly for me.

Best,
Alain

On Thu, Aug 18, 2011 at 11:36 PM, Hari <[email protected]> wrote:

> Just want to add more information and a sample. I tried the sample from the
> current mercurial source 
> here<http://code.google.com/p/gdata-python-client/source/browse/samples/contacts/contacts_example.py>,
> and it still doesn't work. Here is the snipped that does exactly what the
> sample does, with hardcoded data:
>
> def create_contact(gd_client):
>   new_contact = 
> gdata.contacts.data.ContactEntry(name=gdata.data.Name(full_name=gdata.data.FullName(text='Elizabeth
> Bennet')))
>   new_contact.content = atom.data.Content(text='Notes')
>
>   # Set the contact's email addresses.
>   new_contact.email.append(gdata.data.Email(address='[email protected]',
>       primary='true', rel=gdata.data.WORK_REL))
>
>   # Send the contact data to the server.
>   contact_entry = gd_client.CreateContact(new_contact)
>   print "Contact's ID: %s" % contact_entry.id.text
>   return contact_entry
>
> This also fails with exactly the same error.
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://code.google.com/apis/contacts/community/forum.html
>



-- 
Alain Vongsouvanh

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to