You should export to a .gramps file
Then you should upgrade GRAMPS to version 3.0.x if possible, reimport and run the check and repair tool of that version.

You can also try to run the 'remove empty objects' tool
As a last resort, you can export to .gramps file, and extract that with unzip and open the unzipped file with kate/gedit. If you search on family, it should be clear how you can search in this xml file to hunt for the empty families. Just delete them there in the xml, and import that file again in GRAMPS.

Note that direct opening of xml files is not possible anymore in version 3.0.x+ as it was too dangerous to loose data on edit and crash.


2009/2/24 Keith Pomakis <>
User Information:

I seem to have two empty family objects that don't even have IDs.
(I'm not sure how I got them.)  Whenever I try deleting them I get
an error like this.  I got this particular error when I tried to run
the repair tool (hoping that it would clean up the bad family objects
for me).

Error Details:

24271: ERROR: line 271: Failed to start tool.
Traceback (most recent call last):
 File "/usr/share/gramps/PluginUtils/", line 267, in gui_tool
   tool_class(dbstate, uistate, options_class, name, callback)
 File "/usr/share/gramps/plugins/", line 175, in __init__
 File "/usr/share/gramps/plugins/", line 659, in cleanup_empty_objects
   remove_func(handle, self.trans)
 File "/usr/share/gramps/GrampsDb/", line 1909, in remove_family
   FAMILY_KEY, transaction.family_del)
 File "/usr/share/gramps/GrampsDb/", line 1860, in _do_remove_object
 File "/usr/share/gramps/GrampsDb/", line 203, in _del_family
   del self.fid_trans[family.get_gramps_id()]
KeyError: None

System Information:

Python version: 2.5.1 (r251:54863, Jul 10 2008, 17:25:56) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]
BSDDB version:
Gramps version: 2.2.10-1
LANG: en_US.ISO8859-1
OS: Linux

Keith Pomakis <>

Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
Gramps-bugs mailing list