udevdiscover fails to start due to gudev import error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev-discover |
New
|
Undecided
|
Unassigned | ||
udev-discover (Debian) |
New
|
Undecided
|
ben |
Bug Description
udev-discover fails to launch due to what appears to be a gudev or GObject introspection error.
$ udev-discover
Traceback (most recent call last):
File "/usr/bin/
from udevdiscover import DeviceFinder, get_subsystems
File "/usr/lib/
from devicefinder import DeviceFinder, get_subsystems
File "/usr/lib/
import gudev
ImportError: could not import gobject (could not find _PyGObject_API object)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic
$ apt-cache show udev-discover
Package: udev-discover
Priority: optional
Section: universe/gnome
Installed-Size: 781
Maintainer: Ubuntu Developers <email address hidden>
Original-
Architecture: amd64
Version: 0.2.2-1
Depends: gconf2 (>= 2.28.1-2), python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8), python-gconf, python-gudev, python-gobject, gir1.2-gtk-3.0, gir1.2-gconf-2.0, gir1.2-
Filename: pool/universe/
Size: 104354
MD5sum: dc2c964614f0b26
SHA1: 68ba4c13fc1283d
SHA256: 32292b963b00213
Description-en: Sysfs browsing tool focused on helping udev users and developers
A helping tool for udev testers, coders, hackers and consumers.
* Browsing the sysfs tree via udev
* Reports udev device info and udev properties
* Filter and search devices
* Monitorize udev device events
Description-md5: 0dede53ee3912c6
Homepage: http://
Bugs: https:/
Origin: Ubuntu
affects: | debian → udev-discover (Debian) |
Changed in udev-discover (Debian): | |
assignee: | nobody → ben (drache-deactivatedaccount) |
Running strace -vf udev-discover 2>&1 | grep -i '/usr/lib/ python2. 7/dist- packages/ .*gobject. *\.so' shows that python is looking for the gobject dll in /usr/lib/ python2. 7/dist- packages/ gi/overrides/ GObject. x86_64- linux-gnu. so.
So I did this: python2. 7/dist- packages/ gobject/ _gobject. x86_64- linux-gnu. so /usr/lib/ python2. 7/dist- packages/ gi/overrides/ GObject. x86_64- linux-gnu. so
sudo ln -s /usr/lib/
Then re-ran udev-discover, which yielded another error:
Traceback (most recent call last): udev-discover" , line 27, in <module> python2. 7/dist- packages/ gi/importer. py", line 145, in load_module import_ module( 'gi.repository. ' + dep.split("-")[0]) python2. 7/importlib/ __init_ _.py", line 37, in import_module _(name) python2. 7/dist- packages/ gi/importer. py", line 145, in load_module import_ module( 'gi.repository. ' + dep.split("-")[0]) python2. 7/importlib/ __init_ _.py", line 37, in import_module _(name) python2. 7/dist- packages/ gi/importer. py", line 145, in load_module import_ module( 'gi.repository. ' + dep.split("-")[0]) python2. 7/importlib/ __init_ _.py", line 37, in import_module _(name) python2. 7/dist- packages/ gi/importer. py", line 146, in load_module introspection_ module) python2. 7/dist- packages/ gi/overrides/ __init_ _.py", line 125, in load_overrides import_ module( override_ package_ name) python2. 7/importlib/ __init_ _.py", line 37, in import_module _(name)
File "/usr/bin/
from gi.repository import Gtk, Gdk
File "/usr/lib/
importlib.
File "/usr/lib/
__import_
File "/usr/lib/
importlib.
File "/usr/lib/
__import_
File "/usr/lib/
importlib.
File "/usr/lib/
__import_
File "/usr/lib/
dynamic_module = load_overrides(
File "/usr/lib/
override_mod = importlib.
File "/usr/lib/
__import_
ImportError: dynamic module does not define init function (initGObject)
Unfortunately, "grep -rl initGObject /usr/lib" yields zero matches.