Sim_vehicle.py error on linux

Hello!
I’m working on Setting up SITL on Linux.When I started SITL simulator:

sim_vehicle.py -w

Things went wrong:

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/sophie/ardupilot/modules/waf/waf-light” “configure” “–board” "sitl"
Traceback (most recent call last):
File “/home/sophie/ardupilot/Tools/autotest/sim_vehicle.py”, line 980, in
do_build(vehicle_dir, cmd_opts, frame_infos)
File “/home/sophie/ardupilot/Tools/autotest/sim_vehicle.py”, line 566, in do_build
return do_build_waf(opts, frame_options)
File “/home/sophie/ardupilot/Tools/autotest/sim_vehicle.py”, line 532, in do_build_waf
run_cmd_blocking(“Configure waf”, cmd_configure, check=True)
File “/home/sophie/ardupilot/Tools/autotest/sim_vehicle.py”, line 645, in run_cmd_blocking
p = subprocess.Popen(cmd, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
SIM_VEHICLE: Killing tasks

Anybody help me?Thanks!

On ArduPilot top level directory do git submodule update --init modules/waf and then try again running sim_vehicle.

Hi @leesf1996,

Have you been able to solve this problem? I’m having the same issue…

thanks

Hello @leesf1996,

Did you try to run it as a super user? (sudo?)

Let me know, if this helps.