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

前端 未结 3 1202
粉色の甜心
粉色の甜心 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条回答
  •  孤街浪徒
    2021-01-15 22:09

    Shot in the dark here, so apologies if this doesn't fix your problem, but I've suspicions that it will.

    You need to install FTDI Drivers (https://learn.sparkfun.com/tutorials/how-to-install-ftdi-drivers/mac)

    I had similar issues creating a serial connection over USB, using python, between my Arduino and my Mac running Mavericks and subsequently El Capitan. (Worked out of the box on Ubuntu, if you're afraid to mess with your fancy Mac) Expect this to break after an OSX upgrade. (Thanks Apple) It will also only work on the USB port that you specified during this process. So choose wisely ;)

    Hope this helps. I lost days to this issue.

提交回复
热议问题