Parrot-Developers / olympe

Python controller library for Parrot Drones
https://developer.parrot.com/docs/olympe/index.html
BSD 3-Clause "New" or "Revised" License
80 stars 36 forks source link

Error during drone.connect() #14

Closed gianlu33 closed 4 years ago

gianlu33 commented 4 years ago

When trying to simply connect to the drone (using drone.connect()) i get the error listed below Note:



Thanks in advance for the help
ndessart commented 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

gianlu33 commented 4 years ago

Here all the info!

drone = olympe.Drone("10.202.0.1")

drone = olympe.Drone("192.168.42.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()

Hope this helps

ndessart commented 4 years ago

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

gianlu33 commented 4 years ago

I can confirm that the same python script works perfectly on that version of Olympe.

Thank you!

ndessart commented 4 years ago

This has been fixed in Olympe 1.2.1