"brew install genromfs" faild

I really don’t know if it is the right place to ask this questions. But when I tried to setup build environment on my bacbook following the instruction"Setting up the Build Environment (MacOSX)", I met a problem.

The output of brew is

Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
ocrmypdf

==> Installing genromfs from ardupilot/px4
==> Downloading http://px4-travis.s3.amazonaws.com/toolchain/genromfs-0.5.2.tar.
Already downloaded: /Users/pangyiren/Library/Caches/Homebrew/genromfs-0.5.2.tar.gz
Error: uninitialized constant #<Class:0x007f8fa482aec0>::DATA
Did you mean?  Data
               Date
Please report this bug:
  https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/genromfs.rb:15:in `patches'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1904:in `prepare_patches'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1094:in `block in brew'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1895:in `block (2 levels) in stage'
/usr/local/Homebrew/Library/Homebrew/utils.rb:556:in `with_env'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1894:in `block in stage'
/usr/local/Homebrew/Library/Homebrew/resource.rb:119:in `block in unpack'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:13:in `block in mktemp'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:73:in `block in run'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:73:in `chdir'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:73:in `run'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:12:in `mktemp'
/usr/local/Homebrew/Library/Homebrew/resource.rb:114:in `unpack'
/usr/local/Homebrew/Library/Homebrew/resource.rb:92:in `stage'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1872:in `stage'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1092:in `brew'
/usr/local/Homebrew/Library/Homebrew/build.rb:111:in `block in install'
/usr/local/Homebrew/Library/Homebrew/utils.rb:556:in `with_env'
/usr/local/Homebrew/Library/Homebrew/build.rb:108:in `install'
/usr/local/Homebrew/Library/Homebrew/build.rb:189:in `<main>'

I have opened an issue on github https://github.com/Homebrew/homebrew-core/issues/26406#event-1565947709

anybody can help me???

I redid the process documented here

without any issues.

edit: there’s a small warning about matplotlib versions but this is because the video shows using the default python from MacOS, but the warning is not relevant for the code building.

There’s a PR from Sid https://github.com/ArduPilot/homebrew-px4/pull/1