DroneKit: Failed to connect to /dev/tty.usbmodem1411 : 'Serial' object has no attribute 'setBaudrate'

前端 未结 3 1211
粉色の甜心
粉色の甜心 2021-01-15 21:38

Following the DroneKit instructions, I was able to run the hello.py code from their QuickStart guide: http://python.dronekit.io/guide/quick_start.html.

However, when

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-15 22:06

    Fin, it looks like pySerial 3.0 was released in the past week which changes its API. pymavlink (used by DroneKit-Python) requires pySerial 2.0. I've filed an issue and will work to resolve it.

    In the meantime, try pip install "pySerial>=2.0,<=2.9999" and see if this resolves your problem.

提交回复
热议问题