我尝试记录与我的打字相关的错误,但无法让 Kazam 以 root 和非 root 身份工作,请参阅以下内容;我apt-get install kazam ffmpeg
成功安装了它,但由于错误/警告而安装不正确
root@masi:/home/masi# kazam
Traceback (most recent call last):
File "/usr/bin/kazam", line 127, in <module>
bus = dbus.SessionBus()
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 211, in __new__
mainloop=mainloop)
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 100, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 122, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
root@masi:/home/masi# exit
exit
masi@masi:~$ kazam
/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))
(kazam:5260): Gtk-WARNING **: Symbolic icon kazam-screencast-symbolic of size 24 is in an icon theme directory of size 16
(kazam:5260): Gtk-WARNING **: Symbolic icon kazam-screenshot-symbolic of size 24 is in an icon theme directory of size 16
(kazam:5260): Gtk-WARNING **: Can't set a parent on widget which has a parent
(kazam:5260): Gtk-WARNING **: Symbolic icon kazam-fullscreen-symbolic of size 24 is in an icon theme directory of size 16
(kazam:5260): Gtk-WARNING **: Symbolic icon kazam-all-screens-symbolic of size 24 is in an icon theme directory of size 16
(kazam:5260): Gtk-WARNING **: Symbolic icon kazam-window-symbolic of size 24 is in an icon theme directory of size 16
(kazam:5260): Gtk-WARNING **: Symbolic icon kazam-area-symbolic of size 24 is in an icon theme directory of size 16
(kazam:5260): Gtk-WARNING **: Can't set a parent on widget which has a parent
我以 root 身份执行了此操作apt-get update
,然后apt-get upgrade
再次进行迭代,但问题仍然存在。
调试
我跑kazam --debug
并得到
masi@masi:~$ kazam --debug
DEBUG Kazam - Starting ...
DEBUG Kazam - Running on: debian 8.5
DEBUG Kazam - Kazam version: 1.4.5 NCC-80102
DEBUG Kazam - Starting new instance ...
DEBUG Prefs - XDG_PICTURES is a directory and accessible
DEBUG Prefs-HW - Getting hardware specs
DEBUG Prefs-HW - Getting Video sources.
DEBUG Prefs-HW - Found 1 monitor(s).
DEBUG Prefs-HW - Monitor 0 - X: 0, Y: 0, W: 1920, H: 1080
DEBUG Main - Gstreamer version detected: 1.4.4.0
DEBUG Main - Setting variables.
DEBUG PulseAudio - Starting mainloop.
DEBUG PulseAudio - Getting API.
DEBUG PulseAudio - Setting context.
DEBUG PulseAudio - Set state callback.
DEBUG PulseAudio - Connecting to server.
DEBUG PulseAudio - Start mainloop.
DEBUG PulseAudio - State connected.
DEBUG Main - Connecting indicator signals.
DEBUG Main - Starting in silent mode: False
DEBUG Indicator - Indicatior silent: False
DEBUG Indicator - Trying to bind hotkeys.
DEBUG Main - Main Window UI setup.
/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))
DEBUG Main - Unable to get name for '<Adjustment object at 0x7f60d8067b88 (GtkAdjustment at 0x1916890)>'
(kazam:3222): Gtk-WARNING **: Symbolic icon kazam-screencast-symbolic of size 24 is in an icon theme directory of size 16
(kazam:3222): Gtk-WARNING **: Symbolic icon kazam-screenshot-symbolic of size 24 is in an icon theme directory of size 16
(kazam:3222): Gtk-WARNING **: Can't set a parent on widget which has a parent
(kazam:3222): Gtk-WARNING **: Symbolic icon kazam-fullscreen-symbolic of size 24 is in an icon theme directory of size 16
(kazam:3222): Gtk-WARNING **: Symbolic icon kazam-all-screens-symbolic of size 24 is in an icon theme directory of size 16
(kazam:3222): Gtk-WARNING **: Symbolic icon kazam-window-symbolic of size 24 is in an icon theme directory of size 16
(kazam:3222): Gtk-WARNING **: Symbolic icon kazam-area-symbolic of size 24 is in an icon theme directory of size 16
(kazam:3222): Gtk-WARNING **: Can't set a parent on widget which has a parent
DEBUG Prefs - Getting Audio sources.
DEBUG PulseAudio - get_audio_sources() called.
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 0
DEBUG PulseAudio - Name: b'alsa_output.pci-0000_00_1f.3.analog-stereo.monitor'
DEBUG PulseAudio - Desc: b'Monitor of Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 1
DEBUG PulseAudio - Name: b'alsa_input.pci-0000_00_1f.3.analog-stereo'
DEBUG PulseAudio - Desc: b'Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb() -- finished
DEBUG Prefs - Device found:
DEBUG Prefs - - 0
DEBUG Prefs - - alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
DEBUG Prefs - - Monitor of Built-in Audio Analog Stereo
DEBUG Prefs - Device found:
DEBUG Prefs - - 1
DEBUG Prefs - - alsa_input.pci-0000_00_1f.3.analog-stereo
DEBUG Prefs - - Built-in Audio Analog Stereo
DEBUG Main - Capture cursor: True.
DEBUG Main - Capture cursor_pic: True.
DEBUG Main - Capture borders_pic: True.
测试 GAD3R 的提案
我apt-get build-dep kazam
成功运行,然后再次运行kazam
,但仍然收到类似的警告/错误
/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))
(kazam:15470): Gtk-WARNING **: Symbolic icon kazam-screencast-symbolic of size 24 is in an icon theme directory of size 16
(kazam:15470): Gtk-WARNING **: Symbolic icon kazam-screenshot-symbolic of size 24 is in an icon theme directory of size 16
(kazam:15470): Gtk-WARNING **: Can't set a parent on widget which has a parent
(kazam:15470): Gtk-WARNING **: Symbolic icon kazam-fullscreen-symbolic of size 24 is in an icon theme directory of size 16
(kazam:15470): Gtk-WARNING **: Symbolic icon kazam-all-screens-symbolic of size 24 is in an icon theme directory of size 16
(kazam:15470): Gtk-WARNING **: Symbolic icon kazam-window-symbolic of size 24 is in an icon theme directory of size 16
(kazam:15470): Gtk-WARNING **: Symbolic icon kazam-area-symbolic of size 24 is in an icon theme directory of size 16
(kazam:15470): Gtk-WARNING **: Can't set a parent on widget which has a parent
python --version
我认为这可能是 Kazam 想要 python3 但我有 python 2.7.9 (给出)的问题Python 2.7.9
,因此可能缺少依赖项。如何进行?
硬件:Asus Zenbook UX303UA
操作系统:Debian 8.5
Linux 内核:4.6(向后移植之一)
图形:modesetting
以及non-free
skylake CPU 支持包
Kazam 支持案例:https://answers.launchpad.net/kazam/+question/378875
答案1
维护者联系了但没有解决方案和/或答复。