关注此问题
如何构建 ubuntuone-client 以使其不依赖于 nautilus 和 gnome
我被困住了。输入电子邮件和密码后,ubuntu-sso 登录提示没有任何反应。查看日志文件时,我收到 SSLhandshake 错误。所以我想知道这些 python 源上是否有任何 ubuntu 特有的东西需要修补才能使其正常工作?或者我做错了什么?我正试图让它在 archlinux 上运行。以下是 sso 和 ubuntuone 上的日志:
2011-07-20 21:50:42,543:543.970108032 - ubuntu_sso.main - ERROR - Exception while running DBus blocking code in a thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ubuntu_sso/main/linux.py", line 56, in _in_thread
result_cb(app_name, f())
File "/usr/lib/python2.7/site-packages/ubuntu_sso/main/__init__.py", line 103, in f
credentials = self.processor.login(email, password, token_name)
File "/usr/lib/python2.7/site-packages/ubuntu_sso/account.py", line 165, in login
sso_service = self.sso_service_class(basic, self.service_url)
File "/usr/lib/python2.7/site-packages/lazr.restfulclient-0.12.0-py2.7.egg/lazr/restfulclient/resource.py", line 460, in __init__
self._wadl = self._browser.get_wadl_application(self._root_uri)
File "/usr/lib/python2.7/site-packages/lazr.restfulclient-0.12.0-py2.7.egg/lazr/restfulclient/_browser.py", line 299, in get_wadl_application
response, content = self._request(url, media_type=wadl_type)
File "/usr/lib/python2.7/site-packages/lazr.restfulclient-0.12.0-py2.7.egg/lazr/restfulclient/_browser.py", line 242, in _request
str(url), method=method, body=data, headers=headers)
File "/usr/lib/python2.7/site-packages/lazr.restfulclient-0.12.0-py2.7.egg/lazr/restfulclient/_browser.py", line 211, in _request_and_retry
url, method=method, body=body, headers=headers)
File "/usr/lib/python2.7/site-packages/httplib2-0.7.1-py2.7.egg/httplib2/__init__.py", line 1436, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/python2.7/site-packages/lazr.restfulclient-0.12.0-py2.7.egg/lazr/restfulclient/_browser.py", line 130, in _request
redirections, cachekey)
File "/usr/lib/python2.7/site-packages/httplib2-0.7.1-py2.7.egg/httplib2/__init__.py", line 1188, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python2.7/site-packages/httplib2-0.7.1-py2.7.egg/httplib2/__init__.py", line 1123, in _conn_request
conn.connect()
File "/usr/lib/python2.7/site-packages/httplib2-0.7.1-py2.7.egg/httplib2/__init__.py", line 911, in connect
raise SSLHandshakeError(e)
SSLHandshakeError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
2011-07-20 21:50:42,565:565.541982651 - ubuntu_sso.gui - INFO - on_login_error: args (<ubuntu_sso.gtk.gui.UbuntuSSOClientGUI object at 0x3063510>, dbus.String(u'Ubuntu One'), dbus.Dictionary({dbus.String(u'errtype'): dbus.String(u'SSLHandshakeError')}, signature=dbus.Signature('ss'))), kwargs {}.
2011-07-20 21:52:08,917:917.640924454 - ubuntu_sso.credentials - WARNING - Login/registration was denied to app dbus.String(u'Ubuntu One')
2011-07-20 21:52:08,918:918.035984039 - ubuntu_sso.main - INFO - CredentialsManagement: emitting AuthorizationDenied with app_name "Ubuntu One".
2011-07-20 21:52:08,918:918.241977692 - ubuntu_sso.gui - INFO - Calling custom close_callback <function <lambda> at 0x25b6938> with params (<gtk.Window object at 0x3046640 (GtkWindow at 0x30a4060)>, <gtk.gdk.Event at 0x2e1df08: GDK_DELETE>), {}
2011-07-20 21:52:18,923:923.69890213 - ubuntu_sso.main - INFO - Shutting down, calling <built-in function main_quit>.
答案1
您的日志没有告诉我们足够的有关潜在依赖性问题的信息。我唯一的建议(根据日志)是检查 httplib2 的版本,并检查以确保安装了 ssl 依赖项。不知何故,您可能拥有没有额外 ssl 支持的 httplib2。
我无法想象这与 nautilus 和/或 gnome 有很大关系,而更有可能与 httplib2 有关。