Error running sim_vehicle.py

Wonderfull !
Maybe it was just missing a root or closing the ubuntu shell to update all links.

Have fun !

I had problems with the default installation as well. The problem was related to x-window absense, so I solved that by using information from here: https://askubuntu.com/questions/993225/whats-the-easiest-way-to-run-gui-apps-on-windows-subsystem-for-linux-as-of-2018

i have the same problem , what is the command that you have used please, thank you

This worked for me. I guess the pre-req were not installed properly.

l have same problem
Build commands will be stored in build/sitl/compile_commands.json
‘build’ finished successfully (1.107s)
SIM_VEHICLE: Using defaults from (Tools/autotest/default_params/copter.parm)
SIM_VEHICLE: Run ArduCopter
SIM_VEHICLE: “/home/diane/ardupilot/Tools/autotest/run_in_terminal_window.sh” “ArduCopter” “/home/diane/ardupilot/build/sitl/bin/arducopter” “-S” “–model” “+” “–speedup” “1” “–slave” “0” “–defaults” “Tools/autotest/default_params/copter.parm” “–sim-address=127.0.0.1” “-I0”
RiTW: Starting ArduCopter : /home/diane/ardupilot/build/sitl/bin/arducopter -S --model + --speedup 1 --slave 0 --defaults Tools/autotest/default_params/copter.parm --sim-address=127.0.0.1 -I0
SIM_VEHICLE: Run MavProxy
SIM_VEHICLE: “mavproxy.py” “–out” “127.0.0.1:14550” “–master” “tcp:127.0.0.1:5760” “–sitl” “127.0.0.1:5501” “–map” “–console” “–aircraft” “test”
[Run MavProxy] An exception has occurred with command: ‘mavproxy.py --out 127.0.0.1:14550 --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --map --console --aircraft test’
[Errno 2] No such file or directory: ‘mavproxy.py’
SIM_VEHICLE: Killing tasks

The problem was solved because mavproxy was installed during compilation build, but mavproxy was not installed using pip. The problem was solved after reinstallation.

diane@ubuntu:~/ardupilot$ mavproxy.py --version
MAVProxy is a modular ground station using the mavlink protocol
MAVProxy Version: 1.8.70
diane@ubuntu:~/ardupilot$ sudo pip3 uninstall mavproxy
WARNING: Skipping mavproxy as it is not installed.
$ diane@ubuntu:~/ardupilot$ sudo pip3 install -U mavproxy
Collecting mavproxy
Downloading MAVProxy-1.8.70-py3-none-any.whl (7.2 MB)
|████████████████████████████████| 7.2 MB 469 kB/s

hello,
I’m new to ardupilot, and I’m running into some issues
i followed this video : 02 Installing ArduCopter for Development (SITL) (youtube.com)
new virtualbox machine ubuntu 20.04 focal fossa lts
and when i run this : sim_vehicle.py -w
i get this :
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at -35.363261,149.165230,584,353 (CMAC)
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/home/rachideu/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Traceback (most recent call last):
File “/home/rachideu/ardupilot/modules/waf/waflib/Node.py”, line 590, in ant_iter
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/home/rachideu/ardupilot/modules/waf/waflib/Scripting.py”, line 165, in waf_entry_point
run_commands()
File “/home/rachideu/ardupilot/modules/waf/waflib/Scripting.py”, line 262, in run_commands
parse_options()
File “/home/rachideu/ardupilot/modules/waf/waflib/Scripting.py”, line 214, in parse_options
Context.create_context(‘options’).execute()
File “/home/rachideu/ardupilot/modules/waf/waflib/Options.py”, line 271, in execute
super(OptionsContext, self).execute()
File “/home/rachideu/ardupilot/modules/waf/waflib/Context.py”, line 205, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File “/home/rachideu/ardupilot/modules/waf/waflib/Context.py”, line 287, in recurse
user_function(self)
File “/home/rachideu/ardupilot/wscript”, line 52, in options
opt.load(‘compiler_cxx compiler_c waf_unit_test python’)
File “/home/rachideu/ardupilot/modules/waf/waflib/Context.py”, line 197, in load
fun(self)
File “/home/rachideu/ardupilot/modules/waf/waflib/Tools/compiler_cxx.py”, line 103, in options
opt.load_special_tools(‘cxx_*.py’)
File “/home/rachideu/ardupilot/modules/waf/waflib/Context.py”, line 609, in load_special_tools
lst = self.root.find_node(waf_dir).find_node(‘waflib/extras’).ant_glob(var)
File “/home/rachideu/ardupilot/modules/waf/waflib/Node.py”, line 683, in ant_glob
ret = [x for x in self.ant_iter(accept=accept, pats=[to_pat(incl), to_pat(excl)], maxdepth=kw.get(‘maxdepth’, 25), dir=dir, src=src, remove=kw.get(‘remove’, True))]
File “/home/rachideu/ardupilot/modules/waf/waflib/Node.py”, line 683, in
ret = [x for x in self.ant_iter(accept=accept, pats=[to_pat(incl), to_pat(excl)], maxdepth=kw.get(‘maxdepth’, 25), dir=dir, src=src, remove=kw.get(‘remove’, True))]
RuntimeError: generator raised StopIteration
SIM_VEHICLE: (Configure waf) exited with code 512
SIM_VEHICLE: Killing tasks

help me please