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.

Benny

2009/2/24 Keith Pomakis <pomakis@pobox.com>
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: _Tool.py: line 271: Failed to start tool.
Traceback (most recent call last):
 File "/usr/share/gramps/PluginUtils/_Tool.py", line 267, in gui_tool
   tool_class(dbstate, uistate, options_class, name, callback)
 File "/usr/share/gramps/plugins/Check.py", line 175, in __init__
   checker.cleanup_empty_objects()
 File "/usr/share/gramps/plugins/Check.py", line 659, in cleanup_empty_objects
   remove_func(handle, self.trans)
 File "/usr/share/gramps/GrampsDb/_GrampsDbBase.py", line 1909, in remove_family
   FAMILY_KEY, transaction.family_del)
 File "/usr/share/gramps/GrampsDb/_GrampsDbBase.py", line 1860, in _do_remove_object
   del_func(handle)
 File "/usr/share/gramps/GrampsDb/_GrampsInMemDB.py", 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: 4.4.5.2
Gramps version: 2.2.10-1
LANG: en_US.ISO8859-1
OS: Linux
Distribution: 2.6.25.14-69.fc8

---
Keith Pomakis <pomakis@pobox.com>
http://www.pomakis.com/

------------------------------------------------------------------------------
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
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs