使用“python app.py”启动 Kazam?

使用“python app.py”启动 Kazam?

我想测试kazam(屏幕录制程序),所以我尝试从源代码启动它。

kazam目录中,我已经完成:

python app.py` 

但除了一些警告外gtk,什么也没有发生。可能吗?

app.py:24: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
app.py:33: 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, Gdk, GObject
/home/campagne/Documents/unstable/kazam/backend/webcam.py:24: PyGIWarning: GUdev was imported without specifying a version first. Use gi.require_version('GUdev', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, GUdev
/home/campagne/Documents/unstable/kazam/backend/gstreamer.py:35: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gst, GstVideo
/home/campagne/Documents/unstable/kazam/backend/gstreamer.py:35: PyGIWarning: GstVideo was imported without specifying a version first. Use gi.require_version('GstVideo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gst, GstVideo
/home/campagne/Documents/unstable/kazam/frontend/window_area.py:29: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, Gdk, Wnck, GdkX11
/home/campagne/Documents/unstable/kazam/frontend/window_countdown.py:29: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, GLib, Gdk, Pango, PangoCairo

编辑:虽然不是一个完整的解决方案,但至少它不会干扰我的安装。

我正在使用pip。在虚拟环境中,我可以执行以下操作:

pip install -e unstable

它会安装它。(unstable是必须在里面的 repo 文件夹setup.py)每次修复代码,我都可以这样做:

pip install --upgrade -e unstable

不错!

答案1

我建议安装 Kazam来自存储库(自 14.04 LTS 起可用,版本 1.4.4)以及所有依赖项,命令如下:

sudo add-apt-repository universe
sudo apt-get install kazam

然后测试它。

如果其功能不够,请尝试使用基于源的版本。它将正常启动,因为所有依赖项都已安装。

相关内容