wnck gtk3 python bindings broken

Bug #890771 reported by Richard Henwood
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-python-desktop (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have the following wnck bits installed on 11.10, running with gnome-shell:

richard@laptop:~$ dpkg -l | grep wnck
ii gir1.2-wnck-3.0 3.2.0-0ubuntu1 GObject introspection data for the WNCK library
ii libwnck-3-0 3.2.0-0ubuntu1 Window Navigator Construction Kit - runtime files
ii libwnck-3-common 3.2.0-0ubuntu1 Window Navigator Construction Kit - common files
ii libwnck-3-dev 3.2.0-0ubuntu1 Window Navigator Construction Kit - development files
ii libwnck-common 1:2.30.7-0ubuntu1 Window Navigator Construction Kit - common files
ii libwnck22 1:2.30.7-0ubuntu1 Window Navigator Construction Kit - runtime files
ii python-wnck 2.32.0-0ubuntu6 Python bindings for the WNCK library

Now if I start python:

richard@wc-hp:~/tools/skype-record$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wnck
>>> import gi.repository
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: could not import gobject (error was: ImportError('When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))

or the other way around:

Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi.repository
>>> import wnck
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
>>>

affects: ubuntu → gnome-python-desktop (Ubuntu)
Revision history for this message
Richard Henwood (rjhenwood) wrote :

It would seem that this is a case of operator error and there is no bug:

richard@laptop:~/tools/skype-record$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import Wnck

Source:
http://stackoverflow.com/questions/5794309/how-can-i-get-a-list-of-windows-with-wnck-using-pygi

Revision history for this message
Timothy Mayoh (timothy-m-deactivatedaccount) wrote :

Ok, I shall mark the bug as invalid.

Changed in gnome-python-desktop (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.