我使用 google drive 应用程序使用 python 编写了一个桌面应用程序,一切正常。但是当我使用 pyinstaller 输出一个 .exe 文件并运行该应用程序时。这些行出现问题:
if credentials is None or credentials.invalid:
credentials = run(FLOW, storage)
身份验证页面显示,我允许其访问。与往常不同的是,在那之后没有任何反应,我发现.exe程序无故退出。以前有人遇到过这个问题吗?如果是这样,如何解决?
PS我现在跟踪错误,如下所示:
Traceback (most recent call last):
File "<string>", line 697, in <module>
File "<string>", line 562, in __init__
File "build\bdist.win32\egg\oauth2client\tools.py", line 166, in run
File "build\bdist.win32\egg\oauth2client\client.py", line 1069, in step2_exchange
File "USB\build\pyi.win32\USB\outPYZ1.pyz/httplib2", line 1544, in request
File "USB\build\pyi.win32\USB\outPYZ1.pyz/httplib2", line 1294, in _request
File "USB\build\pyi.win32\USB\outPYZ1.pyz/httplib2", line 1230, in _conn_request
File "USB\build\pyi.win32\USB\outPYZ1.pyz/httplib2", line 984, in connect
File "USB\build\pyi.win32\USB\outPYZ1.pyz/httplib2", line 80, in _ssl_wrap_socket
File "USB\build\pyi.win32\USB\outPYZ1.pyz/ssl", line 381, in wrap_socket
File "USB\build\pyi.win32\USB\outPYZ1.pyz/ssl", line 141, in __init__
ssl.SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate rout
ines:X509_load_cert_crl_file:system lib
我看到有人遇到了类似的错误http://code.google.com/p/google-api-python-client/issues/detail?id=58但回复说它已经修复了。我也尝试了https://github.com/kennethreitz/requests/issues/557中的方法,但它不起作用。有谁知道如何修理它?