Bug when want to start det_descendants report

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug when want to start det_descendants report

Anton Huber
Hello,
if I want to generate a det_descendants report, these message is displayed:
Bei GRAMPS trat ein interner Fehler auf.
Bitte kopieren Sie die Nachricht und melden Sie den Fehler unter
http://sourceforge.net/projects/gramps oder schicken Sie eine
E-Mail an [hidden email]

GRAMPS : 2.0.9-0.CVS20050921
LANG : de_DE.UTF-8
LANGUAGE : de_DE:de:en_GB:en
Python : 2.4.1 final
GTK : 2.6.4
PyGTK : 2.6.1
OS : Debian 3.1

Traceback (most recent call last):
  File "/usr/local/share/gramps/Report.py", line 1799, in report
    MyReport.write_report()
  File "/usr/local/share/gramps/plugins/DetDescendantReport.py", line
203, in write_report
    dupPerson = self.write_person(key)
  File "/usr/local/share/gramps/plugins/DetDescendantReport.py", line
277, in write_person
    self.write_parents(person, firstName)
  File "/usr/local/share/gramps/plugins/DetDescendantReport.py", line
371, in write_parents
    bool(person.get_death_handle()))
  File "/usr/local/share/gramps/ReportUtils.py", line 1376, in child_str
    text = child_father_mother[gender][dead] % values
KeyError: 2

Best regards,

Anton


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs
Reply | Threaded
Open this post in threaded view
|

Re: Bug when want to start det_descendants report

Alex Roitman
Anton,

On Wed, 2005-09-21 at 22:02 +0200, Anton Huber wrote:

> Traceback (most recent call last):
>   File "/usr/local/share/gramps/Report.py", line 1799, in report
>     MyReport.write_report()
>   File "/usr/local/share/gramps/plugins/DetDescendantReport.py", line
> 203, in write_report
>     dupPerson = self.write_person(key)
>   File "/usr/local/share/gramps/plugins/DetDescendantReport.py", line
> 277, in write_person
>     self.write_parents(person, firstName)
>   File "/usr/local/share/gramps/plugins/DetDescendantReport.py", line
> 371, in write_parents
>     bool(person.get_death_handle()))
>   File "/usr/local/share/gramps/ReportUtils.py", line 1376, in child_str
>     text = child_father_mother[gender][dead] % values
> KeyError: 2
Apparently, you have people with UNKNOWN gender and this case was not
considered by the ReportUtils. I have added this in CVS, please try
again and see if this helps.

Alex

--
Alexander Roitman   http://www.gramps-project.org

signature.asc (196 bytes) Download Attachment