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

DRONE_IP = "192.168.42.1"

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


if __name__ == "__main__":
    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] 	olympe.media.Bebop2-048552 - _websocket_connect_cb - Websocket connection exception
Traceback (most recent call last):
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/media.py", 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/_core.py", line 515, in create_connection
    websock.connect(url, **options)
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/_core.py", line 223, in connect
    options.pop('socket', None))
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/_http.py", 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/_http.py", line 201, in _open_socket
    raise err
  File "/home/tuckersurf/code/parrot-groundsdk/.python/py3/lib/python3.6/site-packages/websocket/_http.py", line 176, in _open_socket
    sock.connect(address)
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/__init__.py", line 104, in __call__
    return self.func(*args, **kwargs)
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/drone.py", 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/drone.py", line 423, in _update_states
    message._set_last_event(message_event)
  File "/home/tuckersurf/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/messages.py", 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'192.168.42.1'

Unfixable

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