'Import the necessary GObject-related modules and assign `Gst`
and `GObject` fields on this object.'

def _import_gst(self):

    try:
        import gi
    except ImportError:
        raise FatalReplayGainError(u'Failed    to    load    GStreamer:    python-gi    not    found')
    try:
        gi.require_version('Gst', '1.0')
    except ValueError as e:
        raise FatalReplayGainError(u'Failed    to    load    GStreamer    1.0:    {0}'.format(e))
    from gi.repository import GObject, Gst, GLib
    with warnings.catch_warnings():
        warnings.simplefilter('ignore')
        GObject.threads_init()
    Gst.init([sys.argv[0]])
    self.GObject = GObject
    self.GLib = GLib
    self.Gst = Gst
