Libopensync-plugin google doesn't sync contacts

Bug #244877 reported by Gab
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
opensync
New
Unknown
libopensync-plugin-google-calendar (Ubuntu)
New
Undecided
Unassigned

Bug Description

Seem there is a bug in the libopensync plugin for google that doesn't allow contact synchronization:

http://www.opensync.org/ticket/750

I don't know if it's a bug or a feature missing, but it would be really a nice to have.
That's the output that i get from msync trying to synchronize contacts with my google account:

add gdata: <?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005"><title type="text">A</title><content type="text"></content><gd:when endTime="2008-05-12T05:10:00Z" startTime="2008-05-12T05:00:00Z"/><gd:where valueString=""/></entry>
Traceback (most recent call last):
  File "/usr/lib/opensync/google-cal-helper", line 453, in <module>
    sys.exit(main(sys.argv))
  File "/usr/lib/opensync/google-cal-helper", line 445, in main
    return fn(argv)
  File "/usr/lib/opensync/google-cal-helper", line 422, in oper_add
    e = GCalEntry(atom=xml.documentElement)
  File "/usr/lib/opensync/google-cal-helper", line 187, in __init__
    self.parseAtom(atom)
  File "/usr/lib/opensync/google-cal-helper", line 196, in parseAtom
    self.editUri = self.elementValue('atom:link[@rel="edit"]/@href')
  File "/usr/lib/opensync/google-cal-helper", line 294, in elementValue
    nodes = self.query(name)
  File "/usr/lib/opensync/google-cal-helper", line 302, in query
    return XPath.Evaluate(expr, context=ctx)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/Util.py", line 188, in Evaluate
    retval = XPathParser.new().parse(expr).evaluate(con)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/ParsedRelativeLocationPath.py", line 18, in evaluate
    nodeset = self._left.select(context)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/ParsedStep.py", line 30, in evaluate
    node_set = self._predicates.filter(node_set, context, reverse)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/ParsedPredicateList.py", line 43, in filter
    res = pred.evaluate(context)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/ParsedExpr.py", line 721, in evaluate
    left = self._left.evaluate(context)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/ParsedStep.py", line 28, in evaluate
    (node_set, reverse) = self._axis.select(context, self._nodeTest.match)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/ParsedAxisSpecifier.py", line 94, in select
    result = [ attr for attr in context.node.xpathAttributes
AttributeError: Element instance has no attribute 'xpathAttributes'
Error writing entry libkcal-670798609.206 to member 1: Couldn't read from helper
Mapping Write Error: Couldn't read from helper

Changed in opensync:
status: Unknown → New
Revision history for this message
Patrick Cornelissen (patrickcornelissen) wrote :

This is still the case when you sync kdepim with google calendar :-(

add gdata: <?xml version="1.0" encoding="utf-8"?><entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005"><title type="text">Kopie von: Lightning Talk &quot;Die Android-Mobilplattform - Teil 1: Eine Übersicht&quot;</title><content type="text"></content><gd:when endTime="2009-08-03T15:45:00Z" startTime="2009-08-03T15:30:00Z"/><gd:where valueString="Meetingraum Bonn"/></entry>
Http error: 401: Token invalid
{'status': '401', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'expires': 'Mon, 19 Apr 2010 16:10:41 GMT', 'server': 'GSE', 'cache-control': 'private, max-age=0', 'date': 'Mon, 19 Apr 2010 16:10:41 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'text/html; charset=UTF-8', 'www-authenticate': 'GoogleLogin realm="https://www.google.com/accounts/ClientLogin", service="cl"'}
Error writing entry libkcal-1580076482.1045 to member 1 (google-calendar): Couldn't read from helper
Mapping Write Error: Couldn't read from helper

Revision history for this message
Michael Banck (mbanck) wrote :

I think the bug title is wrong, as writing a kcal entry is the problem.

In any case, I guess the 0.22 version cannot sync contacts, but this python backtrace is due to issues with calendar entries.

Revision history for this message
Compizuser01 (meneerjansen00) wrote :

I still get the error: "Mapping Write Error: Couldn't read from helper" when I try to sync GPE-Calendar w/ Google-Calendar. I use the command line options:

--filter-objtype contacts --filter-objtype todo --filter-objtype note

So I don't think the prob. is that contacts cannot be synched... Part of error log: pastebin.com/1nzjFGF6

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.