Mopidy Fails on OSX 10.12.6 & 10.13.4

After installing the latest Sierra and High-Sierra security updates and running brew update I get

$ mopidy

ERROR: A GObject Python package was not found.

Mopidy requires GStreamer to work. GStreamer is a C library with a
number of dependencies itself, and cannot be installed with the regular
Python tools like pip.

Please see http://docs.mopidy.com/en/latest/installation/ for
instructions on how to install the required dependencies.

Traceback (most recent call last):
  File "/usr/local/bin/mopidy", line 11, in <module>
    load_entry_point('Mopidy==2.1.0', 'console_scripts', 'mopidy')()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/site-packages/mopidy/__main__.py", line 8, in <module>
    from mopidy.internal.gi import Gst  # noqa: F401
  File "/usr/local/lib/python2.7/site-packages/mopidy/internal/gi.py", line 8, in <module>
    import gi
  File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line 42, in <module>
ImportError: cannot import name _gi

I’ve completely removed homebrew and all formulas, and re-tapped and re-installed, and still get this error. suggestions?

running the latest gstreamer and gst plugins

$ brew info gstreamer
gstreamer: stable 1.14.0 (bottled), HEAD
Development framework for multimedia applications
https://gstreamer.freedesktop.org/
/usr/local/Cellar/gstreamer/1.14.0_1 (415 files, 21.5MB) *
  Poured from bottle on 2018-04-01 at 17:50:07
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gstreamer.rb
==> Dependencies
Build: gobject-introspection ✔, pkg-config ✔
Required: gettext ✔, glib ✔, bison ✔
==> Options
--HEAD
	Install HEAD version
==> Caveats
Consider also installing gst-plugins-base and gst-plugins-good.

The gst-plugins-* packages contain gstreamer-video-1.0, gstreamer-audio-1.0,
and other components needed by most gstreamer applications.

found the culprit

needed to

brew reinstall gst-python --without-python --with-python@2
1 Like