Curiously, the outlook import works fine if importing when there are no
existing entries, but crashes if there are:
An unexpected exception has occurred.
Please see the help for details on what to do.
Traceback (most recent call last):
File "C:\Python23\lib\site-packages\wxPython\wx.py", line 1712, in
<lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "C:\Program Files\BitPim\bitpim\phonebook.py", line 1158, in
DoMerge
results[count]=self.MergeEntries(self.existingdata[existingid],
self.importdata[i])
File "C:\Program Files\BitPim\bitpim\phonebook.py", line 1197, in
MergeEntries
result['numbers']=mergenumberlists(o['numbers'], i['numbers'])
File "C:\Program Files\BitPim\bitpim\phonebook.py", line 1427, in
mergenumberlists
print i
IOError: [Errno 9] Bad file descriptor
Variables by last 8 frames, innermost last
Frame __call__ in C:\Program Files\BitPim\bitpim\gui.py at line 364
self = <gui.MenuCallback instance at 0x015D0B48>
args = (<wxPython.events.wxCommandEventPtr instance; proxy
of C++ wxCommandEvent instan
Frame OnFileImportOutlookContacts in C:\Program
Files\BitPim\bitpim\importexport.py at line 1111
dlg = <importexport.ImportOutlookDialog instance; proxy of
C++ wxDialog instance at _1
data = {0: {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C756010012871
parent = <gui.MainWindow instance; proxy of C++ wxFrame
instance at _170f4a8_wxFrame_p>
Frame importdata in C:\Program Files\BitPim\bitpim\phonebook.py at line
783
dlg = <phonebook.ImportDialog instance; proxy of C++
wxDialog instance at _17818c0_wxD
d = {0: {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C756010012871
self = <phonebook.PhoneWidget instance; proxy of C++ wxPanel
instance at _176d2a8_wxPan
merge = True
importdata = {0: {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C756010012871
categoriesinfo = []
result = None
Frame ShowModal in C:\Python23\lib\site-packages\wxPython\frames.py at
line 184
_kwargs = {}
self = <phonebook.ImportDialog instance; proxy of C++
wxDialog instance at _17818c0_wxD
_args = ()
Frame <lambda> in C:\Python23\lib\site-packages\wxPython\wx.py at line
1712
event = <wxPython.events.wxPyEvent instance; proxy of C++
wxPyEvent instance at _1956b98
Frame DoMerge in C:\Program Files\BitPim\bitpim\phonebook.py at line
1158
em = <phonebook.EntryMatcher instance at 0x019C66E8>
count = 36
confidence = 675
i = 36
usedexistingkeys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 2
results = {0: {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C756010012871
matches = [(675, 36), (27, 35), (25, 20), (-41, 32), (-46, 25)]
existingid = 36
self = <phonebook.ImportDialog instance; proxy of C++
wxDialog instance at _17818c0_wxD
row = {0: (533, 0, 0, 0), 1: (533, 1, 1, 1), 2: (625, 2, 2,
2), 3: (675, 3, 3, 3), 4:
Frame MergeEntries in C:\Program Files\BitPim\bitpim\phonebook.py at
line 1197
key = 'numbers'
i = {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C75601001287132A9
k = 'names'
o = {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C75601001287132A9
importentry = {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C75601001287132A9
dict = {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C75601001287132A9
result = {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C75601001287132A9
intersect = ['serials', 'addresses', 'numbers', 'emails',
'categories', 'names']
self = <phonebook.ImportDialog instance; proxy of C++
wxDialog instance at _17818c0_wxD
originalentry = {'serials': [{'FolderID':
'00000000E75D19DC1541DE419A12C2ECB968C75601001287132A9
Frame mergenumberlists in C:\Program Files\BitPim\bitpim\phonebook.py at
line 1427
i = {'type': 'home', 'number': '(713) 965-4114'}
res = [{'type': 'home', 'number': '(713) 965-4114'},
{'type': 'cell', 'number': '(832)
orig = [{'type': 'home', 'number': '(713) 965-4114'},
{'type': 'cell', 'number': '(832)
imp = [{'type': 'home', 'number': '(713) 965-4114'},
{'type': 'cell', 'number': '(832)