"could not find _PyGObject_API object" can no longer mix gi.repository use with deprecated gtk modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
skype-wrapper |
New
|
Undecided
|
Unassigned |
Bug Description
Upgraded to Ubuntu 14.10 and skype-wrapper (0ubuntu6.
Traceback (most recent call last):
File "/usr/share/
import helpers
File "/usr/share/
import pynotify
File "/usr/lib/
from _pynotify import *
ImportError: could not import gobject (could not find _PyGObject_API object)
This seems to be because gi.repository is now no longer compatible with pynotify and friends. I was able to make some progress in helpers.py:
-import pynotify
-import wnck
+from gi.repository import Notify as pynotify
+from gi.repository import Wnck as wnck
But, although that fixed the above error, much work remains to be done in indicator-
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic
Same error on Debian 8