Problem with bpd on MacOs


#1

I did a fresh install of beets, installed gstreamer and pygobject3, and added bpd to the plugins in the config.yaml. But I get the following when running ‘beet bpd’:

error: Could not create playbin

Mac OS X Yosemite 10.10.5
beets version 1.4.3
Python version 2.7.13
plugins: bpd

Looks like I’ve got version 1.10.4 of gstreamer, and 3.24.1 of pygobject3.

brew install gstreamer
==> Installing dependencies for gstreamer: glib, freetype, sqlite, gobject-introspection, bison
==> Installing gstreamer dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.52.2.yosemite.bottle.tar.gz
####################################################################### 100.0%
==> Pouring glib-2.52.2.yosemite.bottle.tar.gz
==> Using the sandbox
🍺  /usr/local/Cellar/glib/2.52.2: 430 files, 22.6MB
==> Installing gstreamer dependency: freetype
==> Downloading https://homebrew.bintray.com/bottles/freetype-2.8.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring freetype-2.8.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/freetype/2.8: 63 files, 2.6MB
==> Installing gstreamer dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.19.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.19.1.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/sqlite/lib
    CPPFLAGS: -I/usr/local/opt/sqlite/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/sqlite/lib/pkgconfig
==> Summary
🍺  /usr/local/Cellar/sqlite/3.19.1: 12 files, 3MB
==> Installing gstreamer dependency: gobject-introspection
==> Downloading https://homebrew.bintray.com/bottles/gobject-introspection-1.52.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gobject-introspection-1.52.1.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/gobject-introspection/1.52.1: 172 files, 9.7MB
==> Installing gstreamer dependency: bison
==> Downloading https://homebrew.bintray.com/bottles/bison-3.0.4.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring bison-3.0.4.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because some formulae require a newer version of bison.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/bison/lib

==> Summary
🍺  /usr/local/Cellar/bison/3.0.4: 51 files, 2.1MB
==> Installing gstreamer 
==> Downloading https://homebrew.bintray.com/bottles/gstreamer-1.10.4.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gstreamer-1.10.4.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/gstreamer/1.10.4: 385 files, 20.4MB

brew install pygobject3
==> Downloading https://homebrew.bintray.com/bottles/pygobject3-3.24.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pygobject3-3.24.1.yosemite.bottle.tar.gz
==> Using the sandbox
🍺  /usr/local/Cellar/pygobject3/3.24.1: 37 files, 1.9MB

The error is encountered in beets/beetsplug/bpd/gstplayer.py

    # Set up the Gstreamer player. From the pygst tutorial:
    # http://pygstdocs.berlios.de/pygst-tutorial/playbin.html
    ####
    # Updated to GStreamer 1.0 with:
    # https://wiki.ubuntu.com/Novacut/GStreamer1.0
    self.player = Gst.ElementFactory.make("playbin", "player")

    if self.player is None:
        raise ui.UserError("Could not create playbin")

But I’m afraid I don’t know anything about this component.

Any help is appreciated.


#2

Errors like this usually mean that you’re missing the gstreamer plugins (core, good, bad, and ugly).