[pkg-wicd-maint] Bug#947589: wicd-gtk: [experimental] wicd-gtk probably broken: no GTK dependency, still uses 'import gtk'

Simon McVittie smcv at debian.org
Sat Dec 28 09:39:19 GMT 2019


Package: wicd-gtk
Version: 1.7.4+tb2+2019.09.18git2e0ba579-1
Severity: important

This is only from source code inspection, so I'm reporting it at a non-RC
severity, but please increase it to grave severity if I'm correct.

The Python 3 version of wicd-gtk in experimental doesn't seem to have
any dependency that would pull in GTK, which seems unlikely to be valid
for a GTK GUI.

A GTK 3 app using PyGI would normally have to depend on both python3-gi and
gir1.2-gtk-3.0, which are the necessary packages to be able to use this
import sequence:

    #!/usr/bin/python3
    import gi
    gi.require_version('Gtk', '3.0')
    from gi.repository import Gtk

    ... use Gtk.Application, Gtk.Window, etc. ...

However, looking at the source code on sources.debian.org, it seems that
wicd-gtk in experimental is still using

    import gtk

which was correct for PyGTK 2, but will not work with PyGI / GTK 3, which
are the only available GTK binding for Python 3.

src/d-feet.in in the d-feet source package is a typical example of
a correct PyGI / GTK 3 import sequence. gnome-tweaks is another good
example of a relatively small and simple PyGI / GTK 3 app, while sonata
and reportbug might be useful as examples of legacy PyGTK 2 applications
that were ported to PyGI / GTK 3.

    smcv



More information about the pkg-wicd-maint mailing list