ImportError: cannot import name GstRtspServer

Mark Howell mark-sub1 at
Sun Jun 7 14:13:03 PDT 2015

On 06/07/2015 10:45 AM, Giacomo Difruscolo wrote:
> Sorry for my bad english!
> I'm new to Gstreamer and Python. I'm trying to compile a simple python
> file like this and I get this error: ImportError: cannot import name
> GstRtspServer
> Can someone help me?
> Thanks a lot
> importsys
> importgi
> gi.require_version('Gst','1.0')
> from gi.repositoryimportGst, GObject, GstRtspServer

Giacomo, try adding this before your "from gi.repository import" code:

gi.require_version('GstRtspServer', '1.0')



More information about the gstreamer-devel mailing list