"/usr/lib/opensync/google-cal-helper" throws errors

Asked by kaefert

Hi there!

I want to syncronize evolution, my windows mobile 6 device & my google calendar.

for this i use opensync with the plugins "opensync-plugin-evolution", "opensync-plugin-synce" & "opensync-plugin-google-calendar"

syncronizing only "opensync-plugin-evolution" & "opensync-plugin-synce" works,
but when add the google calendar plugin then syncronizing throws following errors:

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 in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 78, in apport_excepthook
    report_file = open(pr_filename, 'wt')
IOError: [Errno 13] Permission denied: '/var/crash/_usr_bin_python2.5.1000.crash'

Original exception was:
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 ...privateLinkToMyCalendar... to member 3: Couldn't read from helper
Mapping Write Error: Couldn't read from helper
INFO:SynCE:device synchronization complete
INFO:SynCE:device synchronization complete
INFO:SynCE:device synchronization complete
.. (does never finish, every 5 minutes or so another one of the last 3 lines pops up)

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu libopensync-plugin-google-calendar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
kaefert (kaefert) said :
#1

Here's the config of my opensync group:

kaefert@Mobulux:~$ msynctool --showgroup synce-sync
Groupname: synce-sync
Member 1: synce-opensync-plugin
 Configuration :
Member 2: evo2-sync
 Configuration : <?xml version="1.0"?>
<config>
  <address_path>default</address_path>
  <calendar_path>file:///home/kaefert/.evolution/calendar/local/system</calendar_path>
  <tasks_path>default</tasks_path>
</config>

Member 3: google-calendar
 Configuration : <config>
 <url>http://<email address hidden>/private/full</url>
 <username><email address hidden></username>
 <password>mypassword</password>
</config>

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.