Control: tags -1 patch upstream
Control: forwarded -1 https://bugzilla.gnome.org/show_bug.cgi?id=795555

On Fri, 20 Apr 2018 22:00:51 +0200 Helmut Grohne <hel...@subdivi.de> wrote:
> Package: python-gst-1.0
> Version: 1.14.0-1
> Severity: serious
> User: helm...@debian.org
> Usertags: python-import
> 
> After installing python-gst-1.0 importing the module gi.overrides.Gst
> into a python interpreter fails with the following error:
> 
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/usr/lib/python2.7/dist-packages/gi/overrides/Gst.py", line 43, in 
> <module>
>     Gst = modules['Gst']._introspection_module
> KeyError: 'Gst'
> 
> The vast majority of import failures is attributed to missing dependencies.
> Often times that manifests as an ImportError or ModuleNotFoundError.
> Typically, dependencies should be inserted by dh-python via ${python:Depends}
> or ${python3:Depends}. Thus a missing dependency can be caused by incomplete
> install_requires in setup.py. Sometimes a missing dependency of a dependency
> is the cause, in such cases this bug should be reassigned.

Thanks for your report. I sent a patch upstream, see the forwarded URI. The
workaround is to first import the introspection module (which I believe imports
the override for you):

from gi.repository import Gst

Cheers,
Emilio

Reply via email to