大家好,我正在運行 Ubuntu 13.04,一切正常,除了當我嘗試gnome-shell-google-calendar
根據這指導。
它有效,只是我的線上帳戶無法識別(儘管已設定)。
Please choose the Account: None
You have entered an invalid account number. Please enter an integer.
Logging in as 'None'...
Error logging in as 'None'
'None' may not be a GNOME online account. A list of existing accounts is below.
If you do not see a list of accounts, then you first need to add one.
For more information, see http://library.gnome.org/users/gnome-help/stable/accounts.html
Please choose the Account:
這是什麼原因?
答案1
我有同樣的問題,我猜這是與 Ubuntu 13.04 相關的錯誤。我的其他使用線上帳戶的應用程式也停止運作。
手動啟動腳本時,會引發以下堆疊追蹤:
Logging in as '[email protected]'...
Error logging in as '[email protected]'
'[email protected]' may not be a GNOME online account. A list of existing accounts is below.
If you do not see a list of accounts, then you first need to add one.
For more information, see http://library.gnome.org/users/gnome-help/stable/accounts.html
Traceback (most recent call last):
File "./gnome-shell-google-calendar.py", line 477, in <module>
account = oauth.oauth_prompt()
File "/home/tnaessens/gnome-shell-google-calendar/oauth.py", line 13, in oauth_prompt
'/org/gnome/OnlineAccounts')
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.OnlineAccounts was not provided by any .service files
當我查看 dbus-1/services 目錄時,沒有 org.gnome.OnlineAccounts。
解決方案:我透過下載gnome-online-accounts
並重新啟動 .py 檔案修復了此問題。它詢問我的帳戶,我輸入了它,它立即開始同步。
答案2
是的,我為遇到相同問題的人找到了解決方案:
在終端運作中:
env XDG_CURRENT_DESKTOP=GNOME gnome-control-center
然後應該有2個線上帳戶設定;
如果您將 google-online 帳戶新增至第二個帳戶(看起來像插頭的帳戶),則腳本會識別該 google 帳戶