[gstreamer-bugs] [Bug 624592] New: gst-python: plugin: attempt to load plugin "python" fails with KeyError

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jul 16 21:17:22 PDT 2010


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

           Summary: gst-python: plugin: attempt to load plugin "python"
                    fails with KeyError
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: lsinger at caltech.edu
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Created an attachment (id=166052)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=166052)
Proposed patch

Whenever I do an action that causes GStreamer to try to load the "python"
plugin (e.g. nuking my registry, and running gst-inspect) I see the following
error message:

0:00:00.042414258  4042      0x2221030 ERROR               pyplugin
gstpythonplugin.c:267:pygst_require: the pygst module is not available!
KeyError: 'pygst'
0:00:00.042578175  4042      0x2221030 WARN      GST_PLUGIN_LOADING
gstplugin.c:557:gst_plugin_register_func: plugin
"/home/lsinger/opt/gstlal/lib/gstreamer-0.10/libgstpython.so" failed to
initialise

The "KeyError" made me think of the calls to PySys_GetObject in
plugin/gstpythonplugin.c, so I tried commenting them out, and my Python plugin
(with all of my Python elements) showed up again.

I don't really understand why this fixed it, but hopefully this will be a
useful clue to help someone to track it down.  I've attached a patch that shows
what I did.  Since most of the change is actually indentation of "if"
statements, I used "git diff -w" to suppress white space.

I am using GStreamer built from git.  I pulled just after Release 0.10.30 was
announced.  I am on an x86-64 box running Debian Testing.

-- 
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