"GStreamer" (GNOME Bugzilla)
2017-11-09 14:59:07 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=790123
Bug ID: 790123
Summary: Importing Gst from gi.repository fails with
gst_uninstalled setup
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-python
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@ubicast.eu
QA Contact: gstreamer-***@lists.freedesktop.org
GNOME version: ---
I just setup a new gst-uninstalled environment using:
curl
https://cgit.freedesktop.org/gstreamer/gstreamer/plain/scripts/create-uninstalled-setup.sh
| sh
ln -sf ~/gst/master/gstreamer/scripts/gst-uninstalled ~/gst-master
echo "Run: ./gstreamer/scripts/git-update.sh"
~/gst-master
I run git-update, and after building i check that it works with gst-inspect
etc.
$ gst-launch-1.0 --version
gst-launch-1.0 version 1.13.0
GStreamer 1.13.0 (GIT)
Then, from within gst-master, running the following fails:
$ cat test.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from gi.repository import Gst
$ python test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
from gi.repository import Gst
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "/usr/lib/python3.6/site-packages/gi/importer.py", line 146, in
load_module
dynamic_module = load_overrides(introspection_module)
File "/usr/lib/python3.6/site-packages/gi/overrides/__init__.py", line 125,
in load_overrides
override_mod = importlib.import_module(override_package_name)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.6/site-packages/gi/overrides/Gst.py", line 581, in
<module>
real_functions = [o for o in inspect.getmembers(Gst) if isinstance(o[1],
type(Gst.init))]
File "/usr/lib/python3.6/inspect.py", line 342, in getmembers
value = getattr(object, key)
File "/usr/lib/python3.6/site-packages/gi/module.py", line 154, in
__getattr__
assert g_type == TYPE_NONE
AssertionError
For what it's worth, i'm running on Arch, with:
* python-gobject 3.26.0
* gst-python 1.12.3 (i also tried with git gst-python built in
/home/ubicast/gst/master/gst-python)
$ echo $PYTHONPATH
:/usr/lib/python3.6/site-packages:/home/ubicast/gst/master/gst-python
Bug ID: 790123
Summary: Importing Gst from gi.repository fails with
gst_uninstalled setup
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-python
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@ubicast.eu
QA Contact: gstreamer-***@lists.freedesktop.org
GNOME version: ---
I just setup a new gst-uninstalled environment using:
curl
https://cgit.freedesktop.org/gstreamer/gstreamer/plain/scripts/create-uninstalled-setup.sh
| sh
ln -sf ~/gst/master/gstreamer/scripts/gst-uninstalled ~/gst-master
echo "Run: ./gstreamer/scripts/git-update.sh"
~/gst-master
I run git-update, and after building i check that it works with gst-inspect
etc.
$ gst-launch-1.0 --version
gst-launch-1.0 version 1.13.0
GStreamer 1.13.0 (GIT)
Then, from within gst-master, running the following fails:
$ cat test.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from gi.repository import Gst
$ python test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
from gi.repository import Gst
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "/usr/lib/python3.6/site-packages/gi/importer.py", line 146, in
load_module
dynamic_module = load_overrides(introspection_module)
File "/usr/lib/python3.6/site-packages/gi/overrides/__init__.py", line 125,
in load_overrides
override_mod = importlib.import_module(override_package_name)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.6/site-packages/gi/overrides/Gst.py", line 581, in
<module>
real_functions = [o for o in inspect.getmembers(Gst) if isinstance(o[1],
type(Gst.init))]
File "/usr/lib/python3.6/inspect.py", line 342, in getmembers
value = getattr(object, key)
File "/usr/lib/python3.6/site-packages/gi/module.py", line 154, in
__getattr__
assert g_type == TYPE_NONE
AssertionError
For what it's worth, i'm running on Arch, with:
* python-gobject 3.26.0
* gst-python 1.12.3 (i also tried with git gst-python built in
/home/ubicast/gst/master/gst-python)
$ echo $PYTHONPATH
:/usr/lib/python3.6/site-packages:/home/ubicast/gst/master/gst-python
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.