Beets on Ubuntu 14.04 Server - Failed to load GStreamer; check that python-gi is installed

300 views
Skip to first unread message

Andy Sayler

unread,
Oct 8, 2014, 12:08:33 PM10/8/14
to beets...@googlegroups.com
Hi All,

I have the latest version of beets (installed via pip) working fine on a couple of Ubuntu 14.04 Desktop machines. Now I'm trying to get it setup on my backend server running Ubuntu 14.04 Server.

I've installed beets via pip as well as the necessary pip and apt packages for the plugins I'm using (chroma discogs lyrics lastgenre fetchart embedart replaygain scrub importadded inline info missing duplicates copyartifacts). When I go to run beet, however, I get the following error:

$ beet
error: An error occurred in backend initialization: Failed to load GStreamer; check that python-gi is installed


I have gstreamer-1.0 (with good, bad, and ugly plugins) installed, as well as python-gi, python-gst-1.0. ffmpeg is also installed via https://launchpad.net/~jon-severinsson/+archive/ubuntu/ffmpeg.

What am I missing on the Ubuntu server install that seems to be included by default on the desktop install? Could the issue be the lack of an audio device on the server?

Thoughts?

Thanks,
Andy

Adrian Sampson

unread,
Oct 8, 2014, 1:36:08 PM10/8/14
to beets...@googlegroups.com
FWIW, this is being emitted by the ReplayGain plugin in case that wasn’t apparent. (I don’t know why this error message is so uninformative; it should really have made that clearer.) So as a last resort, you can disable that plugin for now.

It is indeed mysterious that this would happen if you have python-gi and streamer-1.0 installed—I can’t think of anything else that’s missing. And, unfortunately, we don’t appear to log any details about what exactly went wrong when trying to load GStreamer (see the `_import_gst` method in replaygain.py).

I’ll look into adding more descriptive error messages/logging, but maybe others have more Ubuntu-specific insight?

Adrian


--
You received this message because you are subscribed to the Google Groups "beets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beets-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bootstrap

unread,
Oct 9, 2014, 3:07:52 PM10/9/14
to beets...@googlegroups.com
I recall having similar problems but not what the cause was.  I installed python rgain and in the process of doing that helped me resolve it.

Adrian Sampson

unread,
Oct 9, 2014, 3:30:47 PM10/9/14
to beets...@googlegroups.com
This commit should help with the error-message situation:

Andy Sayler

unread,
Oct 9, 2014, 6:54:14 PM10/9/14
to beets...@googlegroups.com
I went ahead and used apt to install python-rgain. That pulled in gir1.2-gstreamer-1.0. Now beets seems to be working! So that must have been the missing piece.

That said, better error logging will be good as well.

Thanks!

On Thu, Oct 9, 2014 at 1:30 PM, Adrian Sampson <adrian....@gmail.com> wrote:
This commit should help with the error-message situation:

--
Reply all
Reply to author
Forward
0 new messages