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
diff -Nurp opensync-0.22.orig/wrapper/opensync.i opensync-0.22/wrapper/opensync.i --- opensync-0.22.orig/wrapper/opensync.i 2007-03-27 12:49:09.000000000 +0100 +++ opensync-0.22/wrapper/opensync.i 2010-05-21 18:36:46.857447188 +0100 @@ -82,7 +82,7 @@ typedef struct {} OSyncHashTable; %extend OSyncChange { OSyncChange(PyObject *obj=NULL) { OSyncChange *change = NULL; - if (obj) + if ((obj) && (obj != Py_None)) change = (OSyncChange *)PyCObject_AsVoidPtr(obj); else change = osync_change_new();
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------
_______________________________________________ SynCE-Devel mailing list SynCE-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel