gobject pygobject.rb error when updating homebrew

Error: An exception occurred within a child process:FormulaUnavailableError: No available formula with the name “/home/linuxbrew/.linuxbrew/opt/pygobject/.brew/pygobject.rb”

Nope i have no idea how to fix it. I’m just posting because this error has not been posted anywhere else on the internet and i don’t see how it would be specific to me!

The trigger:

$ brew upgrade ddev

But it updated a hundred things before that (i’m not a frequent brew user, but apparently my Python3 is installed with it, among other things?) so i don’t think this is DDEV-specific.

Anyhow DDEV is upgraded and Python 3 is too and is still working, so i’m going to ignore the error.

Here’s the output starting a ways before and including the error, in case there are more dedicated sleuths than me out there!

==> Downloading https://linuxbrew.bintray.com/bottles/python-3.7.8.x86_64_linux.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/97/97896caf1cf85019c92910c6d2150158f923c597003
######################################################################## 100.0%
==> Pouring python-3.7.8.x86_64_linux.bottle.tar.gz
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.8/bin/python3 -s setup.py --no-user-cfg insta
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.8/bin/python3 -s setup.py --no-user-cfg insta
==> /home/linuxbrew/.linuxbrew/Cellar/python/3.7.8/bin/python3 -s setup.py --no-user-cfg insta
==> Caveats
Python has been installed as
  /home/linuxbrew/.linuxbrew/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /home/linuxbrew/.linuxbrew/opt/python/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /home/linuxbrew/.linuxbrew/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/python/3.7.8: 3,655 files, 67.2MB
Removing: /home/linuxbrew/.linuxbrew/Cellar/python/3.7.3... (3,628 files, 67.3MB)
Removing: /home/linuxbrew/.linuxbrew/Cellar/python/3.7.4_2... (3,766 files, 68.6MB)
==> Checking for dependents of upgraded formulae...
==> Reinstalling 1 broken dependent from source:
pygobject
==> Downloading https://linuxbrew.bintray.com/bottles/pkg-config-0.29.2_4.x86_64_linux.bottle.
==> Downloading from https://akamai.bintray.com/bc/bc8ac04f3d8e42a748f40544f8e1b7f2471f32608f3
######################################################################## 100.0%
==> Downloading https://download.gnome.org/sources/pygobject/2.28/pygobject-2.28.7.tar.xz
==> Downloading from https://mirror.umd.edu/gnome/sources/pygobject/2.28/pygobject-2.28.7.tar.
######################################################################## 100.0%
==> Reinstalling pygobject
==> Installing dependencies for pygobject: pkg-config
==> Installing pygobject dependency: pkg-config
==> Pouring pkg-config-0.29.2_4.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/pkg-config/0.29.2_4: 11 files, 744.2KB
==> Installing pygobject
Error: An exception occurred within a child process:
  FormulaUnavailableError: No available formula with the name "/home/linuxbrew/.linuxbrew/opt/pygobject/.brew/pygobject.rb"