Menu

#1593 Taskcoach won't launch with wxPython GTK3 and pygtk2 installed

closed
None
linux
2026-01-20
2015-06-15
No

Taskcoach won't launch if the wxPython is compiled with a GTK3 backend (as is currently the case on Fedora) and the pygtk2 package is installed:

[talbert@localhost ~]$ taskcoach
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_set_qdata: assertion 'node != NULL' failed
from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: cannot register existing type 'GtkWidget'
from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: cannot register existing type 'GtkBuildable'
from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: g_once_init_leave: assertion 'result != 0' failed
from gtk import _gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_register_static: assertion 'parent_type > 0' failed
from gtk import _gtk

This is because wxPython is a GTK3 application and pygtk2 (which gets used by pynotify) is GTK2. If you remove pygtk2, taskcoach will launch.

I have made a patch which seems to resolve the issue. It uses GTK3's notifications if it detects that wxPython is a GTK3 version.

1 Attachments

Discussion

  • Scott Talbert

    Scott Talbert - 2015-06-28

    Updated patch that addresses all the references to GTK2.

     
  • Scott Talbert

    Scott Talbert - 2015-07-28

    One more fix to the patch (import wx missing).

     
  • LHProjects

    LHProjects - 2018-09-28

    Ubuntu 18.04.1 here running TaskCoach version 1.4.3-6 here. This was reported 3 years ago and this problem still hasn't been patched? Although graciously provided a patch?

    See https://bugs.launchpad.net/ubuntu/+source/taskcoach/+bug/1769701 and https://bugzilla.redhat.com/show_bug.cgi?id=1187849.

    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
    from gtk import _gtk
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_set_qdata: assertion 'node != NULL' failed
    from gtk import _gtk
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: cannot register existing type 'GtkWidget'
    from gtk import _gtk
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
    from gtk import _gtk
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: cannot register existing type 'GtkBuildable'
    from gtk import _gtk
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed
    from gtk import _gtk
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: g_once_init_leave: assertion 'result != 0' failed
    from gtk import _gtk
    /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:40: Warning: g_type_register_static: assertion 'parent_type > 0' failed
    from gtk import _gtk

     
  • Aaron Wolf

    Aaron Wolf - 2018-12-06
    • status: open --> fixed
    • assigned_to: Aaron Wolf
     
  • Aaron Wolf

    Aaron Wolf - 2018-12-06

    We just released 1.4.4 please help us verify that it works now without any extra patching. Cheers

     
  • Scott Talbert

    Scott Talbert - 2018-12-07

    Yes, 1.4.4 works fine without the patch. Thanks.

     
  • Aaron Wolf

    Aaron Wolf - 2018-12-07
    • status: fixed --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB