我最近将 Ubuntu 16.04 从 HDD 移到了 SSD。
// 最新更新:卸载、重启、重新安装软件。问题仍然存在。//
从那时起,“慢慢播放”就不起作用了,出现一个对话框:
An error has occured:
GLib.Error('no element "gconfaudiosink"', 'gst_parse_error', 1)
You should save your work and restart the application. If the error occurs again please report it to the developer.
对话框详细信息:
Error
Python 3.5.2: /usr/bin/python3
Fri Apr 14 23:47:25 2017
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/python3.5/runpy.py in _run_module_as_main(mod_name='playitslowly.app', alter_argv=1)
182 sys.argv[0] = mod_spec.origin
183 return _run_code(code, main_globals, None,
184 "__main__", mod_spec)
185
186 def run_module(mod_name, init_globals=None,
mod_spec = ModuleSpec(name='playitslowly.app', loader=<_fro...r/lib/python3/dist-packages/playitslowly/app.py')
/usr/lib/python3.5/runpy.py in _run_code(code=<code object <module> at 0xb7140430, file "/usr/...hon3/dist-packages/playitslowly/app.py", line 21>, run_globals={'CONFIG_PATH': '/home/guest/.config/playitslowly.json', 'Config': <class '__main__.Config'>, 'GObject': <GObjectProxyModule <IntrospectionModule 'GObjec...linux-gnu/girepository-1.0/GObject-2.0.typelib'>>, 'Gdk': <GdkProxyModule <IntrospectionModule 'Gdk' from ...386-linux-gnu/girepository-1.0/Gdk-3.0.typelib'>>, 'Gio': <GioProxyModule <IntrospectionModule 'Gio' from ...386-linux-gnu/girepository-1.0/Gio-2.0.typelib'>>, 'Gst': <GstProxyModule <IntrospectionModule 'Gst' from '/usr/lib/girepository-1.0/Gst-1.0.typelib'>>, 'Gtk': <GtkProxyModule <IntrospectionModule 'Gtk' from ...386-linux-gnu/girepository-1.0/Gtk-3.0.typelib'>>, 'MainWindow': <class '__main__.MainWindow'>, 'NAME': 'Play it Slowly', 'Pipeline': <class 'playitslowly.pipeline.Pipeline'>, ...}, init_globals=None, mod_name='__main__', mod_spec=ModuleSpec(name='playitslowly.app', loader=<_fro...r/lib/python3/dist-packages/playitslowly/app.py'), pkg_name='playitslowly', script_name=None)
83 __package__ = pkg_name,
84 __spec__ = mod_spec)
85 exec(code, run_globals)
86 return run_globals
87
builtinexec = <built-in function exec>
code = <code object <module> at 0xb7140430, file "/usr/...hon3/dist-packages/playitslowly/app.py", line 21>
run_globals = {'CONFIG_PATH': '/home/guest/.config/playitslowly.json', 'Config': <class '__main__.Config'>, 'GObject': <GObjectProxyModule <IntrospectionModule 'GObjec...linux-gnu/girepository-1.0/GObject-2.0.typelib'>>, 'Gdk': <GdkProxyModule <IntrospectionModule 'Gdk' from ...386-linux-gnu/girepository-1.0/Gdk-3.0.typelib'>>, 'Gio': <GioProxyModule <IntrospectionModule 'Gio' from ...386-linux-gnu/girepository-1.0/Gio-2.0.typelib'>>, 'Gst': <GstProxyModule <IntrospectionModule 'Gst' from '/usr/lib/girepository-1.0/Gst-1.0.typelib'>>, 'Gtk': <GtkProxyModule <IntrospectionModule 'Gtk' from ...386-linux-gnu/girepository-1.0/Gtk-3.0.typelib'>>, 'MainWindow': <class '__main__.MainWindow'>, 'NAME': 'Play it Slowly', 'Pipeline': <class 'playitslowly.pipeline.Pipeline'>, ...}
/usr/lib/python3/dist-packages/playitslowly/app.py in <module>()
529 win.show_all()
530 Gtk.main()
531
532 if __name__ == "__main__":
533 main()
main = <function main>
/usr/lib/python3/dist-packages/playitslowly/app.py in main()
520 )
521
522 win = MainWindow(sink, config)
523
524 if arguments:
win undefined
global MainWindow = <class '__main__.MainWindow'>
sink = 'gconfaudiosink'
config = {}
/usr/lib/python3/dist-packages/playitslowly/app.py in __init__(self=<__main__.MainWindow object at 0xb3674e64 (__main__+MainWindow at 0x8f1f1e8)>, sink='gconfaudiosink', config={})
106 self.add_accel_group(self.accel_group)
107
108 self.pipeline = Pipeline(sink)
109
110 self.filedialog = myGtk.FileChooserDialog(None, self, Gtk.FileChooserAction.OPEN)
self = <__main__.MainWindow object at 0xb3674e64 (__main__+MainWindow at 0x8f1f1e8)>
self.pipeline undefined
global Pipeline = <class 'playitslowly.pipeline.Pipeline'>
sink = 'gconfaudiosink'
/usr/lib/python3/dist-packages/playitslowly/pipeline.py in __init__(self=<pipeline.Pipeline object at 0xb367c7d4 (playitslowly+pipeline+Pipeline at 0x91be080)>, sink='gconfaudiosink')
51 bin.add(self.speedchanger)
52
53 self.audiosink = Gst.parse_launch(sink)
54 #self.audiosink = Gst.ElementFactory.make(sink, "sink")
55
self = <pipeline.Pipeline object at 0xb367c7d4 (playitslowly+pipeline+Pipeline at 0x91be080)>
self.audiosink undefined
global Gst = <GstProxyModule <IntrospectionModule 'Gst' from '/usr/lib/girepository-1.0/Gst-1.0.typelib'>>
Gst.parse_launch = gi.FunctionInfo(parse_launch)
sink = 'gconfaudiosink'
Error: gst_parse_error: no element "gconfaudiosink" (1)
__cause__ = None
__class__ = <class 'GLib.GError'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of Error object>
__dict__ = {'code': 1, 'domain': 'gst_parse_error', 'message': 'no element "gconfaudiosink"'}
__dir__ = <built-in method __dir__ of Error object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of Error object>
__format__ = <built-in method __format__ of Error object>
__ge__ = <method-wrapper '__ge__' of Error object>
__getattribute__ = <method-wrapper '__getattribute__' of Error object>
__gt__ = <method-wrapper '__gt__' of Error object>
__gtype__ = <GType GError (148212368)>
__hash__ = <method-wrapper '__hash__' of Error object>
__init__ = <bound method GError.__init__ of GLib.Error('no element "gconfaudiosink"', 'gst_parse_error', 1)>
__le__ = <method-wrapper '__le__' of Error object>
__lt__ = <method-wrapper '__lt__' of Error object>
__module__ = 'GLib'
__ne__ = <method-wrapper '__ne__' of Error object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of Error object>
__reduce_ex__ = <built-in method __reduce_ex__ of Error object>
__repr__ = <bound method GError.__repr__ of GLib.Error('no element "gconfaudiosink"', 'gst_parse_error', 1)>
__setattr__ = <method-wrapper '__setattr__' of Error object>
__setstate__ = <built-in method __setstate__ of Error object>
__sizeof__ = <built-in method __sizeof__ of Error object>
__str__ = <bound method GError.__str__ of GLib.Error('no element "gconfaudiosink"', 'gst_parse_error', 1)>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ('no element "gconfaudiosink"',)
code = 1
copy = <bound method GError.copy of GLib.Error('no element "gconfaudiosink"', 'gst_parse_error', 1)>
domain = 'gst_parse_error'
matches = <bound method gerror_matches of GLib.Error('no element "gconfaudiosink"', 'gst_parse_error', 1)>
message = 'no element "gconfaudiosink"'
new_literal = <function gerror_new_literal>
with_traceback = <built-in method with_traceback of Error object>
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3/dist-packages/playitslowly/app.py", line 533, in <module>
main()
File "/usr/lib/python3/dist-packages/playitslowly/app.py", line 522, in main
win = MainWindow(sink, config)
File "/usr/lib/python3/dist-packages/playitslowly/app.py", line 108, in __init__
self.pipeline = Pipeline(sink)
File "/usr/lib/python3/dist-packages/playitslowly/pipeline.py", line 53, in __init__
self.audiosink = Gst.parse_launch(sink)
GLib.GError: gst_parse_error: no element "gconfaudiosink" (1)
从终端启动时:
/usr/lib/python3/dist-packages/playitslowly/app.py:36: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GObject, Gst, Gio, Gdk
<class 'GLib.GError'>
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
在对话框中单击“关闭”后,终端继续:
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3/dist-packages/playitslowly/app.py", line 533, in <module>
main()
File "/usr/lib/python3/dist-packages/playitslowly/app.py", line 522, in main
win = MainWindow(sink, config)
File "/usr/lib/python3/dist-packages/playitslowly/app.py", line 108, in __init__
self.pipeline = Pipeline(sink)
File "/usr/lib/python3/dist-packages/playitslowly/pipeline.py", line 53, in __init__
self.audiosink = Gst.parse_launch(sink)
GLib.Error: gst_parse_error: no element "gconfaudiosink" (1)
我安装并重新安装了 gstreamer0.10-plugins-good(包含 gstgconfaudiosink)和 gstreamer1.0-plugins-good:
sudo apt install gstreamer0.10-plugins-good
sudo apt install --reinstall gstreamer0.10-plugins-good
sudo apt install --reinstall gstreamer1.0-plugins-good
运行软件时我仍然收到错误消息。(也执行了“sudo apt autoremove”并重新启动)。有什么提示吗?
答案1
Gconfaudiosink 是一个 gstreamer 插件。它是一个音频接收器,用于嵌入用于音频输出的 GConf 设置,也许您错过了它。它位于 gst-plugins 包中,请尝试安装该包。