Error with setting up of gazebo in wsl windows 11

root@SuryaDeveloper:~/ardupilot# sim_vehicle.py -v ArduCopter -f gazebo-iris --console
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: "/root/ardupilot/modules/waf/waf-light" "configure" "--board" "sitl"
Traceback (most recent call last):
  File "/root/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 "/root/ardupilot/modules/waf/waflib/Scripting.py", line 165, in waf_entry_point
    run_commands()
  File "/root/ardupilot/modules/waf/waflib/Scripting.py", line 262, in run_commands
    parse_options()
  File "/root/ardupilot/modules/waf/waflib/Scripting.py", line 214, in parse_options
    Context.create_context('options').execute()
  File "/root/ardupilot/modules/waf/waflib/Options.py", line 271, in execute
    super(OptionsContext, self).execute()
  File "/root/ardupilot/modules/waf/waflib/Context.py", line 205, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/root/ardupilot/modules/waf/waflib/Context.py", line 287, in recurse
    user_function(self)
  File "/root/ardupilot/wscript", line 52, in options
    opt.load('compiler_cxx compiler_c waf_unit_test python')
  File "/root/ardupilot/modules/waf/waflib/Context.py", line 197, in load
    fun(self)
  File "/root/ardupilot/modules/waf/waflib/Tools/compiler_cxx.py", line 103, in options
    opt.load_special_tools('cxx_*.py')
  File "/root/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 "/root/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 "/root/ardupilot/modules/waf/waflib/Node.py", line 683, in <listcomp>
    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

this is the error while i start the project to simulate using
sim_vehicle.py -v ArduCopter -f gazebo-iris --console

@Yuri_Rage could you please help me with this

I’m afraid I’m not very familiar with Gazebo simulations. It’s a Python error, so I suspect that you are running into the same kinds of problems that users experience when running SITL in older Linux distros. What distribution are you using?

Did you install the prerequisites?

1 Like

Thank you @Yuri_Rage @Mustafa_Gokce
For your early reply
i am using a wsl in windows 11 it has python3.8.x in it
i have followed all the installation steps from the docs only
sorry i could not understand what is meant by prerequisites

@Mustafa_Gokce could you please help me solving this issue