Error Running ./waf copter - TypeError: 'NoneType' object is not iterable on macOS Sonoma and Ubuntu 20.04 LTS

Hi, I am trying to build ArduCopter on macOS Sonoma and Ubuntu 20.04.

Steps Taken:

  1. Cloned the ArduPilot repository.
  2. Updated submodules with git submodule update --init --recursive.
  3. Ran ./waf clean and ./waf distclean.
  4. Configured using ./waf configure --board sitl.
  5. Attempted to build with ./waf copter.

Error:

File "/path/to/ardupilot/modules/waf/waflib/Build.py", line 741, in tgpost
    f()
File "/path/to/ardupilot/modules/waf/waflib/TaskGen.py", line 239, in post
    v()
File "/path/to/ardupilot/Tools/ardupilotwaf/mavgen.py", line 79, in process_mavgen
    inputs = self.to_nodes(self.bld.srcnode.find_node(self.source))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/ardupilot/modules/waf/waflib/TaskGen.py", line 516, in to_nodes
    for x in Utils.to_list(lst):
             ^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

System Information (macOS):

  • macOS Sonoma 14.6.1
  • Python 3.12.6
  • All dependencies installed

./waf configure --board sitl output:

System Information (Ubuntu):

  • Ubuntu 20.04
  • Python 3.8.10
  • All dependencies installed

./waf configure --board sitl output:

I need help resolving this issue.

Thank you.

I re-cloned the Ardupilot repository and updated submodules and it works now!
It could have been an issue with my submodules.