Opened 12 years ago

Closed 12 years ago

Last modified 7 years ago

#1988 closed bug (Fixed)

TypeError: Gtk.Widget.set_colormap() argument 1 must be gtk.gdk.Colormap, not None

Reported by: non7top Owned by:
Priority: minor Milestone: 2.x
Component: Unknown Version: master
Keywords: Cc:

Description (last modified by Cas)

$ deluge
Xlib:  extension "RANDR" missing on display ":1".
Traceback (most recent call last):
  File "/usr/bin/deluge", line 9, in <module>
    load_entry_point('deluge==1.3.900-dev', 'gui_scripts', 'deluge')()
  File "/usr/lib/python2.7/site-packages/deluge/main.py", line 135, in start_ui
    UI(options, args, options.args)
  File "/usr/lib/python2.7/site-packages/deluge/ui/ui.py", line 148, in __init__
    ui = GtkUI(args)
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 205, in __init__
    self.torrentdetails = TorrentDetails()
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/torrentdetails.py", line 136, in __init__
    self.add_tab(tab(), generate_menu=False)
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/status_tab.py", line 89, in __init__
    apply_now=True
  File "/usr/lib/python2.7/site-packages/deluge/config.py", line 339, in register_set_function
    function(key, self.__config[key])
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/status_tab.py", line 177, in on_show_pieces_bar_config_changed
    self.show_pieces_bar(show)
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/status_tab.py", line 189, in show_pieces_bar
    self.piecesbar = PiecesBar()
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/piecesbar.py", line 82, in __init__
    self.set_colormap(self.get_screen().get_rgba_colormap())
TypeError: Gtk.Widget.set_colormap() argument 1 must be gtk.gdk.Colormap, not None

Change History (7)

comment:1 Changed 12 years ago by Cas

  • Description modified (diff)

Can you provide a bit more info.

comment:2 Changed 12 years ago by Cas

  • Milestone changed from Future to 1.4.0

comment:3 Changed 12 years ago by non7top

I'm using latest git head, but also tried 7227c97cacd6c3a7a1cf3d75e8dcd04e0eb71693 with same result. I suspect I may be missing some gtk/python modules or their components/build options, but unfortunately google doesn't help me much with finding which ones. My distro is gentoo.

comment:4 Changed 12 years ago by Cas

Try this:

diff --git a/deluge/ui/gtkui/piecesbar.py b/deluge/ui/gtkui/piecesbar.py
index 55e7f7c..329d0aa 100644
--- a/deluge/ui/gtkui/piecesbar.py
+++ b/deluge/ui/gtkui/piecesbar.py
@@ -79,7 +79,7 @@ def __init__(self):
         self.__cr = None
 
         self.connect('size-allocate', self.do_size_allocate_event)
-        self.set_colormap(self.get_screen().get_rgba_colormap())
+        self.set_colormap(gtk.gdk.colormap_get_system())
         self.show()
 
     def do_size_allocate_event(self, widget, size):

comment:5 Changed 12 years ago by non7top

Thanks, the patch resolves the issue

comment:6 Changed 12 years ago by Cas

  • Resolution set to fixed
  • Status changed from new to closed

Fix committed to master: 04b89491

comment:7 Changed 7 years ago by Cas

  • Milestone changed from 2.0.x to 2.x

Milestone renamed

Note: See TracTickets for help on using tickets.