Build Ardupilot 4.0.4 error

What can I do to fix this? Build Ardupilot 4.0.4 error

File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Scripting.py”, line 158, in waf_entry_point
run_commands()
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Scripting.py”, line 251, in run_commands
ctx = run_command(cmd_name)
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Scripting.py”, line 235, in run_command
ctx.execute()
File “Tools/ardupilotwaf/ardupilotwaf.py”, line 205, in execute
return execute_method(self)
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Scripting.py”, line 573, in execute
return execute_method(self)
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Build.py”, line 231, in execute
self.execute_build()
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Build.py”, line 251, in execute_build
self.compile()
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Build.py”, line 345, in compile
self.producer.start()
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Runner.py”, line 428, in start
self.refill_task_list()
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Runner.py”, line 255, in refill_task_list
tasks = next(self.biter)
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Build.py”, line 802, in get_build_iterator
self.post_group()
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Build.py”, line 749, in post_group
tgpost(tg)
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/Build.py”, line 741, in tgpost
f()
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/TaskGen.py”, line 239, in post
v()
File “Tools/ardupilotwaf/mavgen.py”, line 79, in process_mavgen
inputs = self.to_nodes(self.bld.srcnode.find_node(self.source))
File “/home/panda/panda/RCSA_drone/PIXHAWK/firefighter/firefighter_pixhawk_firmware/modules/waf/waflib/TaskGen.py”, line 516, in to_nodes
for x in Utils.to_list(lst):
TypeError: ‘NoneType’ object is not iterable

1 Like

Any updates in this? I am getting the same error on both Ubuntu 20 and macOS 14