question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gstreamer integration does not work on Home Assistant Core

See original GitHub issue

The problem

See this previous issue for more data:

When adding a gstreamer media player to the config the following error occurs: [homeassistant.components.hassio] Platform error media_player.gstreamer - No module named ‘gi’

What version of Home Assistant Core has the issue?

2022.6.0

What was the last working version of Home Assistant Core?

unknown

What type of installation are you running?

Home Assistant OS

Integration causing the issue

gstreamer

Link to integration documentation on our website

https://www.home-assistant.io/integrations/gstreamer

Diagnostics information

No response

Example YAML snippet

media_player:
  - platform: gstreamer
    pipeline: "audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapcast_gstreamer"

Anything in the logs that might be useful for us?

ERROR (MainThread) [homeassistant.components.hassio] Platform error media_player.gstreamer - No module named 'gi'

Additional information

Seems that there are some missing components needed for this integration missing from Core, which prevents the integration from working out of the box.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

1reaction
calisrocommented, Aug 21, 2022

not stale.

0reactions
elektr0nischcommented, Dec 23, 2022

I got it working by executing the following commands:

apk add gstreamer gstreamer-dev gstreamer-tools pkg-config build-base cairo-dev cairo cairo-tools gobject-introspection-dev gst-plugins-good gst-plugins-bad gst-plugins-ugly  

pip install PyGObject
pip install pgi

After executing those commands in the HA container i was able to use the Gstreamer integration without any errors. I would really appreciate if any dev would implement those dependencies into the project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GStreamer - Home Assistant
The gstreamer platform allows you to play audio via a gstreamer pipeline. Practically, this means you can play audio directly on the computer...
Read more >
TTS not working with 2022.5 - Home Assistant Community
tts does work with our setup on version 2022.4.7. I am running HomeAssistant Container. Dockerfile: FROM ghcr.io/home-assistant/raspberrypi3- ...
Read more >
Gstreamer or mopidy for audio out - Home Assistant Community
I'm working through setting up Home Assistant (HassIO) to play audio through. Reading this board there appears to be two paths, Mopidy vs ......
Read more >
Add GStreamer to Home Assistant OS - Feature Requests
Having GStreamer enabled would be extremely helpful to easily get sound in and out of instances running in virtual machines, and to integrate...
Read more >
Tts.cloud_say not working since update to HA 2022.5.0 / Error ...
Anyone having the same problem? ... Same issue here. ... media_source: to my configuration.yaml and then restarting Home Assistant. ... Confirm, don't ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found