Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: cannot import name GstRtspServer, introspection typelib not found

Im trying to get a simple GstRtspServer program working on an external amazon linux EC2 server at the moment, but I am having serious issues getting it to actually run. No matter what I do I keep getting this same error when I try to run it, even if the program is reduced only to

import gi
gi.require_version('Gst','1.0')
from gi.repository import GLib, Gst, GstRtspServer

I have pygobject installed, I have gstreamer installed, I have gobject-introspection installed, and any google results have been wildly non helpful. Does anyone know what I might be missing?

like image 942
CaptainScags Avatar asked Mar 05 '23 07:03

CaptainScags


1 Answers

Specifically, on Ubuntu 16.04 one would have to install the package gir1.2-gst-rtsp-server-1.0, which contains the introspection typelib.

sudo apt install gir1.2-gst-rtsp-server-1.0
like image 167
micha137 Avatar answered Apr 27 '23 05:04

micha137