Bug#666757: python-gtk2: warns about mismatched gtype registration at startup

Drake Wilson drake at dasyatidae.net
Sun Apr 1 14:52:06 UTC 2012


Package: python-gtk2
Version: 2.24.0-3
Severity: minor

When starting any Python GTK+ program, the following warnings appear
from somewhere in the GNOME stack (demonstrated with a direct import
from the Python REPL):

> Python 2.7.3rc2 (default, Mar 21 2012, 06:59:11) 
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gtk
>
> ** (process:18976): WARNING **: Trying to register gtype 'GMountMountFlags' as flags when in fact it is of type 'GEnum'
>
> ** (process:18976): WARNING **: Trying to register gtype 'GDriveStartFlags' as flags when in fact it is of type 'GEnum'
>
> ** (process:18976): WARNING **: Trying to register gtype 'GSocketMsgFlags' as flags when in fact it is of type 'GEnum'

This doesn't happen when importing gobject or glib by itself, so I
assume this is related to python-gtk2.  I haven't detected this
affecting any application behavior yet, possibly because I haven't run
any Python GTK+ applications that make use of the types involved.
Expected behavior: no such warnings appear.

   ---> Drake Wilson

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-gtk2 depends on:
ii  libatk1.0-0                       2.2.0-2
ii  libc6                             2.13-27
ii  libcairo2                         1.10.2-7
ii  libfontconfig1                    2.8.0-3.1
ii  libfreetype6                      2.4.8-1
ii  libgdk-pixbuf2.0-0                2.24.1-1
ii  libglib2.0-0                      2.30.2-6
ii  libgtk2.0-0                       2.24.10-1
ii  libpango1.0-0                     1.29.4-3
ii  python                            2.7.2-10
ii  python-cairo                      1.8.8-1+b2
ii  python-gobject-2                  2.28.6-10
ii  python-numpy [python-numpy-abi9]  1:1.5.1-4
ii  python2.6                         2.6.7-4
ii  python2.7                         2.7.3~rc2-1

python-gtk2 recommends no packages.

Versions of packages python-gtk2 suggests:
ii  python-gtk2-doc  2.24.0-3

-- no debconf information






More information about the pkg-gnome-maintainers mailing list