Closed gianlu33 closed 4 years ago
I'm intrigued!
Inside your container, what is the output of python3 --version
Can you point me to your Python 3.6 (base) docker image?
Can you please share your script? (I know your script is unlikely to be causing this)
Also unlikely but is it possible you've modified Olympe in any way ?
Please retry with media_autoconnect set to false (olympe.Drone(<anafi_ip>, media_autoconnect=False)
)
Thanks
Here all the info!
I just updated the version of Python image to 3.8 (but it shouldn't make any difference), so the output of python --version
is the following: Python 3.8.2
The docker base image is the official one: https://hub.docker.com/_/python
My script is very simple, taken from the "User Guide" section of the documentation:
# -*- coding: UTF-8 -*-
from __future__ import print_function # python2/3 compatibility for the print function
import olympe
import time
from olympe.messages.ardrone3.Piloting import TakeOff, moveBy, Landing
from olympe.messages.ardrone3.PilotingState import FlyingStateChanged
drone = olympe.Drone("10.202.0.1")
drone.connect() drone( TakeOff()
FlyingStateChanged(state="hovering", _timeout=5) ).wait() drone( moveBy(10, 0, 0, 0) FlyingStateChanged(state="hovering", _timeout=5) ).wait() drone(Landing()).wait() drone.disconnect()
I did not modify Olympe
I tried with media_autoconnect=False
and yes, the script works with the simulator!
Hope this helps
Alright, I have tested Olympe with Python 3.8 and was able to reproduce this issue. I've submitted a draft PR in #15 that will be included in the next GroundSDK/Olympe release (1.2.1).
Please let me know if that works for you. Thanks
I can confirm that the same python script works perfectly on that version of Olympe.
Thank you!
This has been fixed in Olympe 1.2.1
When trying to simply connect to the drone (using
drone.connect()
) i get the error listed below Note: