I installed python27 on xp sp3 about 5hrs ago to sync outlook with bbdb and could use some feedback about what i'm missing as its just not working out for me.
neither
c:\Python27\pythonw asynk.py --version
c:\Python27\python asynk_cmdline.py --version
when run from either
e:\downloads\AsynK 2.0
e:\downloads\AsynK 2.2
produce logs or report a version. so perhaps there's something fundamentally wrong with how i have python installed.
running
c:\Python27\pythonw asynk.py --user-dir e:\as --op=list-profiles
does produce a log; this has led me to believe that i've got at least an acceptable setup. here's the profile I'm interrested in:
[18:26:12.190 INFO] *** Profile : olbb ***
[18:26:12.190 INFO] Collection 1:
[18:26:12.190 INFO] DB ID : ol
[18:26:12.201 INFO] Store ID : Michael/BB
[18:26:12.201 INFO] Folder ID : AAAAAAOCVkFe3QRBlm+sxWiaO/BCgQAA
[18:26:12.201 INFO] Collection 2:
[18:26:12.201 INFO] DB ID : bb
[18:26:12.201 INFO] Store ID : e:\as\bbdb
[18:26:12.201 INFO] Folder ID : default
[18:26:12.201 INFO] sync_start : 2015-07-11T14:57:19.24Z
[18:26:12.201 INFO] sync_stop : 2015-07-11T14:57:19.27Z
[18:26:12.201 INFO] sync_dir : SYNC2WAY
[18:26:12.201 INFO] confl_res : ol
[18:26:12.201 INFO] olgid : 0x9001
running a sync produces a log as follows:
[18:36:11.592 DEBUG] Command line: "asynk.py --user-dir e:\as --op=sync --name=olbb"
.
. <much snipping>
.
[18:36:12.243 DEBUG] OLPIMDB.set_folders(): Done.
[18:36:12.243 INFO] Parsing BBDB file e:\as\bbdb...
[18:36:12.243 DEBUG] New BBContactsFolder: default
[18:36:12.243 INFO] Parsing BBDB Store with encoding utf-8...
[18:36:12.253 INFO] Parsing BBDB Store with encoding utf-8...Success
[18:36:12.253 INFO] Successfully parsed 0 entries.
[18:36:12.253 DEBUG] pimdbs : {'ol': <pimdb_ol.OLPIMDB object at 0x014AF470>, 'gc': None, 'ex': None, 'bb': <pimdb_bb.BBPIMDB object at 0x014D22B0>}
[18:36:12.253 DEBUG] pname : olbb
[18:36:12.253 DEBUG] fid1 : AAAAAAOCVkFe3QRBlm+sxWiaO/BCgQAA
[18:36:12.253 DEBUG] fid2 : default
[18:36:12.253 DEBUG] db1id : ol
[18:36:12.253 DEBUG] db : <pimdb_ol.OLPIMDB object at 0x014AF470>
[18:36:12.253 DEBUG] Updated fid2 : default
[18:36:12.253 INFO] Deleting BBDB backup files older than 10 days, if any...
[18:36:12.253 INFO] Deleting BBDB backup files older than 10 days, if any...done
[18:36:12.253 INFO] Backedup BBDB Store (e:\as\bbdb) to file: e:\as\backups\bbdb_backup.olbb.2015-07-11.18-36-12.254000
[18:36:12.263 INFO] Last synk for profile olbb was at: 2015-07-11T14:57:19.27Z
[18:36:12.263 INFO] Querying MAPI for status of Contact Entries
[18:36:12.263 DEBUG] Last Start iso str : 2015-07-11T14:57:19.24Z
[18:36:12.263 DEBUG] Last Stop iso str : 2015-07-11T14:57:19.27Z
[18:36:12.263 DEBUG] Current Time : 2015-07-11T16:36:12.26Z
[18:36:12.263 INFO] Data obtained from MAPI. Processing...
[18:36:12.263 CRITICAL] Exception ('list' object has no attribute 'iteritems') while syncing profile olbb
[18:36:12.273 CRITICAL] Traceback (most recent call last):
File "asynk.py", line 804, in op_sync
result = sync.sync(self.get_sync_dir())
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\sync.py", line 295, in sync
sl1, sl2 = self.prep_lists(dirn)
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\sync.py", line 283, in prep_lists
return self._prep_lists_2_way(self.get_f1(), self.get_f2())
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\sync.py", line 178, in _prep_lists_2_way
f1.prep_sync_lists(f2.get_dbid(), f1sl)
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\folder_ol.py", line 146, in prep_sync_lists
for x, y in oldi.iteritems():
AttributeError: 'list' object has no attribute 'iteritems'
and that's where I'm stumped.
here is my addition to state.json:
"olbb" : { "coll_1" : { "dbid" : "ol",
"foid" : "AAAAAAOCVkFe3QRBlm+sxWiaO/BCgQAA",
"stid" : "Michael/BB"
},
"coll_2" : { "dbid" : "bb",
"foid" : "default",
"stid" : "e:\\as\\bbdb"
},
"conflict_resolve" : "ol",
"items" : [ ],
"last_sync_start" : "2015-07-11T14:57:19.24Z",
"last_sync_stop" : "2015-07-11T14:57:19.27Z",
"olgid" : 36865,
"sync_dir" : "SYNC2WAY",
}
thanks in advance to anyone hitting me with a clue-stick!
Michael
---
1) not to distract anyone from the real issue above, i'm attempting to get an ancient blackberry to reliably sync'd with bbdb, thunderbird and evolution on debian jessie.
2) I started looking at ASynK today as I was unable to get Barry, running in a squeeze chroot to see the device, even with /dev and /proc bound into the chroot.
extra bonus points for insights into how to best do (1) or (2) without disclosing my entire rolodex and schedules to google even once.
--
You received this message because you are subscribed to the Google Groups "ASynK Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asynk+un...@googlegroups.com.
To post to this group, send an email to as...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/asynk/d549ec58-1898-4582-8f05-f7956a67482a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hm. Can you send the 'itemids' portion of the olbb profile in your state.json?
It should be empty for a freshly created profile. But is it "[]" or "{}" ?
That is very strange. This shows that you either copied the profile from older version application or your config did not get automatically updated as it should have. In any case you should try replacing it to {} and try again.
What do you have as the file version at the top of state.json?
> oh. its an empty [ ] list.
That is very strange. This shows that you either copied the profile from older version application or your config did not get automatically updated as it should have. In any case you should try replacing it to {} and try again.
What do you have as the file version at the top of state.json?
ASynK program version and the config file version are different things. Config file version is currently at 7. Have a look at your state.json and let me know.
"items" as {} led to an error:
[15:04:29.744 INFO] Updating item inventory...
[15:04:29.744 CRITICAL] Exception ('list' object has no attribute 'update') while syncing profile olbb
[15:04:29.755 CRITICAL] Traceback (most recent call last):
File "asynk.py", line 809, in op_sync
sync.save_item_lists()
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\sync.py", line 316, in save_item_lists
items1 = self.get_f1().get_itemids(prof, self.get_db2id())
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\folder_ol.py", line 172, in get_itemids
ret.update({base64.b64encode(entryid) : remid})
AttributeError: 'list' object has no attribute 'update'
so i set it to: "items" : { "update" : 0 },
as number and empty string, e.g. "items" : { "update" : "" },
i would get:
[15:05:41.257 INFO] Updating item inventory...
[15:05:41.288 CRITICAL] Exception ('list' object has no attribute 'update') while syncing profile olbb
[15:05:41.288 CRITICAL] Traceback (most recent call last):
File "asynk.py", line 809, in op_sync
sync.save_item_lists()
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\sync.py", line 316, in save_item_lists
items1 = self.get_f1().get_itemids(prof, self.get_db2id())
File "E:\DOWNLOADS\ASynK-2.0.0\asynk\folder_ol.py", line 172, in get_itemids
ret.update({base64.b64encode(entryid) : remid})
AttributeError: 'list' object has no attribute 'update'
so.. umm... back to you.
here's the state.json in full, sans the default sections:
{ "app_root" : "E:\\DOWNLOADS\\ASynK-2.0.0",
"asynk_user_dir" : "e:\\as",
"default_profile" : "olbb",
"file_version" : 7,
"profiles" : {
"olbb" : { "coll_1" : { "dbid" : "ol",
"foid" : "AAAAAAOCVkFe3QRBlm+sxWiaO/BCgQAA",
"stid" : "Michael/BB"
},
"coll_2" : { "dbid" : "bb",
"foid" : "default",
"stid" : "e:\\as\\bbdb"
},
"conflict_resolve" : "ol",
"items" : { "update" : 0 },
"last_sync_start" : "2015-07-13T13:05:40.74Z",
"last_sync_stop" : "2015-07-13T13:05:41.25Z",
"olgid" : 36865,
"sync_dir" : "SYNC2WAY"
}
}
}
Ok, sorry, its '7' then.
i think i set that manually at one point.
that may just be the issue! what's wrong with this:
c:\Python27\pythonw asynk.py --user-dir e:\as --op=create-profile --db ol bb -
-folder='default' 'e:\\as' --store 'default' 'bbdb' --name=olbb