← Back to team overview

desktop-packages team mailing list archive

[Bug 890771] [NEW] wnck gtk3 python bindings broken

 

You have been subscribed to a public bug:

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: gnome-python-desktop (Ubuntu)
     Importance: Undecided
         Status: New

-- 
wnck gtk3 python bindings broken
https://bugs.launchpad.net/bugs/890771
You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-python-desktop in Ubuntu.