当我想通过执行quickly share --verbose将我的应用程序推送到Launchpad时,我会得到以下Gnome键环错误:
Get Launchpad Settings
Traceback (most recent call last):
File "/usr/share/quickly/templates/ubuntu-application/share.py", line 101, in <module>
launchpad = launchpadaccess.initialize_lpi()
File "/usr/lib/python2.7/dist-packages/quickly/launchpadaccess.py", line 91, in initialize_lpi
allow_access_levels=["WRITE_PRIVATE"])
File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 539, in login_with
credential_save_failed, version)
File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 342, in _authorize_token_and_login
authorization_engine.unique_consumer_id)
File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 282, in load
return self.do_load(unique_key)
File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 336, in do_load
'launchpadlib', unique_key)
File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 34, in get_password
return _keyring_backend.get_password(service_name, username)
File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 154, in get_password
items = gnomekeyring.find_network_password_sync(username, service)
gnomekeyring.IOError
ERROR: share command failed
Aborting这曾经起作用,所以这意味着我已经配置了SSH和GPG。这可能是解释的一部分:当我通过带有X转发的ssh隧道连接到这台机器时,我有这个错误。但当我有了电脑的物理权限时,我就没有了。
你能告诉我该怎么做吗?
发布于 2012-07-09 14:26:49
之所以会发生这种情况,是因为launchpadlib (用于访问launchpad的客户端库)将其凭据存储在gnome密钥环中。快速使用launchpadlib访问Launchpad。
还请参阅此bug:https://bugs.launchpad.net/python-keyring/+bug/796873
最好的解决办法是确保在GNOME键环可用的环境中运行。
https://askubuntu.com/questions/161396
复制相似问题