Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform gcloud组件更新失败,MacOS中出现UnicodeDecodeError_Google Cloud Platform_Google Cloud Sdk - Fatal编程技术网

Google cloud platform gcloud组件更新失败,MacOS中出现UnicodeDecodeError

Google cloud platform gcloud组件更新失败,MacOS中出现UnicodeDecodeError,google-cloud-platform,google-cloud-sdk,Google Cloud Platform,Google Cloud Sdk,gcloud组件更新失败,MacOS中出现UnicodeDecodeError。目前尚不清楚是什么原因导致MacOS出现此问题,并表示UnicodeDecodeError的修补程序会影响日志记录。我如何克服这个问题 这是我当前的配置 gcloud -v Google Cloud SDK 190.0.0 beta 2017.09.15 bq 2.0.29 core 2018.02.16 gsutil 4.28 Updates are available for some Cloud SDK com

gcloud组件更新失败,MacOS中出现UnicodeDecodeError。目前尚不清楚是什么原因导致MacOS出现此问题,并表示UnicodeDecodeError的修补程序会影响日志记录。我如何克服这个问题

这是我当前的配置

gcloud -v
Google Cloud SDK 190.0.0
beta 2017.09.15
bq 2.0.29
core 2018.02.16
gsutil 4.28
Updates are available for some Cloud SDK components.  To install them,
please run:
  $ gcloud components update
这就是我得到的错误

  Container Engine
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 859, in emit
    msg = self.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 474, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
Logged from file log.py, line 184
      ▪ Added container/use_v1_api_client property as an alias of
        container/use_v1_api. container/use_v1_api is still supported.

  Kubernetes Engine
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 859, in emit
    msg = self.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 474, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
Logged from file log.py, line 184
      ▪ Added --enable-pod-security-policy flag to enable PodSecurityPolicy
        enforcement in clusters: gcloud <alpha|beta> container clusters
        <create|update> --enable-pod-security-policy

  Stackdriver Debugger
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 859, in emit
    msg = self.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 474, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
Logged from file log.py, line 184
      ▪ Changed gcloud beta source upload command to use the .gcloudignore
        file if present. If not present and .gitignore is, .gitignore will
        still be used. See gcloud topic gcloudignore to learn more.

190.0.1 (2018-02-22)
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 859, in emit
    msg = self.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 732, in format
    return fmt.format(record)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 474, in format
    s = self._fmt % record.__dict__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6: ordinal not in range(128)
Logged from file log.py, line 184
      ▪ Hotfix for UnicodeDecodeError issue affecting logging.
集装箱引擎
回溯(最近一次呼叫最后一次):
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,emit中的第859行
msg=self.format(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第732行,格式为
返回格式(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第474行,格式为
s=自记录的百分比__
UnicodeDecodeError:“ascii”编解码器无法解码位置6中的字节0xe2:序号不在范围内(128)
从log.py文件第184行记录
▪ 添加了容器/使用_v1_api_客户端属性作为的别名
容器/使用v1\u api。仍然支持容器/使用v1\u api。
库伯内特斯发动机
回溯(最近一次呼叫最后一次):
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,emit中的第859行
msg=self.format(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第732行,格式为
返回格式(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第474行,格式为
s=自记录的百分比__
UnicodeDecodeError:“ascii”编解码器无法解码位置6中的字节0xe2:序号不在范围内(128)
从log.py文件第184行记录
▪ 添加--启用pod安全策略标志以启用PodSecurityPolicy
集群实施:gcloud容器集群
--启用pod安全策略
堆栈驱动程序调试器
回溯(最近一次呼叫最后一次):
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,emit中的第859行
msg=self.format(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第732行,格式为
返回格式(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第474行,格式为
s=自记录的百分比__
UnicodeDecodeError:“ascii”编解码器无法解码位置6中的字节0xe2:序号不在范围内(128)
从log.py文件第184行记录
▪ 更改了gcloud beta源上载命令以使用.gcloudignore
如果存在,请存档。如果不存在且.gitignore为,则.gitignore将
仍然可以使用。请参阅gcloud主题gcloudignore以了解更多信息。
190.0.1 (2018-02-22)
回溯(最近一次呼叫最后一次):
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,emit中的第859行
msg=self.format(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第732行,格式为
返回格式(记录)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/_init__.py”,第474行,格式为
s=自记录的百分比__
UnicodeDecodeError:“ascii”编解码器无法解码位置6中的字节0xe2:序号不在范围内(128)
从log.py文件第184行记录
▪ 影响日志记录的UnicodeDecodeError问题的修补程序。

我可以看到您的Python版本还可以(2.7)。 在尝试更新之前,您可能需要运行
gcloud init


如果问题仍然存在,或者您已经运行了上述命令,则恢复将更快。(198.0.0)。

您的SDK是否已更新,请检查我是否能够更新组件
gcloud-v,Google Cloud SDK 197.0.0
确保您拥有最新版本
197.0.0
我刚刚发布了我的当前配置以及更新安装时遇到的错误