当 sudo update-manager -d 时出现 PyGIWarning

当 sudo update-manager -d 时出现 PyGIWarning

是不是我的安装不完整?

$ sudo update-manager -d
sys:1: 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.
sys:1: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded.
sys:1: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
sys:1: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.

答案1

不,这些只是需要用update-manager代码修复的警告。

这些警告只是要求 Python 代码在导入库时指定版本。但它们不是错误,程序将正常运行。

相关内容