gpt4 book ai didi

python - libnotify 错误 GLib.Error : The name org. freedesktop.Notifications 未由任何 .service 文件提供

转载 作者:太空宇宙 更新时间:2023-11-04 03:16:59 27 4
gpt4 key购买 nike

我遇到了这个错误。知道有什么问题吗?

from gi.repository import Notify
Notify.init("App Name")
Notify.Notification.new("Hi").show()

GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files

(在 Raspberry Pi 上使用最新的 Raspbian)

最佳答案

这解决了::)

sudo apt-get install libnotify-cil-dev

关于python - libnotify 错误 GLib.Error : The name org. freedesktop.Notifications 未由任何 .service 文件提供,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35889348/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com