GStreamer missing deps and no audio

I’m using mopidy with ncmpcpp and mopidy-mpd on macOS. Though ncmpcpp connects to mopidy, there is no audio output. Running mopidy in the terminal supplies the following error:

ERROR    2022-07-23 18:08:26,241 [3125:Audio-2] pykka
  Unhandled exception in Audio (urn:uuid:8d021f9c-bc19-4353-a4e3-16ebf88148c6):
Traceback (most recent call last):
  File "/usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages/pykka/_actor.py", line 186, in _actor_loop
    self.on_start()
  File "/usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages/mopidy/audio/actor.py", line 460, in on_start
    self._setup_playbin()
  File "/usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages/mopidy/audio/actor.py", line 481, in _setup_playbin
    playbin.set_property("flags", _GST_PLAY_FLAGS_AUDIO)
AttributeError: 'NoneType' object has no attribute 'set_property'

“mopidy deps” reveals that GStreamer is missing all dependencies:

Executable: /usr/local/bin/mopidy
Platform: macOS-12.4-x86_64-i386-64bit
Python: CPython 3.9.13 from /usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9
Mopidy: 3.2.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  Pykka: 2.0.2 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  requests: 2.22.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    chardet: 3.0.4 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    idna: 2.8 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    urllib3: 1.25.7 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    certifi: 2019.11.28 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  setuptools: 62.3.2 from /usr/local/lib/python3.9/site-packages
  tornado: 6.0.3 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
Mopidy-Scrobbler: 2.0.1 from /usr/local/Cellar/mopidy-scrobbler/2.0.1/libexec/lib/python3.9/site-packages
  Mopidy: 3.2.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  Pykka: 2.0.2 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  setuptools: 62.3.2 from /usr/local/lib/python3.9/site-packages
  pylast: 3.1.0 from /usr/local/Cellar/mopidy-scrobbler/2.0.1/libexec/lib/python3.9/site-packages
Mopidy-Local: 3.2.0 from /usr/local/Cellar/mopidy-local/3.2.0/libexec/lib/python3.9/site-packages
  Mopidy: 3.2.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  Pykka: 2.0.2 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  setuptools: 62.3.2 from /usr/local/lib/python3.9/site-packages
  uritools: 3.0.0 from /usr/local/Cellar/mopidy-local/3.2.0/libexec/lib/python3.9/site-packages
Mopidy-TuneIn: 1.1.0 from /usr/local/Cellar/mopidy-tunein/1.1.0/libexec/lib/python3.9/site-packages
  Mopidy: 3.2.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  Pykka: 2.0.2 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  requests: 2.22.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    chardet: 3.0.4 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    idna: 2.8 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    urllib3: 1.25.7 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    certifi: 2019.11.28 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  setuptools: 62.3.2 from /usr/local/lib/python3.9/site-packages
Mopidy-MPD: 3.1.0 from /usr/local/Cellar/mopidy-mpd/3.1.0/libexec/lib/python3.9/site-packages
  Mopidy: 3.2.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  Pykka: 2.0.2 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  setuptools: 62.3.2 from /usr/local/lib/python3.9/site-packages
Mopidy-Spotify: 4.1.0 from /usr/local/Cellar/mopidy-spotify/4.1.0/libexec/lib/python3.9/site-packages
  Mopidy: 3.2.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  Pykka: 2.0.2 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  pyspotify: 2.1.3 from /usr/local/Cellar/pyspotify/2.1.3_2/libexec/lib/python3.9/site-packages
    cffi: 1.13.2 from /usr/local/Cellar/pyspotify/2.1.3_2/libexec/lib/python3.9/site-packages
      pycparser: 2.19 from /usr/local/Cellar/pyspotify/2.1.3_2/libexec/lib/python3.9/site-packages
    setuptools: 62.3.2 from /usr/local/lib/python3.9/site-packages
  requests: 2.22.0 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    chardet: 3.0.4 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    idna: 2.8 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    urllib3: 1.25.7 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
    certifi: 2019.11.28 from /usr/local/Cellar/mopidy/3.2.0/libexec/lib/python3.9/site-packages
  setuptools: 62.3.2 from /usr/local/lib/python3.9/site-packages
GStreamer: 1.20.3.0 from /usr/local/lib/python3.9/site-packages/gi
  Detailed information:
    Python wrapper: python-gi 3.42.2
    Relevant elements:
      Found:
        none
      Not found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        flump3dec
        id3demux
        id3v2mux
        lamemp3enc
        mad
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send

Here is my effective config:

[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = /usr/local/var/log/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
verbosity = 0
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
color = true
config_file =

[audio]
mixer = software
mixer_volume =
output = tee name=t t. ! queue ! autoaudiosink t. ! queue ! audioresample ! audioconvert ! audio/x-raw,rate=44100,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/mpd.fifo
buffer_time =

[proxy]
scheme =
hostname =
port =
username =
password =

[local]
enabled = true
max_search_results = 100
media_dir = ~/Media/Music
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = true
included_file_extensions =
excluded_file_extensions =
  .cue
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
directories =
  Albums                  local:directory?type=album
  Artists                 local:directory?type=artist
  Composers               local:directory?type=artist&role=composer
  Genres                  local:directory?type=genre
  Performers              local:directory?type=artist&role=performer
  Release Years           local:directory?type=date&format=%25Y
  Tracks                  local:directory?type=track
  Last Week's Updates     local:directory?max-age=604800
  Last Month's Updates    local:directory?max-age=2592000
timeout = 10
use_artist_sortname = false
album_art_files =
  *.jpg
  *.jpeg
  *.png

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist =
  listall
  listallinfo
default_playlist_scheme = m3u

[scrobbler]
enabled = true
username = jackddouglas
password = ********

[spotify]
enabled = true
username = jackddouglas
password = ********
client_id = d26a2850cb41446eb941039870b899b6
client_secret = ********
bitrate = 320
volume_normalization = true
private_session = false
timeout = 10
allow_cache = true
allow_network = true
allow_playlists = true
search_album_count = 20
search_artist_count = 10
search_track_count = 50
toplist_countries =

[tunein]
enabled = true
timeout = 5000
filter =

[file]
enabled = true
media_dirs =
  $XDG_MUSIC_DIR|Music
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
show_dotfiles = false
follow_symlinks = true
metadata_timeout = 1000

[http]
enabled = true
hostname = 127.0.0.1
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins =
csrf_protection = true
default_app = mopidy

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =

[softwaremixer]
enabled = true

[stream]
enabled = true
protocols =
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist =
timeout = 5000

Any help with fixing this and getting audio output would be greatly appreciated.

Thanks!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.