Ardupilot sim_vehicle.py doesnt work . Errno 13 Permission denied: 'tasklist.json'

hi i want to open ardupilot sim_vehicle.py at ubuntu terminal. But it gives me error below

SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at SITL location
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/home/rosevera/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Traceback (most recent call last):
File “/home/rosevera/ardupilot/modules/waf/waflib/Scripting.py”, line 158, in waf_entry_point
run_commands()
File “/home/rosevera/ardupilot/modules/waf/waflib/Scripting.py”, line 248, in run_commands
run_command(‘init’)
File “/home/rosevera/ardupilot/modules/waf/waflib/Scripting.py”, line 235, in run_command
ctx.execute()
File “/home/rosevera/ardupilot/modules/waf/waflib/Context.py”, line 204, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File “/home/rosevera/ardupilot/modules/waf/waflib/Context.py”, line 286, in recurse
user_function(self)
File “/home/rosevera/ardupilot/wscript”, line 91, in init
generate_tasklist(ctx, False)
File “/home/rosevera/ardupilot/wscript”, line 559, in generate_tasklist
with open(os.path.join(Context.top_dir, “tasklist.json”), “w”) as tlist:
IOError: [Errno 13] Permission denied: ‘tasklist.json’
SIM_VEHICLE: (Configure waf) exited with code 512
SIM_VEHICLE: Killing tasks

Please somebody help , how can i solve this

you probably used sudo to make a build in the past.
just remove you build directory entirely and retry (sudo rm -rf build/)

you are a lifesaver thaaank you sooooo much :slight_smile: