Gotcha! Ok, kind of
Notepad++ has a plugin to compare text files which appears to be much faster than WinMerge. I found three of the fire breathing dragons shown above in the XML file. Those three segments are clearly not compatible with any XML syntax known to mankind so I wonder how those lines were able to avoid detection by the syntax checker and the schema validator. I have to check now how my code was able to produce those monsters.
The plugin didn’t identify anything else that looked suspicious. The next step was obvious: correct the lines manually and try to import into Gramps. The result:
Error Details:
===================
96197: ERROR: dbloader.py: line 569: Failed to import database.
Traceback (most recent call last):
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\gui\dbloader.py", line 558, in do_import
dbstate=self.dbstate))
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 149, in importData
info = parser.parse(xml_file, line_cnt, person_cnt)
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 936, in parse
self.p.ParseFile(ifile)
File "C:/repo/mingw-w64-python3/src/Python-3.6.4/Modules/pyexpat.c", line 468, in EndElement
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 3146, in endElement
self.func(''.join(self.tlist))
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 2678, in stop_event
if self.event.get_description() == "" and \
AttributeError: 'NoneType' object has no attribute 'get_description'
17778277: WARNING: uimanager.py: line 386: **Duplicate Accelerator <PRIMARY>i
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <PRIMARY>b
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <PRIMARY>u
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <primary>z
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <primary><shift>z
24890668: ERROR: dbloader.py: line 569: Failed to import database.
Traceback (most recent call last):
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\gui\dbloader.py", line 558, in do_import
dbstate=self.dbstate))
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 149, in importData
info = parser.parse(xml_file, line_cnt, person_cnt)
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 936, in parse
self.p.ParseFile(ifile)
File "C:/repo/mingw-w64-python3/src/Python-3.6.4/Modules/pyexpat.c", line 468, in EndElement
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 3146, in endElement
self.func(''.join(self.tlist))
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 2678, in stop_event
if self.event.get_description() == "" and \
AttributeError: 'NoneType' object has no attribute 'get_description'
32942279: ERROR: dbloader.py: line 569: Failed to import database.
Traceback (most recent call last):
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\gui\dbloader.py", line 558, in do_import
dbstate=self.dbstate))
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 149, in importData
info = parser.parse(xml_file, line_cnt, person_cnt)
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 936, in parse
self.p.ParseFile(ifile)
File "C:/repo/mingw-w64-python3/src/Python-3.6.4/Modules/pyexpat.c", line 468, in EndElement
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 3146, in endElement
self.func(''.join(self.tlist))
File "C:\Program Files\GrampsAIO64-5.1.6\gramps\plugins\importer\importxml.py", line 2678, in stop_event
if self.event.get_description() == "" and \
AttributeError: 'NoneType' object has no attribute 'get_description'
System Information:
===================
Gramps version: AIO64-5.1.6-1
Python version: 3.6.4 (default, Jan 23 2018, 13:17:37) [GCC 7.2.0 64 bit (AMD64)]
BSDDB version: 6.1.0 (6, 0, 30)
sqlite version: 3.21.0 (2.6.0)
LANG: de_DE.UTF-8
OS: Windows
GTK version : 3.18.9
gobject version: 3.26.1
cairo version : (1, 16, 1)
Still the same type of error AttributeError: 'NoneType' object has no attribute 'get_description'
with a few new warnings:
17778277: WARNING: uimanager.py: line 386: **Duplicate Accelerator <PRIMARY>i
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <PRIMARY>b
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <PRIMARY>u
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <primary>z
17778278: WARNING: uimanager.py: line 386: **Duplicate Accelerator <primary><shift>z
So my progress appears to be quite limited …