Summary: | dev-python/libwnck-python-2.30.2 will not run correctly with x11-libs/libwnck-2.30.2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jim Ramsay (lack) (RETIRED) <lack> |
Component: | [OLD] GNOME | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugzilla.gnome.org/show_bug.cgi?id=616306 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 313037 |
Description
Jim Ramsay (lack) (RETIRED)
![]() Afaics, it is just a warning. Could you report this at http://bugzilla.gnome.org and paste the URL here ? (In reply to comment #1) > Afaics, it is just a warning. No, unfortunately it's a warning that also means "We did not register those values, so you can't use them in a program", so any python app that tries to use, say, wnck.WINDOW_STATE_URGENT will suddenly get an AttributeError! Try this: python -c "import wnck; print wnck.WINDOW_STATE_URGENT" With libwnck-2.26.1 I get: <flags WNCK_WINDOW_STATE_URGENT of type WnckWindowState> With libwnck-2.66.2 I get: ** (-c:20623): WARNING **: Trying to register gtype 'WnckWindowState' as flags when in fact it is of type 'GEnum' ** (-c:20623): WARNING **: Trying to register gtype 'WnckWindowActions' as flags when in fact it is of type 'GEnum' ** (-c:20623): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as flags when in fact it is of type 'GEnum' Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'WINDOW_STATE_URGENT' (In reply to comment #1) > Could you report this at http://bugzilla.gnome.org and paste the URL here ? http://bugzilla.gnome.org/show_bug.cgi?id=590534 Fixed in libwnck-2.6.2-r2 and submitted a patch upstream. Oh no, it's back. After upgrading to 2.30.2: $ python -c "import wnck" ** (-c:21056): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags' ** (-c:21056): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags' ** (-c:21056): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags' I'll see if I can find some time to look into the root cause, but the patch submitted to upstream last time this happened looks like it's still there. Something else must be going wrong. +*libwnck-python-2.30.2-r1 (21 Jul 2010) + + 21 Jul 2010; Pacho Ramos <pacho@gentoo.org> + +libwnck-python-2.30.2-r1.ebuild, + +files/libwnck-python-2.30.2-flagsfix.patch: + Fix again three enum items that should be flags (bug #279832, by Jim + Ramsay) applying fedora patch provided in upstream bug #616306. |