I’m trying to import a large Gramps XML file (>3 M lines) and get the following error report:
Error Details:
===================
8536485: 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'
9327775: 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'
9698210: 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)
I understand that Gramps appears to encounter the same problem three times and then finally calls it a day. Does anybody know what the problem could be? I’d assume that it is not a misformed XML entry since Gramps will usually detect any XML syntax problems and bring up a warning with the line number. I can open the file in Notepad++ and check the XML syntax there without any error message.
Thanks for your help!
Ulrich