'module' object has no attribute 'element_make_factory'
Posted
by
Ronan Dejhero
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Ronan Dejhero
Published on 2012-10-05T16:23:16Z
Indexed on
2012/10/09
3:50 UTC
Read the original article
Hit count: 272
i have this code :
import pygst
import st, pygtk
player_name = gst.element_make_factory("playbin", "Multimedia Player")
player_name.set_property("uri", "../media/alert.mp3")
player_name.set_state(gst.PLAYING)
it keeps throwing me the following error :
player_name = gst.element_make_factory("playbin", "Multimedia Player")
AttributeError: 'module' object has no attribute 'element_make_factory'
nay way to solve this and why is this happening ?
if i print gst
i get the following :
<module 'gst' from '/usr/lib/python2.7/dist-packages/gst-0.10/gst/__init__.pyc'>
so it is a module !
© Ask Ubuntu or respective owner