My python -connect command is not working


Description of problem:
When I try to execute the above command from the last part of the course for “Virtualenv for multiple pymavlink versions”, I am getting an attribute error: ‘None Type’ object has no attribute ‘startwith’ . Can somebody help?

I had the syntax error and found that the pymavlink version was causing issue. So i tried to install according to “Virtualenv for multiple pymavlink versions”.

Text of Error
Traceback (most recent call last):
File “”, line 26, in
vehicle = connectMyCopter()
File “”, line 20, in connectMyCopter
vehicle = connect(connection_string, wait_ready=True)
File “/home/abhishek/courseRoot/env/dksitl/lib/python2.7/site-packages/dronekit/”, line 2835, in connect
handler = MAVConnection(ip, baud=baud, source_system=source_system, use_native=use_native)
File “/home/abhishek/courseRoot/env/dksitl/lib/python2.7/site-packages/dronekit/”, line 125, in init
if ip.startswith(“udpin:”):
AttributeError: ‘NoneType’ object has no attribute ‘startswith’



Could you post your code or send it to me?


closed #3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.