我已经为 python 工作了 gspread,但大约一个月后,我开始收到以下错误:
gc = gspread.authorize(credentials)
文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/gspread-0.3.0-py2.7.egg/gspread/client.py”,第 331 行,在授权中 client.login() 文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/gspread-0.3.0-py2.7.egg/gspread/client.py”,第101行,登录 self.auth.refresh(http) 文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/oauth2client-1.4.12-py2.7.egg/oauth2client/client.py”,第 597 行,刷新 self._refresh(http.request) 文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/oauth2client-1.4.12-py2.7.egg/oauth2client/client.py”,第 768 行,在 _refresh self._do_refresh_request(http_request) _do_refresh_request 中的文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/oauth2client-1.4.12-py2.7.egg/oauth2client/client.py”,第 799 行 self.token_uri, method='POST', body=body, headers=headers) 请求中的文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg/httplib2/__init__.py”,第 1570 行 (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) _request 中的文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg/httplib2/__init__.py”,第 1317 行 (response, content) = self._conn_request(conn, request_uri, method, body, headers) _conn_request 中的文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg/httplib2/__init__.py”,第 1252 行 连接.connect() 连接中的文件“/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg/httplib2/__init__.py”,第 1044 行 引发 SSLHandshakeError(e) httplib2.SSLHandshakeError: [Errno 1] _ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm
我已经尝试了我能想到的一切,包括安装新的 python 发行版,但没有任何效果。我在 Mac 上,我已经升级了 pyOpenSSL 并做了我能想到的一切。有人有想法吗?