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 154632 - Cannot create spider element using python bindings
Cannot create spider element using python bindings
Status: VERIFIED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-python
0.8.5
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-06 02:59 UTC by Georgi Damyanov
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Georgi Damyanov 2004-10-06 02:59:55 UTC
in a python shell 
Python 2.3.4
>>> from gst import *
>>> mySpider = Element('spider')
>>> print mySpider
<gst.Bin object (GstBin) at 0x40208f2c>
>>>mySpider.get_property('name')
spider
>>>
the object expected is GstSpider.
The default name of the object is
spider0 (as described by <gst-inspect spider>)


Problem occurs with Gstreamer 0.8.5 and gst-python 0.7.6

I am not sure if it is a problem but it might be helpful to know that 
when doing 
$<gst-inspect spider>
the output in the last 20 lines looks like this:

INIT------------gst-inspect spider--------------

Pads:
  UNKNOWN!!!: 'sink'
, ghost of real pad sink_ident:sink
    Implementation:
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "spider0")
  factories           : allowed factories for autoplugging
                        Unknown type 68 "gpointer"

Children:
  sink_ident

EXIT------------gst-inspect spider-----------

There is a bunch of unknowns over here which might be causing the problem
but nevertheless gst-launch works perfectly fine.

Georgi.T.D
Comment 1 Johan (not receiving bugmail) Dahlin 2004-10-10 20:48:13 UTC
can you try using gst.element_factory_make() instead of gst.Element() ?
Comment 2 Stephane Loeuillet 2004-12-19 12:20:28 UTC
no reply, setting to NEEDINFO
Comment 3 Georgi Damyanov 2004-12-21 01:26:57 UTC
Excuse my delay in responding. 
Everything worked fine when I followed your suggestions. 
Thanks alot for the promptness.