ReplayGain broke after updating Homebrew packages on macOS

Hi.

For years, I had ReplayGain working with GStreamer as a backend but after updating my Homebrew packages I’m getting this error:

$ beet
Traceback (most recent call last):
  File "/usr/local/bin/beet", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/beets/ui/__init__.py", line 1266, in main
    _raw_main(args)
  File "/usr/local/lib/python3.7/site-packages/beets/ui/__init__.py", line 1249, in _raw_main
    subcommands, plugins, lib = _setup(options, lib)
  File "/usr/local/lib/python3.7/site-packages/beets/ui/__init__.py", line 1135, in _setup
    plugins = _load_plugins(config)
  File "/usr/local/lib/python3.7/site-packages/beets/ui/__init__.py", line 1121, in _load_plugins
    plugins.send("pluginload")
  File "/usr/local/lib/python3.7/site-packages/beets/plugins.py", line 488, in send
    for handler in event_handlers()[event]:
  File "/usr/local/lib/python3.7/site-packages/beets/plugins.py", line 471, in event_handlers
    for plugin in find_plugins():
  File "/usr/local/lib/python3.7/site-packages/beets/plugins.py", line 307, in find_plugins
    _instances[cls] = cls()
  File "/usr/local/lib/python3.7/site-packages/beetsplug/replaygain.py", line 868, in __init__
    self.config, self._log
  File "/usr/local/lib/python3.7/site-packages/beetsplug/replaygain.py", line 417, in __init__
    self._import_gst()
  File "/usr/local/lib/python3.7/site-packages/beetsplug/replaygain.py", line 484, in _import_gst
    gi.require_version('Gst', '1.0')
AttributeError: module 'gi' has no attribute 'require_version'

How can I fix this?

My system:
macOS 10.14.6 • beets 1.4.9 • Python 3.7.7

yup, I’m in the same situation :confused:

Glad I’m not alone. :slight_smile:

For the time being I’ve disabled ReplayGain. I tried switching the backend to audiotools but that doesn’t exist as a pip package nor would it compile under macOS.

By the way, what is your experience with ReplayGain? Does it serve any practical purpose? One thing I dislike about it is that it slows down imports considerably.

I love ReplayGain, it’s a great way to browse music without massive changes in volume level between releases. Unfortunately, the only thing I’ve found that supports it on MacOS is foobar2000, which is currently extremely basic compared to the Windows version.

Issue fixed after latest update of Homebrew packages (gstreamer 1.16.2).