Video streaming.py olympe ANAFI

hello I can not launch the example streaming.py I use a raspberry pi on dedian. the drone does not take off, a window opens and closes

2022-05-16 13:31:05,797 e[31m[ERROR] e[0m	ulog - pdraw_sink_coded_video - VideoDecoder#2: coded video media format H264/AVCC not supportede[0m
2022-05-16 13:31:06,065 e[31m[ERROR] e[0m	olympe.video.renderer - _run_task_list - Unhandled exception in async task functione[0m
Traceback (most recent call last):
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/utils/pomp_loop_thread.py", line 535, in _run_task_list
    ret = f(*args, **kwds)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/renderer.py", line 86, in _async_init
    GLX.glXMakeCurrent(self.x11display, self.x11window, self.glx_context)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/renderer.py", line 111, in glx_context
    ctypes.addressof(ctypes.c_int(self._glcontext)), GLX.GLXContext
TypeError: an integer is required (got type NoneType)
Traceback (most recent call last):
  File "streaming.py", line 212, in <module>
    test_streaming()
  File "streaming.py", line 202, in test_streaming
    streaming_example.start()
  File "streaming.py", line 72, in start
    self.renderer = PdrawRenderer(pdraw=self.drone.streaming)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/renderer.py", line 50, in __init__
    initialized.result_or_cancel(timeout=5.0)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/utils/pomp_loop_thread.py", line 159, in result_or_cancel
    return self.result(timeout=timeout)
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/utils/pomp_loop_thread.py", line 535, in _run_task_list
    ret = f(*args, **kwds)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/renderer.py", line 86, in _async_init
    GLX.glXMakeCurrent(self.x11display, self.x11window, self.glx_context)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/renderer.py", line 111, in glx_context
    ctypes.addressof(ctypes.c_int(self._glcontext)), GLX.GLXContext
TypeError: an integer is required (got type NoneType)
2022-05-16 13:31:06,176 e[31m[ERROR] e[0m	olympe.video.renderer - __call__ - Unhandled exceptione[0m
Traceback (most recent call last):
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/utils/__init__.py", line 96, in __call__
    return self.func(*args, **kwargs)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/renderer.py", line 175, in _dispose
    self.dispose()
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/renderer.py", line 296, in dispose
    if self._pdraw_renderer:
AttributeError: 'PdrawRenderer' object has no attribute '_pdraw_renderer'
2022-05-16 13:31:08,089 e[31m[ERROR] e[0m	olympe.pdraw.ANAFI-E001669 - destroy - Pdraw.destroy() timedoute[0m
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 232, in 'calling callback function'
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe_deps/__init__.py", line 86, in <lambda>
    type_((lambda callback: lambda *args: callback(*args))(
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/pdraw.py", line 783, in _media_removed
    self._media_removed_impl(id_)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/pdraw.py", line 791, in _media_removed_impl
    timeout=5.)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/utils/pomp_loop_thread.py", line 159, in result_or_cancel
    return self.result(timeout=timeout)
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 434, in result
    raise TimeoutError()
concurrent.futures._base.TimeoutError
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 232, in 'calling callback function'
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe_deps/__init__.py", line 86, in <lambda>
    type_((lambda callback: lambda *args: callback(*args))(
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/pdraw.py", line 783, in _media_removed
    self._media_removed_impl(id_)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/video/pdraw.py", line 791, in _media_removed_impl
    timeout=5.)
  File "/home/pi/my-virtual-env/lib/python3.7/site-packages/olympe/utils/pomp_loop_thread.py", line 159, in result_or_cancel
    return self.result(timeout=timeout)
  File "/usr/lib/python3.7/concurrent/futures/_base.py", line 434, in result
    raise TimeoutError()
concurrent.futures._base.TimeoutError
2022-05-16 13:31:16,116 e[33m[WARNING] e[0m	olympe.pdraw.ANAFI-E001669 - _stop - cleanup leftover pdraw callbacks eventfdse[0m
2022-05-16 13:31:16,116 e[33m[WARNING] e[0m	olympe.pdraw.ANAFI-E001669 - _stop - cleanup leftover pdraw callbacks eventfdse[0m
2022-05-16 13:31:18,222 e[31m[ERROR] e[0m	olympe.pdraw.ANAFI-E001669 - _cleanup - Deferred cleanup action are still pending after 3.0se[0m
2022-05-16 13:31:18,222 e[33m[WARNING] e[0m	olympe.pdraw.ANAFI-E001669 - _cleanup - Futures still running: 1e[0m

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.