another gramplet error?

View: New views
3 Messages — Rating Filter:   Alert me  

another gramplet error?

by Rob Healey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings:

I fixed the first gramplet error, by addding import traceback one line above the error line....

Then upon opening my database once again, I got this error....

python ~/gramps32/src/gramps.py
Gramplet gave an error
Traceback (most recent call last):
  File "/home/Frog/gramps32/src/gen/plug/_gramplet.py", line 250, in _updater
    retval = self._generator.next()
  File "/home/Frog/gramps32/src/plugins/gramplet/StatsGramplet.py", line 111, in main
    if not DateHandler.get_date(birth):
  File "/home/Frog/gramps32/src/DateHandler/_DateUtils.py", line 78, in get_date
    return displayer.display(date_base.get_date_object())
  File "/home/Frog/gramps32/src/DateHandler/_DateDisplay.py", line 375, in display
    text = self.display_cal[date.get_calendar()](start)
  File "/home/Frog/gramps32/src/DateHandler/_DateDisplay.py", line 271, in _display_gregorian
    self.short_months[date_val[1]], year)
IndexError: tuple index out of range
Continuing after gramplet error...
[Frog@captainhook gramps32]$


Sincerely yours,
Rob G. Healey


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: another gramplet error?

by Benny Malengier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brian should look at this, related to his changes probably. And date
display must be really, really correct in a genealogy :-)

I suppose the months go from 1 to 12, and the list with months from 0
to 11. Some other logic Brian did might have this mistake.

Benny

2009/10/28 Rob Healey <robhealey1@...>:

> Greetings:
>
> I fixed the first gramplet error, by addding import traceback one line above
> the error line....
>
> Then upon opening my database once again, I got this error....
>
> python ~/gramps32/src/gramps.py
> Gramplet gave an error
> Traceback (most recent call last):
>   File "/home/Frog/gramps32/src/gen/plug/_gramplet.py", line 250, in
> _updater
>     retval = self._generator.next()
>   File "/home/Frog/gramps32/src/plugins/gramplet/StatsGramplet.py", line
> 111, in main
>     if not DateHandler.get_date(birth):
>   File "/home/Frog/gramps32/src/DateHandler/_DateUtils.py", line 78, in
> get_date
>     return displayer.display(date_base.get_date_object())
>   File "/home/Frog/gramps32/src/DateHandler/_DateDisplay.py", line 375, in
> display
>     text = self.display_cal[date.get_calendar()](start)
>   File "/home/Frog/gramps32/src/DateHandler/_DateDisplay.py", line 271, in
> _display_gregorian
>     self.short_months[date_val[1]], year)
> IndexError: tuple index out of range
> Continuing after gramplet error...
> [Frog@captainhook gramps32]$
>
>
> Sincerely yours,
> Rob G. Healey
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel

Re: another gramplet error?

by Brian Matherly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Brian should look at this, related to
> his changes probably. And date
> display must be really, really correct in a genealogy :-)
>
> I suppose the months go from 1 to 12, and the list with
> months from 0
> to 11. Some other logic Brian did might have this mistake.

Benny was absolutely correct. I've fixed it now.

>
> 2009/10/28 Rob Healey <robhealey1@...>:
> > Greetings:
> >
> > I fixed the first gramplet error, by addding import
> traceback one line above
> > the error line....
> >
> > Then upon opening my database once again, I got this
> error....
> >
> > python ~/gramps32/src/gramps.py
> > Gramplet gave an error
> > Traceback (most recent call last):
> >   File
> "/home/Frog/gramps32/src/gen/plug/_gramplet.py", line 250,
> in
> > _updater
> >     retval = self._generator.next()
> >   File
> "/home/Frog/gramps32/src/plugins/gramplet/StatsGramplet.py",
> line
> > 111, in main
> >     if not DateHandler.get_date(birth):
> >   File
> "/home/Frog/gramps32/src/DateHandler/_DateUtils.py", line
> 78, in
> > get_date
> >     return
> displayer.display(date_base.get_date_object())
> >   File
> "/home/Frog/gramps32/src/DateHandler/_DateDisplay.py", line
> 375, in
> > display
> >     text =
> self.display_cal[date.get_calendar()](start)
> >   File
> "/home/Frog/gramps32/src/DateHandler/_DateDisplay.py", line
> 271, in
> > _display_gregorian
> >     self.short_months[date_val[1]], year)
> > IndexError: tuple index out of range
> > Continuing after gramplet error...
> > [Frog@captainhook gramps32]$
> >
> >
> > Sincerely yours,
> > Rob G. Healey
> >
> >
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer
> Conference in SF, CA
> > is the only developer event you need to attend this
> year. Jumpstart your
> > developing skills, take BlackBerry mobile applications
> to market and stay
> > ahead of the curve. Join us from November 9 - 12,
> 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > Gramps-devel mailing list
> > Gramps-devel@...
> > https://lists.sourceforge.net/lists/listinfo/gramps-devel
> >
> >
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference
> in SF, CA
> is the only developer event you need to attend this year.
> Jumpstart your
> developing skills, take BlackBerry mobile applications to
> market and stay
> ahead of the curve. Join us from November 9 - 12, 2009.
> Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gramps-devel mailing list
> Gramps-devel@...
> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gramps-devel mailing list
Gramps-devel@...
https://lists.sourceforge.net/lists/listinfo/gramps-devel