After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 712236 - gst-python bindings for python 3.2 don't working
gst-python bindings for python 3.2 don't working
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-python
1.2.1
Other Linux
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-13 16:58 UTC by m][sko
Modified: 2013-11-26 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description m][sko 2013-11-13 16:58:16 UTC
I build latest gst-python 1.0_1.1.90 from debian pkg. repository with gstreamer 1.2.1
And I get this traceback when I want to use it in python 3.2

Traceback (most recent call last):
  • File "./encode3.py", line 7 in <module>
    from gi.repository import GObject, Gst
  • File "/usr/lib/python3/dist-packages/gi/importer.py", line 76 in load_module
    dynamic_module._load()
  • File "/usr/lib/python3/dist-packages/gi/module.py", line 224 in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  • File "/usr/lib/python3/dist-packages/gi/overrides/Gst.py", line 262 in <module>
    import _gi_gst
ImportError: No module named _gi_gst

code:

#!/usr/bin/python3.2

from os import path

import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst



All fine with binding for python 2.7

ubuntu 12.04 32bit
or
debian 7.0 (raspbian) on rpi
Comment 1 Sebastian Dröge (slomo) 2013-11-26 10:40:38 UTC
Works fine here with Python 3.3, but with 3.2 even "import gi" fails already for me:

Python 3.2.4 (default, May  8 2013, 20:55:18) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
  • File "/usr/lib/python3/dist-packages/gi/__init__.py", line 27 in <module>
    from ._gi import _API
ImportError: No module named _gi


I consider this a packaging bug or python-gi generally not being compatible with Python 3.2.