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 connection_template.py 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 “connection_template.py”, line 26, in
vehicle = connectMyCopter()
File “connection_template.py”, line 20, in connectMyCopter
vehicle = connect(connection_string, wait_ready=True)
File “/home/abhishek/courseRoot/env/dksitl/lib/python2.7/site-packages/dronekit/init.py”, 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/mavlink.py”, line 125, in init
if ip.startswith(“udpin:”):
AttributeError: ‘NoneType’ object has no attribute ‘startswith’