WeeklyCalendar crashes on startup

Bug #519292 reported by Alvaro Isaza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gDesklets
Won't Fix
Undecided
Joe Sapp

Bug Description

In Ubuntu 9.10 Karmic Koala with Gnome version 2.28.1

Since February 1° WeeklyCalendar dosen't starts and pops up the message:
Runtime Error

list index out of range
/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display
  159
  160 # Try to find a better way to determine the total
  161 # number of rows
  162 # If last element in 5th row == ndays or 0,
  163 # matrix ends there
> 164 if month_matrix[4][6] == ndays or month_matrix[4][6] == 0:
  165 rows = 5
  166 else:
  167 rows = 6
  168
  169 # Clear the last row
  170 for w in range(7): Dsp.cal[35+w].visible = False

the log:

==========================================================[02/09/10-07:55:24]====== Runtime Error

[EXC]list index out of range
[EXC]/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display

[---] 159
[---] 160 # Try to find a better way to determine the total
[---] 161 # number of rows
[---] 162 # If last element in 5th row == ndays or 0,
[---] 163 # matrix ends there
[ERR]> 164 if month_matrix[4][6] == ndays or month_matrix[4][6] == 0:
[---] 165 rows = 5
[---] 166 else:
[---] 167 rows = 6
[---] 168
[---] 169 # Clear the last row
[---] 170 for w in range(7): Dsp.cal[35+w].visible = False

Traceback (most recent call last):
  File "/usr/lib/gdesklets/display/DisplayTarget.py", line 418, in f
    _("The <tt>relative-to</tt> property "
UserError

==========================================================[02/09/10-07:55:25]===
Warning: <function do_date at 0xa000f44>(((2010, 2, 9),)) has raised an exception while running in main thread.
The error was:
list index out of range

Traceback (most recent call last):
  File "/usr/lib/gdesklets/utils/__init__.py", line 181, in run_in_main_thread
    return function(*args)
  File "<inline '/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display_479535948'>", line 82, in do_date
  File "<inline '/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display_479535948'>", line 92, in update_display
  File "<inline '/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display_479535948'>", line 164, in draw_cal
IndexError: list index out of range

==========================================================[02/09/10-07:55:26]====== Runtime Error

[EXC]list index out of range
[EXC]/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display

[---] 159
[---] 160 # Try to find a better way to determine the total
[---] 161 # number of rows
[---] 162 # If last element in 5th row == ndays or 0,
[---] 163 # matrix ends there
[ERR]> 164 if month_matrix[4][6] == ndays or month_matrix[4][6] == 0:
[---] 165 rows = 5
[---] 166 else:
[---] 167 rows = 6
[---] 168
[---] 169 # Clear the last row
[---] 170 for w in range(7): Dsp.cal[35+w].visible = False

==========================================================[02/09/10-07:55:26]====== Runtime Error

[EXC]list index out of range
[EXC]/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display

[---] 159
[---] 160 # Try to find a better way to determine the total
[---] 161 # number of rows
[---] 162 # If last element in 5th row == ndays or 0,
[---] 163 # matrix ends there
[ERR]> 164 if month_matrix[4][6] == ndays or month_matrix[4][6] == 0:
[---] 165 rows = 5
[---] 166 else:
[---] 167 rows = 6
[---] 168
[---] 169 # Clear the last row
[---] 170 for w in range(7): Dsp.cal[35+w].visible = False

==========================================================[02/09/10-07:55:26]====== Runtime Error

[EXC]list index out of range
[EXC]/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display

[---] 159
[---] 160 # Try to find a better way to determine the total
[---] 161 # number of rows
[---] 162 # If last element in 5th row == ndays or 0,
[---] 163 # matrix ends there
[ERR]> 164 if month_matrix[4][6] == ndays or month_matrix[4][6] == 0:
[---] 165 rows = 5
[---] 166 else:
[---] 167 rows = 6
[---] 168
[---] 169 # Clear the last row
[---] 170 for w in range(7): Dsp.cal[35+w].visible = False

==========================================================[02/09/10-07:55:26]====== Runtime Error

[EXC]list index out of range
[EXC]/usr/share/gdesklets/Displays/weeklycalendar/WeeklyCalendar.display

[---] 159
[---] 160 # Try to find a better way to determine the total
[---] 161 # number of rows
[---] 162 # If last element in 5th row == ndays or 0,
[---] 163 # matrix ends there
[ERR]> 164 if month_matrix[4][6] == ndays or month_matrix[4][6] == 0:
[---] 165 rows = 5
[---] 166 else:
[---] 167 rows = 6
[---] 168
[---] 169 # Clear the last row
[---] 170 for w in range(7): Dsp.cal[35+w].visible = False

Revision history for this message
Joe Sapp (sappj) wrote :

What version of WeeklyCalendar?

Changed in gdesklets:
assignee: nobody → Joe Sapp (nixphoeni)
Revision history for this message
Alvaro Isaza (alvaro-isaza) wrote : Re: [Bug 519292] Re: WeeklyCalendar crashes on startup

Version 0.31

Joe Sapp wrote:
> What version of WeeklyCalendar?
>
> ** Changed in: gdesklets
> Assignee: (unassigned) => Joe Sapp (nixphoeni)
>
>

Revision history for this message
Joe Sapp (sappj) wrote :

I don't think I've ever released a version 0.31, but if I did it's very old. That sounds more like the version of gDesklets; are you sure that's what you see when right-clicking on the desklet and clicking "About"? Can you try version 0.60 with the latest version of the iCalendarEvent Control?

Revision history for this message
Alvaro Isaza (alvaro-isaza) wrote :

Thank You for your interest,

I include two captures, one with the About of the 0.31 version and other
with the 0.60 version showing the new error I get.

Regards,

Alvaro Isaza

Joe Sapp wrote:
> I don't think I've ever released a version 0.31, but if I did it's very
> old. That sounds more like the version of gDesklets; are you sure
> that's what you see when right-clicking on the desklet and clicking
> "About"? Can you try version 0.60 with the latest version of the
> iCalendarEvent Control?
>
>

Revision history for this message
Joe Sapp (sappj) wrote :

I see, thanks for the images. That version is quite old (more than 3 years)! If you installed 0.31 from the Ubuntu repositories, you should file an Ubuntu bug since there is a much more recent version upstream. I'm sorry I can't help you on the bug this originally reported, but I can't support versions that old.

However, this new error simply means you don't have the iCalendarEvent Control installed. It's listed as a dependency on the desklet page (http://gdesklets.de/index.php?q=desklet/view/111), so you need to install it. Note its dependencies (they should be available through synaptic, but I'm not sure). Also note you will lose your old calendar information, but this newest version produces files that are compliant with many other calendar programs (lightning/sunbird, for example) and is capable of using Google Calendar (and other CalDAV providers).

As an aside, Ubuntu really should keep that package up-to-date with the most recent versions of desklets if they're still going to ship it. It seems like the right thing to do for you to file a bug against that package in Ubuntu.

Changed in gdesklets:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.