Launch QGC with dronekit script part3


Hi! i cannot find a solution for launchSitl Do someone know how to solve this? i have been stuck here for a while now :confused:


Hey there,

Solution 1:

  1. Try ‚Äúsudo apt-get install screen‚ÄĚ. Maybe your screen dependancy is not installed. After this run it again. It might work.

Solution 2:

  1. Maybe your pvmavlink is of a higher version, apparently pymavlink >2.0 has an issue so pip uninstall pymavlink and then pip install pymavlink==1.1.69. Maybe that is the issue.

Solution 3:

  1. Last solution I can think of is to try and modify the script.
  2. I found a similar problem on a previous thread, follow this and try:


Thanks for your time helping me :slight_smile: !

The second option was the solution get it through but now i am stuck waiting for the guided mode which i earlier solved by installing pymavlink==2.0.6. is there any ideas? :confused:



When you run ‚Ķ/Tools/autotest/ from ardupilot/ArduCopter, then wait for a minute or so until you see EKF2 and then type ‚Äúmode guided‚ÄĚ. Do this before you run anything else that you need guided mode for. After you run this, you can run the script. It should work.




Also maybe try posting this as a different doubt so that it can help others in case they face the same doubt, they will not be able to locate it on this chain


i am doing something wrong here?



Try running …/Tools/autoset/ -f gazebo-iris -v ArduCopter from the ardupilot.ArduCopter directory. And then go into guided mode. After that run your script. If that doesn’t work please attach your script to check




From what I can see you have still not run ‚Äú‚Ķ/Tools/autotest/ -f gazebo-iris -v ArduCopter‚ÄĚ. I do not know why but in this text box, I am typing two dots but three dots are showing up in the command. That command should run, only then will your other script work.
image Run it with two dots like this.



Two dots, not three. And without the inverted commas.



same result :confused:

Thanks for your patience, i am in my learning process :slight_smile:


Remove the quotation marks before and after the command



Hmm this is progress. I think you haven’t installed ArduPilot correctly. Follow these steps once:

  1. Uninstall Ardupilot once (delete the repo)
  2. Go to the directory you want to install (on your terminal) and ‚Äúgit clone‚ÄĚ
  3. Now just cd into the ardupilot directory and run ‚Äúgit submodule update --init --recursive‚ÄĚ
  4. Then run ‚ÄúTools/environment_install/ -y‚ÄĚ from the ardupilot directory.
  5. Now cd to ardupilot/ArduCopter and run ‚Äú‚Ķ/Tools/autoset/ -f gazebo-iris‚ÄĚ
    Hopefully this should work.

Then you can run whatever you want after putting in guided mode.


sry, I am new to the coding launguage, what do you mean with delete the repo? is it a file or a map? or can i pip unistall ardupilot?


Just delete the ardupilot folder


bad news :frowning: any ideas where it went wrong?

But i can access without starting with ‚Äú‚Ķ/Tools/autoset/ -f gazebo-iris‚ÄĚ

still not in guided mode



it did not work to change mode to ‚Äėguided‚Äô under

is it possible to run to diffrent pymavlink (1.1.69 && 2.06) at the same time?


Hi jashshah999!

For some reason i have to manually click takeoff at the QGC and ‚Äėslide to confirm‚Äô in order to make it work. But isn‚Äôt it supposed to do it by itself?