[Bug 726493] Gst overrides do not work on Python 3.3, but do on Python 2.7

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Mar 21 07:14:28 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=726493
  GStreamer | gst-python | 1.2.0

tcapix <ticapix> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ticapix at gmail.com

--- Comment #2 from tcapix <ticapix at gmail.com> 2014-03-21 14:39:18 UTC ---
I encountered the same problem with this code:    
    #!/usr/bin/env python3

    import gi
    gi.require_version('Gst', '1.0')
    from gi.repository import Gst
    print(Gst.version())     
    src = Gst.ElementFactory.make('filesrc', None)

Stacktrace     
    $./gst01.py
    (1, 2, 3, 0)
    Traceback (most recent call last):
      File "./gst01.py", line 8, in <module>
        src = Gst.ElementFactory.make('filesrc', None)
      File "/usr/lib/python3/dist-packages/gi/overrides/Gst.py", line 166, in
make
        return Gst.ElementFactory.make(factory_name, instance_name)
    AttributeError: 'NoneType' object has no attribute 'ElementFactory'
    $


Solved it by removing the package python3-gst-1.0 and only keeping python3-gi +
gir1.2-gstreamer-1.0.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list