Discussion:
TypeError in opensync, in Ubuntu Lucid and others
Mark Ellis
2010-05-24 14:28:22 UTC
Permalink
Hi All

This relates to the problem that has cropped up a lot more with the
release of Ubuntu lucid, but has been seen on some other distros before.

It shows up as the following when trying to sync.

DEBUG:SynCE:processing changes for 3 items of item type 0
Traceback (most recent call last):
File "/usr/lib/opensync/python-plugins/synce-opensync-plugin-2x.py",
line 174, in get_changeinfo
change.uid = array.array('B',guid).tostring()
File "/usr/lib/pymodules/python2.6/opensync.py", line 192, in set_uid
def set_uid(self, *args): return _opensync.OSyncChange_set_uid(self,
*args)
TypeError: in method 'OSyncChange_set_uid', argument 1 of type
'OSyncChange *'
Member 1 of type synce-opensync-plugin had an error while getting
changes: Error during get_changeinfo() method

This has happened due to a change in swig from 1.3.37, probably when
python 3 support was added.

Patches have previously been posted by myself and others. There is
nothing wrong with those, but they are awkward since they apply to the
installed package. The attached patch is the "proper" way to fix this,
applied to the package source before building. I would encourage anyone
who has filed a bug against their distro's opensync package to submit
this patch as a fix, I will be doing so for debian and ubuntu.

Mark

Loading...