Build fails in uavcangen.py

File “Tools/ardupilotwaf/uavcangen.py”, line 24, in run
input_dir = os.path.dirname(self.inputs[0].abspath())
IndexError: list index out of range

It worked 3 days ago, and I can’t find any changes in the code. I’m sure it’s my environment but have no idea where to look. Any help at all is better than I’m doing. This is a build against a fresh git clone . There is an open issue but no comments made to it.

Did you find a solution for this? I am having the same issue.

I’d check that the submodules are all up to date using:

git submodule update --recursive

If that fails then perhaps ping the question in the developer gitter chat.

I can’t remember the exact fix, but it was either checkout, then run git submodule update, then run ./waf distclean. i think it was caused by checking out an older version. I assumed you only had to update submodules when cloning the repo, but you need to do that after a checkout too.

Yup submodule update did the trick. Thank You.

Same problem. git submodule update --recursive did not help. Is there another way? Copter-3.6.5. Cygwin.

UPD some time later: I have bear it. For now submodules need to be updated like this: “git submodule update --init --recursive”.

1 Like

i have the same problem