goagent 在CentOS下上传成功,但无法使用,提示 AttributeError: 'NoneType' object has no attribute 'SSL'
[default7@localhost ~]$ ls Desktop Downloads Music Public Videos Documents goagent Pictures Templates workspace [default7@localhost ~]$ cd goagent [default7@localhost goagent]$ ls local README.md server [default7@localhost goagent]$ cd server [default7@localhost server]$ ls gae php uploader.bat uploader.zip [default7@localhost server]$ python uploader.zip =============================================================== GoAgent服务端部署程序, 开始上传 gae 应用文件夹 Linux/Mac 用户, 请使用 python uploader.zip 来上传应用 =============================================================== 请输入您的appid, 多个appid请用|号隔开 注意:appid 请勿包含 android/ios 字样,否则可能被某些网站识别成移动设备。 APPID:app4centos Application: app4centos Host: appengine.google.com Rolling back the update. Email: [email protected] Password for [email protected]: Traceback (most recent call last): File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code exec code in run_globals File "uploader.zip/__main__.py", line 34, in <module> File "uploader.zip/__main__.py", line 29, in main File "uploader.zip/appcfg.py", line 105, in main File "uploader.zip/appcfg.py", line 93, in upload File "uploader.zip/google/appengine/tools/appcfg.py", line 3873, in main File "uploader.zip/google/appengine/tools/appcfg.py", line 2443, in Run File "uploader.zip/google/appengine/tools/appcfg.py", line 3638, in __call__ File "uploader.zip/google/appengine/tools/appcfg.py", line 3141, in Rollback File "uploader.zip/google/appengine/tools/appcfg.py", line 3158, in _Rollback File "uploader.zip/google/appengine/tools/appcfg.py", line 2018, in Rollback File "uploader.zip/google/appengine/tools/appcfg.py", line 1698, in Send File "uploader.zip/google/appengine/tools/appengine_rpc.py", line 378, in Send File "uploader.zip/google/appengine/tools/appengine_rpc.py", line 436, in _Authenticate File "uploader.zip/google/appengine/tools/appengine_rpc.py", line 280, in _Authenticate File "uploader.zip/google/appengine/tools/appengine_rpc.py", line 219, in _GetAuthToken File "/usr/lib64/python2.6/urllib2.py", line 391, in open response = self._open(req, data) File "/usr/lib64/python2.6/urllib2.py", line 409, in _open '_open', req) File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib64/python2.6/urllib2.py", line 1198, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno timed out] counld not connect to 'www.google.com'> [default7@localhost server]$ python uploader.zip =============================================================== GoAgent服务端部署程序, 开始上传 gae 应用文件夹 Linux/Mac 用户, 请使用 python uploader.zip 来上传应用 =============================================================== 请输入您的appid, 多个appid请用|号隔开 注意:appid 请勿包含 android/ios 字样,否则可能被某些网站识别成移动设备。 APPID:app4centos Application: app4centos Host: appengine.google.com Rolling back the update. Email: [email protected] Password for [email protected]: Application: app4centos; version: 1 Host: appengine.google.com Starting update of app: app4centos, version: 1 Scanning files on local disk. Email: [email protected] Password for [email protected]: Cloning 1 static file. Cloning 2 application files. Compilation starting. Compilation completed. Starting deployment. Checking if deployment succeeded. Deployment successful. Checking if updated app version is serving. Completed update of app: app4centos, version: 1 上传成功,请不要忘记编辑proxy.ini把你的appid填进去,谢谢。按回车键退出程序。 [default7@localhost local]$ python proxy.py Traceback (most recent call last): File "proxy.py", line 1490, in <module> class AdvancedProxyHandler(SimpleProxyHandler): File "proxy.py", line 1505, in AdvancedProxyHandler openssl_context = OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD) AttributeError: 'NoneType' object has no attribute 'SSL' [default7@localhost local]$
求解原因?
AttributeError: 'NoneType' object has no attribute 'SSL'
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。