CaptainScags
CaptainScags

Reputation: 113

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?

Upvotes: 5

Views: 12580

Answers (2)

I use MSYS2 MINGW64 on Windows, I solved with

pacman -S mingw-w64-x86_64-gst-rtsp-server 

Upvotes: 0

micha137
micha137

Reputation: 1285

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

Upvotes: 13

Related Questions