jackersson/gst-python-hacks

TypeError: cannot unpack non-iterable MapInfo object

miguelwon opened this issue · 1 comments

I getting this error when trying to replicate the notebook:

>>> ret, map_info = buffer.map(Gst.MapFlags.READ | Gst.MapFlags.WRITE)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: cannot unpack non-iterable MapInfo object

Hi @miguelwon ,

According to documentation:

map(Gst.MapFlags) -> Tuple(bool, Gst.MapInfo)

So, function signature is Ok.

But the reason of problem is installed version of gst-python. Check installation guide with gstreamer-python package, which should install everything right.

Also there is a dockerfile which I used to check project.

Best regards,