ImportError: cannot import name GstRtspServer

Mark Howell mark-sub1 at
Sun Jun 7 23:38:33 PDT 2015

On 06/07/2015 11:01 PM, Giacomo Difruscolo wrote:
> Thank very much Mark.
> I have tried to addgi.require_version('GstRtspServer', '1.0')
> but I get this error:
> /usr/bin/python2.7 /home/giacomo/PycharmProjects/CreateAServer_at_8554Port/
> Traceback (most recent call last):
>    File "/home/giacomo/PycharmProjects/CreateAServer_at_8554Port/", line 49, in <module>
>      gi.require_version('GstRtspServer', '1.0')
>    File "/usr/lib/python2.7/dist-packages/gi/", line 79, in require_version
>      raise ValueError('Namespace %s not available' % namespace)
> ValueError: Namespace GstRtspServer not available
> Process finished with exit code 1
> Thanks in advance for your help!
> Giacomo
> [snip]

Hmmm, are you sure you have GstRtspServer built with introspection, and 
installed? For example, on my systems running Ubuntu 14.04 (Trusty), 
GstRtspServer is not part of the standard GStreamer 1.x packages 
available via apt-get (which are all presently at version 1.2.4). You 
might need to download and build the gst-rtsp-server package from source 
(, or you might 
prefer to build a complete GStreamer 1.x environment with cerbero (which 
is what I work with most of the time).



More information about the gstreamer-devel mailing list