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.
Updated patch that addresses all the references to GTK2.
One more fix to the patch (import wx missing).
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
We just released 1.4.4 please help us verify that it works now without any extra patching. Cheers
Yes, 1.4.4 works fine without the patch. Thanks.