我想测试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是setup.py必须在其中的回购文件夹)每个代码修复,我可以这样做:
pip install --upgrade -e unstable还不错!
发布于 2018-09-29 14:24:50
我可以建议安装Kazam 从存储库 (自14.04以来,LTS版本为1.4.4),通过以下命令安装所有依赖项:
sudo add-apt-repository universe
sudo apt-get install kazam然后测试一下。
如果功能还不够,请尝试使用基于源代码的版本。它将在安装所有依赖项时正常启动。
https://askubuntu.com/questions/1079507
复制相似问题