Cannot stream video from Bebop 2 Drone

Product: Bebop 2
SDK version: Olympe 1.2.1
SDK platform: Ubuntu 18.04

I am having trouble running the example codes provided in the user guide. This code(minor modified from the example in the user guide) works fine, the drone takes off then lands shortly afterward.

import olympe
import time
from olympe.messages.ardrone3.Piloting import TakeOff, Landing


def main():
    drone = olympe.Drone(DRONE_IP)
    print('Conneting to drone...')
    assert drone(TakeOff()).wait().success()
    assert drone(Landing()).wait().success()

if __name__ == "__main__":

However, running the “Video streaming example” code, found here(modifying DRONE_IP to match the IP of my physical drone like i did with the code above, and removing the propellers so it stays grounded), the drone does not do anything. Below is what is produced in the terminal when run.

Any and all help would be appreciated! Thanks in advance. Let me know if more information is needed to debug the issue.

Olympe streaming example output dir: /tmp/olympe_streaming_test_w8o2gllc
2020-06-18 03:51:17,673 [ERROR] - _websocket_connect_cb - Websocket connection exception
Traceback (most recent call last):
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/", line 1483, in _websocket_connect_cb
    self._websocket_url, timeout=2.0
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/", line 515, in create_connection
    websock.connect(url, **options)
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/", line 223, in connect
    options.pop('socket', None))
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/", line 121, in connect
    sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/", line 201, in _open_socket
    raise err
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/", line 176, in _open_socket
ConnectionRefusedError: [Errno 111] Connection refused
2020-06-18 03:51:17,841 [ERROR] 	olympe.drone.Bebop2-048552 - __call__ - Unhandled exception
Traceback (most recent call last):
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/_private/", line 104, in __call__
    return self.func(*args, **kwargs)
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/", line 355, in _recv_cmd_cb
    self._update_states(message, message_args, message_event)
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/", line 423, in _update_states
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/", line 979, in _set_last_event
    if list_flags.First in event.args["list_flags"]:
TypeError: argument of type 'int' is not iterable
2020-06-18 03:51:18,056 [ERROR] 	olympe.drone.Bebop2-048552 - start_video_streaming - Unable to enable legacy video streaming
Takeoff if necessary...
2020-06-18 03:51:18,194 [WARNING] 	olympe.drone.Bebop2-048552 - _on_sync_done - Time synchronization failed for b''


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.