2011-09-02 16:03:25 |
Javier Collado |
description |
checkbox-gtk fails to launch in oneiric with the following traceback:
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 83, in __init__
color = Gdk.color_parse("#F0EBE2")[1]
TypeError: 'Color' object does not support indexing
After some investigation, it turns out that in natty the os such a command is:
(True, <Gdk.Color(red=61680, green=60395, blue=58082)>)
while in oneiric is:
<Gdk.Color(red=61680, green=60395, blue=58082)>
Hence, to fix the problem in oneiric the following line:
color = Gdk.color_parse("#F0EBE2")[1]
has to be replaced with:
color = Gdk.color_parse("#F0EBE2") |
checkbox-gtk fails to launch in oneiric with the following traceback:
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 83, in __init__
color = Gdk.color_parse("#F0EBE2")[1]
TypeError: 'Color' object does not support indexing
After some investigation, it turns out that in natty the output of such a command is:
(True, <Gdk.Color(red=61680, green=60395, blue=58082)>)
while in oneiric is:
<Gdk.Color(red=61680, green=60395, blue=58082)>
Hence, to fix the problem in oneiric the following line:
color = Gdk.color_parse("#F0EBE2")[1]
has to be replaced with:
color = Gdk.color_parse("#F0EBE2") |
|