Package: python3-gbulb
Version: 0.5.3-2
Severity: serious
Justification: missing dependency

After installing python3-gbulb, I tried importing it into a python
interpreter:

| $ python3
| Python 3.6.5 (default, Apr  1 2018, 05:46:30)
| [GCC 7.3.0] on linux
| Type "help", "copyright", "credits" or "license" for more information.
| >>> import gbulb
| Traceback (most recent call last):
|   File "<stdin>", line 1, in <module>
|   File "/usr/lib/python3/dist-packages/gbulb/__init__.py", line 1, in <module>
|     from .glib_events import *
|   File "/usr/lib/python3/dist-packages/gbulb/glib_events.py", line 8, in 
<module>
|     from gi.repository import GLib, Gio
| ModuleNotFoundError: No module named 'gi'
| >>>
| $

It looks like python3-gbulb is missing a dependency on python3-gi. After
installing that package, the ModuleNotFoundError goes away.

Such dependencies are usually inserted via substitution variables and
originate from setup.py. Indeed, gbulb's setup.py lacks any requires
assignments. Likely, this bug should be fixed upstream rather than
simply adding the dependency in debian/control.

Helmut

Reply via email to