FS#30083 - [python2-gobject2] GIO bug

Attached to Project: Arch Linux
Opened by xia (snyh) - Thursday, 31 May 2012, 00:56 GMT
Last edited by Jan Alexander Steffens (heftig) - Saturday, 20 October 2012, 09:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:
any python file has import gio will lead to this warning:
--------------------------------------------------------------------
** (process:19602): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:19602): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:19602): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
------------------------------------------------------------------------

because this warnings vim + some autocomplete script can't work correlty.

Additional info:

detail: https://bugzilla.gnome.org/show_bug.cgi?id=668522
patch: http://bugzilla-attachments.gnome.org/attachment.cgi?id=209543

Steps to reproduce:
$ echo "import gio" > a.py
$ chomod a+x a.py
$ python2 a.py
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Saturday, 20 October 2012, 09:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.28.6-8
Comment by Lukas B (teateawhy) - Monday, 02 July 2012, 17:03 GMT
It seems like updating the package python2-gobject to a current version is enough.
On launchpad i found:
>Launchpad Janitor (janitor) wrote on 2012-03-13: #8
>This bug was fixed in the package pygobject-2 - 2.28.6-10

On Archlinux we have this version:
extra/python2-gobject2 2.28.6-6

link to launchpad:
https://bugs.launchpad.net/bugs/918607
Comment by Ionut Biru (wonder) - Monday, 02 July 2012, 17:21 GMT
define current version.
Comment by Lukas B (teateawhy) - Tuesday, 03 July 2012, 13:59 GMT
I know it is a maintainer's decision to choose the current version, not my decision.
Update when you want, but take the bug report into consideration please.
Comment by Ionut Biru (wonder) - Tuesday, 03 July 2012, 14:05 GMT
i don't really understand what version do you expect and what we provide.
please be more specific.
Comment by Lukas B (teateawhy) - Tuesday, 03 July 2012, 16:00 GMT
Ok i am sorry for the noise. Ubuntu patched the version 2.28.6-6 and named it 2.28.6-10 afterwards.
That fooled me into thinking there was an new -10 version upstream.
This is an upstram bug anyway.
Comment by Ionut Biru (wonder) - Tuesday, 03 July 2012, 16:02 GMT
right, obvious upstream doesn't care anymore about python2-gobject2 because is deprecated in favour of python2-gobject
maybe you want to move to that?
Comment by Lukas B (teateawhy) - Tuesday, 03 July 2012, 17:52 GMT
The new python2-gobject is already installed.
Pygtk requires the old python2-gobject2 . A lot of applications need pygtk (like gimp,terminator to name prominent ones).
Comment by Rohit (rr0hit) - Sunday, 08 July 2012, 21:07 GMT
As discussed at redhat bugzilla (https://bugzilla.redhat.com/show_bug.cgi?id=790053) applying the patch (http://bugzilla-attachments.gnome.org/attachment.cgi?id=209543) seems to solve the issue.
Comment by Rohit (rr0hit) - Sunday, 08 July 2012, 21:12 GMT Comment by Jelle van der Waa (jelly) - Saturday, 28 July 2012, 13:51 GMT
Patch is applied, I still get the warnings though. Solution would be to either mute the script or find a patch that fixes it.
Comment by Christian Hesse (eworm) - Tuesday, 31 July 2012, 16:09 GMT
Ups, did not find this bug for whatever reason...
Please take a look at https://bugs.archlinux.org/task/30943 for solution.

Loading...