gpt4 book ai didi

python - 安装 Google Cloud SDK 时出现 httplib2.SSLHandshakeError

转载 作者:太空狗 更新时间:2023-10-30 01:26:42 26 4
gpt4 key购买 nike

在安装 Google Cloud SDK - Python 时,不断出现 httplib2.SSLHandshakeError。我已经配置了 unfilled_client_secrets.json(显示在返回下方)。这并没有解决 HandshakeError。

类似的问题已经在下面被问到,但没有一个得到明确的回答。提前感谢您提供的任何帮助。

~ $ ./google-cloud-sdk/install.sh Welcome to the Google Cloud SDK!

Traceback (most recent call last):
File "/Users/rptrainor/./google-cloud-sdk/bin/bootstrapping/install.py", line 206, in main()
File "/Users/rptrainor/./google-cloud-sdk/bin/bootstrapping/install.py", line 184, in main Install(pargs.override_components, pargs.additional_components)
File "/Users/rptrainor/./google-cloud-sdk/bin/bootstrapping/install.py", line 130, in Install _CLI.Execute(['--quiet', 'components', 'list'])
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 759, in Execute self._HandleAllErrors(exc, command_path_string, specified_arg_names)
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 737, in Execute resources = args.calliope_command.Run(cli=self, args=args)
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 741, in Run display_info=self.ai.display_info).Display()
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/calliope/display.py", line 427, in Display self._printer.Print(self._resources)
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/resource/resource_printer_base.py", line 251, in Print for resource in resources:
File "/Users/rptrainor/google-cloud-sdk/lib/surface/components/list.py", line 86, in Run result = update_manager.List()
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 516, in List _, diff = self._GetStateAndDiff(command_path='components.list')
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 446, in _GetStateAndDiff command_path=command_path)
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 429, in _GetLatestSnapshot *effective_url.split(','), command_path=command_path)
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/snapshots.py", line 165, in FromURLs for url in urls]
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/snapshots.py", line 186, in _DictFromURL response = installers.ComponentInstaller.MakeRequest(url, command_path)
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/installers.py", line 283, in MakeRequest return url_opener.urlopen(req, timeout=timeout)
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/url_opener.py", line 69, in urlopen return opener.open(req, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open '_open', req) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/url_opener.py", line 54, in https_open return self.do_open(build, req)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1181, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 995, in request self._send_request(method, url, body, headers)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1029, in _send_request self.endheaders(body)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 991, in endheaders self._send_output(message_body)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 844, in _send_output self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 806, in send self.connect()
File "/Users/rptrainor/google-cloud-sdk/lib/third_party/httplib2/init.py", line 1081, in connect raise SSLHandshakeError(e)

httplib2.SSLHandshakeError: [Errno 1] _ssl.c:510: error:14090086:SSL >routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

{
"web":{
"client_id":"[[CLIENT_ID_IS_HERE]]",
"project_id":"[[PROJECT_ID_IS_HERE]]",
"auth_uri":"https://accounts.google.com/o/oauth2/auth",
"token_uri":"https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
"client_secret":"[[CLIENT_SECRET_IS_HERE]]"
}
}

最佳答案

尝试将 Python 更新到最新的 2.7.x 版本。我可以解决将 Python 更新到 2.7.13 的完全相同的问题。

关于python - 安装 Google Cloud SDK 时出现 httplib2.SSLHandshakeError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42986594/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com