Checkbox-gtk fails to start on oneiric

Bug #841749 reported by Nicola Heald
This bug report is a duplicate of:  Bug #839675: Gdk.color_parse error in oneiric. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Confirmed
Critical
Marc Tardif

Bug Description

On running checkbox-gtk in oneiric...

2011-09-03 10:33:03,934 ERROR Error running event handler /usr/share/checkbox/plugins/user_interface.py UserInterface.run() for event type 'run'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/checkbox/reactor.py", line 74, in fire
    results.append(handler(*args, **kwargs))
  File "/usr/share/checkbox/plugins/user_interface.py", line 54, in run
    interface = interface_class(self.title, self.data_path)
  File "/usr/lib/python2.7/dist-packages/checkbox_gtk/gtk_interface.py", line 81, in __init__
    color = Gdk.color_parse("#F0EBE2")[1]
TypeError: 'Color' object does not support indexing

Changing line 81 of checkbox_gtk/gtk_interface.py from
   color = Gdk.color_parse("F0EBE2")[1]
to
   color = Gdk.color_parse("F0EBE2")

makes it works for me on oneiric.

Changed in checkbox:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Marc Tardif (cr3)
milestone: none → 0.12.5
milestone: 0.12.5 → none
Revision history for this message
Nicola Heald (notnownikki) wrote :

After looking at this further, the original code works on natty. So my simple solution would be to compare the type of the returned value, if it's a list, assign the correct element.

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.