wnck gtk3 python bindings broken
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@
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/
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/
import gobject._gobject
>>>
affects: | ubuntu → gnome-python-desktop (Ubuntu) |
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: stackoverflow. com/questions/ 5794309/ how-can- i-get-a- list-of- windows- with-wnck- using-pygi
http://