I receive an exception when exporting data into Gedcom:
2024-03-04 11:13:23.474: ERROR: _exportassistant.py: line 597: Error exporting your Family Tree
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gramps/gui/plug/export/_exportassistant.py", line 589, in save
success = export_function(
File "/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py", line 1595, in export_data
ret = ged_write.write_gedcom_file(filename)
File "/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py", line 248, in write_gedcom_file
self._individuals()
File "/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py", line 411, in _individuals
self._person(self.dbase.get_person_from_handle(data[1]))
File "/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py", line 454, in _person
self._assoc(person, 1)
File "/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py", line 475, in _assoc
self._source_references(ref.get_citation_list(), level + 1)
File "/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py", line 686, in _source_references
self._source_ref_record(level, citation_handle)
File "/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py", line 1348, in _source_ref_record
src_handle = citation.get_reference_handle()
AttributeError: 'NoneType' object has no attribute 'get_reference_handle'
Done, but my solution was not on Gramps side. I unzipped all my archives. Then has written sh script which replaced all the documents to empty with the same names. And then I moved my zip-achives with the original documents to another place. So, now some the most important documents are under password and Gramps works good because the same dummy-files are located where the program expecting. I think, this is the poor sulution. But from now I can use at least the “Check & Repair” feature as all other users.
Anyway, I think Gramps need this fix to ignore errors or at least write more details to terminal (handles, ids,…), because users dont understand what happened - exports just not working. Unfortunatelly I dont know Python.
7794681: ERROR: _exportassistant.py: line 597: Error exporting your Family Tree
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/gramps/gui/plug/export/_exportassistant.py”, line 589, in save
success = export_function(
File “/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py”, line 1595, in export_data
ret = ged_write.write_gedcom_file(filename)
File “/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py”, line 248, in write_gedcom_file
self._individuals()
File “/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py”, line 411, in _individuals
self._person(self.dbase.get_person_from_handle(data[1]))
File “/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py”, line 454, in _person
self._assoc(person, 1)
File “/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py”, line 475, in _assoc
self._source_references(ref.get_citation_list(), level + 1)
File “/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py”, line 686, in _source_references
self._source_ref_record(level, citation_handle)
File “/usr/lib/python3/dist-packages/gramps/plugins/export/exportgedcom.py”, line 1348, in _source_ref_record
src_handle = citation.get_reference_handle()
AttributeError: ‘NoneType’ object has no attribute ‘get_reference_handle’