You have inconsistencies in your data, probably due to bad import or crash.

To resolve it, do the following:

1/take a backup by exporting to .gramps file format or copy .backup.gramps file to a save location
2/run the Rebuild Reference tables tool
3/run the Rebuild secondary indices too
4/run the Check and Repair tool

That should solve it,

Benny

2008/11/8 Peter Lister <peter@quignogs.org.uk>
User Information:
===================

Attempting to remove duplicates



Error Details:
===================

2272343: ERROR: gramps.py: line 148: Unhandled exception
Traceback (most recent call last):
 File "/usr/share/gramps/plugins/FindDupes.py", line 620, in
on_do_merge_clicked
   PersonCompare(self.dbstate,self.uistate,pn1,pn2,self.on_update)
 File "/usr/share/gramps/Merge/_MergePerson.py", line 75, in __init__
   self.display(self.text2.get_buffer(), person2)
 File "/usr/share/gramps/Merge/_MergePerson.py", line 123, in display
   self.add(tobj,title,NameDisplay.displayer.display(person))
 File "/usr/share/gramps/NameDisplay.py", line 503, in display
   name = person.get_primary_name()
AttributeError: 'NoneType' object has no attribute 'get_primary_name'


System Information:
===================

Python version: 2.5.1 (r251:54863, Jun 15 2008, 18:24:51) [GCC 4.3.0
20080428 (Red Hat 4.3.0-8)]
BSDDB version: 4.4.5.2
Gramps version: 2.2.10-1
LANG: en_GB
OS: Linux
Distribution: 2.6.26.6-79.fc9.i686


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-bugs mailing list
Gramps-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-bugs