Error while trying to start SITL from cygwin

I’ve tried to setup SITL by following the instructions from this link: https://ardupilot.org/dev/docs/sitl-native-on-windows.html

However, when I run the following command:
cd ~/ardupilot/ArduCopter
…/Tools/autotest/sim_vehicle.py --map --console

I get the following error:

It used to work previously, until I used the git submodule update --init --recursive
Could anyone suggest what to do in this case?

You could change this line of code to use relative paths:

Tools\ardupilotwaf\git_submodule.py line 126
before:
tsk.env.SUBMODULE_PATH = module_node.abspath()

and after:
tsk.env.SUBMODULE_PATH = module_node.relpath()

Thanks a lot, it’s working perfectly now!