Help with Gst.Iterator.find_custom() in python

Marianna S. Buschle msb at
Tue May 25 08:47:36 UTC 2021

Hi, thanks for the help

I had tried using the iterator directly previously, but couldn't get it to
work either.
So I though that maybe it was me not knowing how to use it.

But with your code I'm getting similar errors:

API Exception: {'type': 'TypeError', 'args': ("'Iterator' object is not
iterable",), 'message': "'Iterator' object is not iterable"}
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/jsonrpc/", line 113, in
    result = method(*request.args, **request.kwargs)
  File "/home/msb/QtecGit/python-tests/", line 283, in play
  File "/home/msb/QtecGit/python-tests/", line 79, in play
    elem = gst_bin_get_by_gtype(self.pipeline[index], "filesink")
  File "/home/msb/QtecGit/python-tests/", line 61, in
    return None if factory is None else next(filter(lambda c: c.__gtype__ ==
factory.get_element_type(), bin.iterate_recurse()), None)
TypeError: 'Iterator' object is not iterable

Sent from:

More information about the gstreamer-devel mailing list