Trying to run dronkit sitl but motors are disarming in mid takeoff mission

I am trying to run a takeoff mission on dronekit sitl, I was able to do the connection link successfully but when I am trying to run the script for takeoffandArm it is failing midflight.
my python version is 3.6 and pymavlink version is 2.4.8.