ImportError: cannot import name GstRtspServer

Giacomo Difruscolo omagico.olo at gmail.com
Sun Jun 7 23:01:26 PDT 2015


Thank very much Mark.
I have tried to add      gi.require_version('GstRtspServer', '1.0')

but I get this error:

/usr/bin/python2.7
/home/giacomo/PycharmProjects/CreateAServer_at_8554Port/create_a_server.py
Traceback (most recent call last):
  File "/home/giacomo/PycharmProjects/CreateAServer_at_8554Port/create_a_server.py",
line 49, in <module>
    gi.require_version('GstRtspServer', '1.0')
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", 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



2015-06-07 23:13 GMT+02:00 Mark Howell <mark-sub1 at hypgnosys.org>:

> 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
>>
>>  [snip]
>
> Giacomo, try adding this before your "from gi.repository import" code:
>
> gi.require_version('GstRtspServer', '1.0')
>
> Cheers,
>
> Mark.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150608/cd22362a/attachment-0001.html>


More information about the gstreamer-devel mailing list