2012-11-20 45 views
1

我写了一个简单的代码,基本上是相同的对视了一眼https://developers.google.com/drive/quickstart-python和第一次尝试,我同样的错误后,每一次:我的Python下运行这个与Python谷歌云端硬盘API SSL错误

# Traceback (most recent call last): 
# File "C:/plug-ins/googleDrive.py", line 35, in <lambda> 
#  self.authAction = self.menu.addAction('Authentication', lambda: self.runAuthentication() ) 
# File "C:/plug-ins/googleDrive.py", line 46, in runAuthentication 
#  credentials = self.flow.step2_exchange(unicode(text)) 
# File "D:/Python\oauth2client\util.py", line 120, in positional_wrapper 
#  return wrapped(*args, **kwargs) 
# File "D:/Python\oauth2client\client.py", line 1131, in step2_exchange 
#  headers=headers) 
# File "D:/Python\httplib2\__init__.py", line 1597, in request 
#  (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) 
# File "D:/Python\httplib2\__init__.py", line 1345, in _request 
#  (response, content) = self._conn_request(conn, request_uri, method, body, headers) 
# File "D:/Python\httplib2\__init__.py", line 1281, in _conn_request 
#  conn.connect() 
# File "D:/Python\httplib2\__init__.py", line 1013, in connect 
#  self.disable_ssl_certificate_validation, self.ca_certs) 
# File "D:/Python\httplib2\__init__.py", line 80, in _ssl_wrap_socket 
#  cert_reqs=cert_reqs, ca_certs=ca_certs) 
# File "C:\python26\ssl.py", line 350, in wrap_socket 
# File "C:\python26\ssl.py", line 118, in __init__ 
# File "C:\python26\ssl.py", line 293, in do_handshake 
# ssl.SSLError: [Errno 8] _ssl.c:480: EOF occurred in violation of protocol 

2.6.4,httplib2 v0.7.7和google-api-python-client v1.0b9。如果有人有想法......我将非常感激。

+0

上述代码对于包括即使它是相同的也是有用的。 –

回答

1

该版本的google-api-python-client(v1.0b9)是客户端库的beta 9版本,您应该升级到发行版本,它只是v1.0。

至于“EOF发生违反协议”,我只看到发生在片状网络连接上,是这种情况吗?

相关问题