Iâm trying to run examples/media.py through a SkyController3 by changing DRONE_IP to â192.168.53.1â for the RNDIS IP address. It times out when waiting for media indexing to finish (see log below). I really just care about downloading a photo via the SkyController3, which does work if I use a web browser to GET http://192.168.53.1:180/data/media/XXXXXXXXXXX.JPG , but I canât get the Olympe version of this to work. I donât understand why media indexing is failing. I deleted almost everything from the SD card, which didnât help.
2020-12-02 15:59:32,380 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.recording_capabilities(id=3, recording_modes=âstandard|hyperlapseâ, resolutions=âres_2_7kâ, framerates=âfps_24|fps_25|fps_30â, hdr=supported.supported, list_flags=ââ)
2020-12-02 15:59:32,381 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.recording_capabilities(id=4, recording_modes=âslow_motion|high_framerateâ, resolutions=âres_1080pâ, framerates=âfps_48|fps_50|fps_60â, hdr=supported.not_supported, list_flags=ââ)
2020-12-02 15:59:32,381 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.recording_capabilities(id=5, recording_modes=âslow_motion|high_framerateâ, resolutions=âres_720pâ, framerates=âfps_96|fps_100|fps_120â, hdr=supported.not_supported, list_flags=âLastâ)
2020-12-02 15:59:32,381 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.photo_capabilities(id=0, photo_modes=âsingle|time_lapse|gps_lapseâ, photo_formats=âfull_frameâ, photo_file_formats=âdng_jpegâ, hdr=supported.not_supported, list_flags=âFirstâ)
2020-12-02 15:59:32,382 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.photo_capabilities(id=1, photo_modes=âsingle|time_lapse|gps_lapseâ, photo_formats=ârectilinearâ, photo_file_formats=âdng_jpegâ, hdr=supported.not_supported, list_flags=ââ)
2020-12-02 15:59:32,385 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.photo_capabilities(id=2, photo_modes=âsingle|burst|time_lapse|gps_lapseâ, photo_formats=âfull_frameâ, photo_file_formats=âjpegâ, hdr=supported.supported, list_flags=ââ)
2020-12-02 15:59:32,386 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.photo_capabilities(id=3, photo_modes=âsingle|burst|time_lapse|gps_lapseâ, photo_formats=ârectilinearâ, photo_file_formats=âjpegâ, hdr=supported.supported, list_flags=ââ)
2020-12-02 15:59:32,388 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.photo_capabilities(id=4, photo_modes=âbracketingâ, photo_formats=âfull_frameâ, photo_file_formats=âjpeg|dng_jpegâ, hdr=supported.not_supported, list_flags=ââ)
2020-12-02 15:59:32,388 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.photo_capabilities(id=5, photo_modes=âbracketingâ, photo_formats=ârectilinearâ, photo_file_formats=âjpeg|dng_jpegâ, hdr=supported.not_supported, list_flags=âLastâ)
2020-12-02 15:59:32,389 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - camera.photo_mode(cam_id=0, mode=photo_mode.burst, format=photo_format.rectilinear, file_format=photo_file_format.jpeg, burst=burst_value.burst_14_over_1s, bracketing=bracketing_preset.preset_1ev, capture_interval=0.0, list_flags=ââ)
2020-12-02 15:59:32,397 [INFO] main - main - waiting for media resources indexingâŚ
2020-12-02 15:59:35,886 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-27)
2020-12-02 15:59:36,886 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 15:59:38,887 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 15:59:40,889 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 15:59:41,888 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 15:59:42,889 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 15:59:43,889 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 15:59:44,890 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 15:59:45,890 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 15:59:47,891 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 15:59:49,893 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 15:59:51,894 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 15:59:52,894 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 15:59:54,894 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 15:59:55,894 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 15:59:57,896 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 16:00:00,898 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 16:00:01,897 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 16:00:02,898 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 16:00:03,421 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - common.CommonState.BatteryStateChanged(percent=58)
2020-12-02 16:00:03,897 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 16:00:04,898 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 16:00:07,900 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 16:00:08,901 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 16:00:09,901 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 16:00:10,901 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 16:00:11,902 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-27)
2020-12-02 16:00:12,902 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 16:00:15,904 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 16:00:16,906 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-28)
2020-12-02 16:00:18,906 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 16:00:20,907 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 16:00:24,909 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 16:00:25,911 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-31)
2020-12-02 16:00:27,910 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-30)
2020-12-02 16:00:31,912 [INFO] olympe.example_media_standalone.drone - _recv_cmd_cb - wifi.rssi_changed(rssi=-29)
2020-12-02 16:00:32,399 [ERROR] main - main - Media indexing timed out
2020-12-02 16:00:32,403 [INFO] olympe.example_media_standalone.media - _shutdown - olympe.media shutdown
2020-12-02 16:00:32,406 [INFO] olympe.example_media_standalone.media - destroy_timer - Pomp loop timer has been destroyed
2020-12-02 16:00:32,409 [INFO] olympe.example_media_standalone.media - _destroy_pomp_loop - Pomp loop has been destroyed
2020-12-02 16:00:32,422 [INFO] olympe.example_media_standalone.drone - disconnect - we are not disconnected yet
2020-12-02 16:00:32,428 [INFO] olympe.example_media_standalone.drone - _disconnected_cb - Disconnected from device: Skycontroller 3
2020-12-02 16:00:32,429 [INFO] olympe.example_media_standalone.drone - _disconnection_impl - disconnected from device: bâ192.168.53.1â
2020-12-02 16:00:32,430 [INFO] olympe.example_media_standalone.drone - disconnect - Disconnection with the device OK. IP: bâ192.168.53.1â
2020-12-02 16:00:32,431 [INFO] olympe.example_media_standalone.pdraw - _destroy_pomp_loop - Pomp loop has been destroyed
2020-12-02 16:00:32,433 [INFO] olympe.example_media_standalone.pdraw - dispose - pdraw callbacks thread loop stopped
2020-12-02 16:00:32,435 [INFO] olympe.example_media_standalone.pdraw - _destroy - destroying yuv buffer poolâŚ
2020-12-02 16:00:32,436 [INFO] olympe.example_media_standalone.pdraw - _destroy - yuv buffer pool destroyed
2020-12-02 16:00:32,437 [INFO] olympe.example_media_standalone.pdraw - _destroy - pdraw thread loop stopped
2020-12-02 16:00:32,446 [INFO] olympe.example_media_standalone.backend - _destroy - Manager has been destroyed
2020-12-02 16:00:32,447 [INFO] olympe.example_media_standalone.backend - destroy_timer - Pomp loop timer has been destroyed
2020-12-02 16:00:32,448 [INFO] olympe.example_media_standalone.backend - destroy_timer - Pomp loop timer has been destroyed
2020-12-02 16:00:32,448 [INFO] olympe.example_media_standalone.backend - _destroy_pomp_loop - Pomp loop has been destroyed
2020-12-02 16:00:32,452 [INFO] olympe.example_media_standalone.scheduler - _destroy_pomp_loop - Pomp loop has been destroyed
2020-12-02 16:00:32,456 [INFO] olympe.example_media_autoconnect.backend - _create_pomp_loop - Creating pomp loop
2020-12-02 16:00:32,457 [INFO] olympe.example_media_autoconnect.backend - _do_create - device callbacks have been added to arsdk_ctrl
2020-12-02 16:00:32,459 [INFO] olympe.example_media_autoconnect.backend - create_timer - Creating pomp timer
2020-12-02 16:00:32,459 [INFO] olympe.example_media_autoconnect.scheduler - _create_pomp_loop - Creating pomp loop
2020-12-02 16:00:32,548 [INFO] olympe.example_media_standalone.pdraw - _destroy_pomp_loop - Pomp loop has been destroyed
2020-12-02 16:00:32,910 [INFO] olympe.example_media_autoconnect.backend - create_timer - Creating pomp timer
2020-12-02 16:00:32,912 [INFO] olympe.example_media_autoconnect.backend - _device_added_cb - New device has been detected: âSkycontroller 3â
2020-12-02 16:00:32,913 [INFO] olympe.example_media_autoconnect.drone - _connecting_cb - Connecting to device: Skycontroller 3
2020-12-02 16:00:32,914 [INFO] olympe.example_media_autoconnect.drone - _connection_impl - Connection in progressâŚ
2020-12-02 16:00:32,916 [INFO] olympe.example_media_autoconnect.drone - _canceled_cb - Connection to device: Skycontroller 3 has been canceled for reason: REJECTED
2020-12-02 16:00:32,918 [ERROR] olympe.example_media_autoconnect.drone - connect - Unable to connect to the device: bâ192.168.53.1â
2020-12-02 16:00:32,921 [INFO] olympe.example_media_autoconnect.backend - _destroy - Manager has been destroyed
2020-12-02 16:00:32,925 [INFO] olympe.example_media_autoconnect.backend - destroy_timer - Pomp loop timer has been destroyed
2020-12-02 16:00:32,926 [INFO] olympe.example_media_autoconnect.backend - destroy_timer - Pomp loop timer has been destroyed
2020-12-02 16:00:32,926 [INFO] olympe.example_media_autoconnect.backend - _destroy_pomp_loop - Pomp loop has been destroyed
2020-12-02 16:00:32,929 [INFO] olympe.example_media_autoconnect.scheduler - destroy_pomp_loop - Pomp loop has been destroyed
Traceback (most recent call last):
File âmedia.pyâ, line 197, in
main(drone)
File âmedia.pyâ, line 161, in main
media.download_dir = tempfile.mkdtemp(prefix="olympe_media_example")
AttributeError: âNoneTypeâ object has no attribute âdownload_dirâ
2020-12-02 16:00:32,955 [INFO] olympe.example_media_standalone.scheduler - _destroy_pomp_loop - Pomp loop has been destroyed
Whatâs the simplest way to download a photo using Olympe? If I skip waiting on indexing_state(state=âindexedâ), then drone(download_media(media_id, integrity_check=True)) fails with
2020-12-02 15:09:52,021 [ERROR] olympe.callbacks - call - Unhandled exception
Traceback (most recent call last):
File â/home/olympe/code/parrot-groundsdk/packages/olympe/src/olympe/_private/init.pyâ, line 104, in call
return self.func(*args, **kwargs)
File â/home/olympe/code/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/expectations.pyâ, line 177, in _schedule
expectation._schedule(self)
File â/home/olympe/code/parrot-groundsdk/packages/olympe/src/olympe/media.pyâ, line 1120, in _schedule
self._media = media_context._get_media(self._media_id)
File â/home/olympe/code/parrot-groundsdk/packages/olympe/src/olympe/media.pyâ, line 1678, in _get_media
if media_id in self._media_state:
TypeError: argument of type âNoneTypeâ is not iterable