问题描述
安装在01-15-14更新之前正常工作。由于致命的python错误,更新失败。
手动下载并安装会产生相同的错误。运行安装为sudo会产生相同的错误。
哪些步骤会重现此问题?
curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash
%总计%接收%Xferd平均速度时间时间时间当前
上传总花费左速度
100 3707 100 3707 0 0 5777 0 - : - : - - : - : - - : - : - 17162
curl -f https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz> tmp.K8axYW7pd9 / google-cloud-sdk.tar.gz
%总收到%%Xferd平均速度时间时间时间当前
上传总花费左速度
100 332k 100 332k 0 0 339k 0 - : - : - - : - : - - : - : - 359k
目录下解压(这会创建一个目录google-cloud-sdk) (/ Users /用户名):GoogleCompute
tar -C GoogleCompute -xvf tmp.K8axYW7pd9 / google-cloud-sdk.tar.gz
x google-cloud-sdk /
x google-cloud-sdk /.install/
x google-cloud-sdk / .install / core.snapshot.json
x google-cloud-sdk / .install / .download /
x google-cloud-sdk / .install /core.manifest
x google-cloud-sdk / bin /
x google-cloud-sdk / bin / bootstrapping /
x google-cloud-sdk / bin / bootstrapping / .install_configurations
x google-cloud-sdk / bin / bootstrapping / install.py
x google-cloud-sdk / bin / bootstrapping / bootstrapping.py
x google-cloud-sdk / bin / bootstrapping / __ init__.py
x google-cloud-sdk / bin / bootstrapping / .default_components
x google-cloud-sdk / bin / bootstrapping / setup.py
x google-cloud-sdk / bin / bootstrapping / prerun.py
x google-cloud-sdk / bin / bootstrapping / print_env_info.py
x google-cloud-sdk / RELEASE_NOTES
x google-cloud- sdk / README
x google-cloud-sdk / lib /
x google-cloud-sdk / lib / argcomplete /
x google-cloud-sdk / lib / argcomplete / my_argparse.py
x google-cloud-sdk / lib / argcomplete / completers.py
x google-cloud-sdk / lib / argcomplete / scripts /
x google-cloud-sdk / lib / argcomplete / scripts / python-argcomplete-check -easy-install-script
x google-cloud-sdk / lib / argcomplete / scripts / register-python-argcomplete
x google-cloud-sdk / lib / argcomplete / scripts / activate-global-python-argcomplete
x google-cloud-sdk / lib / argcomplete / __ init__.py
x google-cloud-sdk / lib / argcomplete / my_shlex.py
x google-cloud-sdk / lib / google /
x google-cloud-sdk / lib / google / cloud /
x google-cloud-sdk / lib / google / cloud / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk /
x google-cloud-sdk / lib / google / cloud / sdk / gcloud /
x google-cloud-sdk / lib / google / sdk / gcloud / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / gcloud.yaml
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / gcloud.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools /
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / config /
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / config / list.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / config / set.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / config / unset.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / config / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / root /
x google-cloud -sdk / lib / google / cloud / sdk / gcloud / sdktools / root / interactive.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / root / version.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / root / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / auth /
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / auth / list.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / auth / enable_google_repos.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / auth /activate_refresh_token.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / auth / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud /sdktools/auth/login.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / auth / revoke.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / components /
x google-cloud-sdk / lib / google / clo ud / sdk / gcloud / sdktools / components / list.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / components / restore.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / components / remove.py
x google-cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / components / __ init__.py
x google- cloud-sdk / lib / google / cloud / sdk / gcloud / sdktools / components / update.py
x google-cloud-sdk / lib / google / cloud / sdk / __ init__.py
x google-cloud- sdk / lib / google / cloud / sdk / calliope /
x google-cloud-sdk / lib / google / cloud / sdk / calliope / base.py
x google-cloud-sdk / lib / google / cloud /sdk/calliope/actions.py
x google-cloud-sdk / lib / google / cloud / sdk / calliope / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk / calliope /exceptions.py
x google-cloud-sdk / lib / google / cloud / sdk / core /
x google-cloud-sdk / lib / google / cloud / sdk / core / util /
x google-cloud-sdk / lib / google / cloud / sdk / core / util / files.py
x google-cloud-sdk / lib /google/cloud/sdk/core/util/console_io.py
x google-cloud-sdk / lib / google / cloud / sdk / core / util / platforms.py
x google-cloud-sdk / lib /google/cloud/sdk/core/util/__init__.py
x google-cloud-sdk / lib / google / cloud / sdk / core / util / edit.py
x google-cloud-sdk / lib /google/cloud/sdk/core/metrics.py
x google-cloud-sdk / lib / google / cloud / sdk / core / log.py
x google-cloud-sdk / lib / google / cloud / sdk / core / VERSION
x google-cloud-sdk / lib / google / cloud / sdk / core / config.json
x google-cloud-sdk / lib / google / cloud / sdk / core / updater /
x google-cloud-sdk / lib / google / cloud / sdk / core / updater / schemas.py
x google-cloud-sdk / lib / google / cloud / sdk / core / updater / local_state。 py
x google-cloud-sdk / lib / google / cloud / sdk / core / updater / update_manager.py
x google-cloud-sdk / lib / google / cloud / sdk / core / updater / __ init__。 py
x google-cloud-sdk / lib / google / cloud / sdk / core / updater / snapshots.py
x google-cloud-sdk / lib / google / cloud / sdk / cor e / updater / installers.py
x google-cloud-sdk / lib / google / cloud / sdk / core / cli.py
x google-cloud-sdk / lib / google / cloud / sdk / core / __init__.py
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials /
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials / flow.py
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials / __ init__.py
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials / gitp2d.py
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials / oauth2_landing.html
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials / store.py
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials / gce.py
x google-cloud-sdk / lib / google / cloud / sdk / core / credentials / legacy.py
x google-cloud-sdk / lib / google / cloud / sdk / core / config.py
x google-cloud-sdk / lib / google / cloud / sdk / core / properties.py
x google-cloud-sdk / lib / google / __ init__.py
x google-cloud-sdk / lib / google / apputils /
xg oogle-cloud-sdk / lib / google / apputils / setup_command.py
x google-cloud-sdk / lib / google / apputils / debug.py
x google-cloud-sdk / lib / google / apputils / basetest.py
x google-cloud-sdk / lib / google / apputils / app.py
x google-cloud-sdk / lib / google / apputils / file_util.py
x google-cloud-sdk /lib/google/apputils/__init__.py
x google-cloud-sdk / lib / google / apputils / shellutil.py
x google-cloud-sdk / lib / google / apputils / datelib.py
x google-cloud-sdk / lib / google / apputils / appcommands.py
x google-cloud-sdk / lib / google / apputils / run_script_module.py
x google-cloud-sdk / lib / google / apputils / resources.py
x google-cloud-sdk / lib / google / apputils / stopwatch.py
x google-cloud-sdk / lib / oauth2 /
x google-cloud-sdk / lib / oauth2 / __ init__.py
x google-cloud-sdk / lib / yaml /
x google-cloud-sdk / lib / yaml / serializer.py
x google-cloud-sdk / lib / yaml / resolver.py
x google-cloud-sdk / lib / yaml / events.py
x google-cloud-sdk / lib / yaml / nodes.py
x google-cloud-sdk / lib / yaml / loader.py
x google-cloud-sdk / lib / yaml / representer.py
x google-cloud-sdk / lib / yaml / parser.py
x google-cloud-sdk / lib / yaml / emitter.py
x google-cloud-sdk / lib / yaml / __ init__.py
x google-cloud-sdk / lib / yaml / cyaml.py
x google-cloud-sdk / lib / yaml / dumper.py
x google-cloud-sdk / lib / yaml / composer.py
x google-cloud-sdk / lib / yaml / reader.py
x google-cloud-sdk / lib / yaml / scanner.py
x google-cloud-sdk / lib / yaml / tokens。 py
x google-cloud-sdk / lib / yaml / constructor.py
x google-cloud-sdk / lib / yaml / error.py
x google-cloud-sdk / lib / oauth2client /
x google-cloud-sdk / lib / oauth2client / clientsecrets.py
x google-cloud-sdk / lib / oauth2client / django_orm.py
x google-cloud-sdk / lib / oauth2client / appengine.py
x google-cloud-sdk / lib / oauth2client / tools.py
x google-cloud-sdk / lib / oauth2client / __ init__。 py
x google-cloud-sdk / lib / oauth2client / old_run.py
x google-cloud-sdk / lib / oauth2client / file.py
x google-cloud-sdk / lib / oauth2client / multistore_file .py
x google-cloud-sdk / lib / oauth2client / anyjson.py
x google-cloud-sdk / lib / oauth2client / keyring_storage.py
x google-cloud-sdk / lib / oauth2client / gce.py
x google-cloud-sdk / lib / oauth2client / locked_file.py
x google-cloud-sdk / lib / oauth2client / crypt.py
x google-cloud-sdk / lib / oauth2client /client.py
x google-cloud-sdk / lib / oauth2client / util.py
x google-cloud-sdk / lib / oauth2client / xsrfutil.py
x google-cloud-sdk / lib / socks /
x google-cloud-sdk / lib / socks / __ init__.py
x google-cloud-sdk / lib / httplib2 /
x google-cloud-sdk / lib / httplib2 / iri2uri.py
x google-cloud-sdk / lib / httplib2 / __ init__.py
x google-cloud-sdk / lib / httplib2 / LICENSE
x google-cloud-sdk / lib / httplib2 / cacerts.txt
x google-cloud-sdk / lib / uri模板/
x google-cloud-sdk / lib / uritemplate / uritemplate.py
x google-cloud-sdk / lib / uritemplate / __ init__.py
x google-cloud-sdk / lib / apiclient /
x google-cloud-sdk / lib / apiclient / mimeparse.py
x google-cloud-sdk / lib / apiclient / http.py
x google-cloud-sdk / lib / apiclient / oauth。 py
x google-cloud-sdk / lib / apiclient / __ init__.py
x google-cloud-sdk / lib / apiclient / model.py
x google-cloud-sdk / lib / apiclient / push .py
x google-cloud-sdk / lib / apiclient / channel.py
x google-cloud-sdk / lib / apiclient / errors.py
x google-cloud-sdk / lib / apiclient / discovery.py
x google-cloud-sdk / lib / apiclient / schema.py
x google-cloud-sdk / lib / gflags /
x google-cloud-sdk / lib / gflags / ChangeLog
x google-cloud-sdk / lib / gflags / setup.cfg
x google-cloud-sdk / lib / gflags / MANIFEST.in
x google-cloud-sdk / lib / gflags / gflags2man.py
x google-cloud-sdk / lib / gflags / gflags_validators.py
x google-cloud-sdk / lib / gflags / README
x google-cloud-sdk / lib / gflags / __ init__.py
x google-cloud-sdk / lib / gflags / NEWS
x google- cloud-sdk / lib / gflags / PKG-INFO
x google-cloud-sdk / lib / gflags / Makefile
x google-cloud-sdk / lib / gflags / setup.py
x google-cloud -sdk / lib / gflags / AUTHORS
x google-cloud-sdk / lib / gflags / COPYING
x google-cloud-sdk / lib / gflags / LICENSE
x google-cloud-sdk / install。 sh
x google-cloud-sdk / install.bat
x google-cloud-sdk / LICENSE
GoogleCompute / google-cloud-sdk / install.sh
欢迎使用Google Cloud SDK!
Google Cloud SDK目前处于开发人员预览中。为了帮助提高该产品的
质量,我们收集了关于如何使用SDK的匿名数据。
您可以选择立即退出此集合(通过在
下面的提示中选择'N'),或者在将来的任何时候通过运行以下命令:
gcloud config - -global-only set disable_usage_reporting true
您是否想要帮助改进Google Cloud SDK(是/否)? y
这将安装使用
Google云平台所需的所有核心命令行工具。
如果您正在开发App Engine应用程序,请选择您的应用程序所用的
语言。这将安装
所需的工具和运行时,以使用该语言。如果需要
,则可以稍后通过gcloud
组件管理器添加和删除语言。
[1] Java
[2] Python和PHP
[3] Go
[4]没有App Engine(您可以稍后安装App Engine工具)
请输入您的数字选项(4):2
将安装以下组件:
------------------ -------------------------------------------------- -----------
|适用于Mac的App Engine启动器应用程序| 1.8.9 | 7.4 MB |
|适用于Python和PHP的App Engine SDK 1.8.9 | 35.4 MB |
|大型查询命令行工具| 2.0.17 | < 1 MB |
|大型查询命令行工具(平台特定)| 2.0.17 | < 1 MB |
| Cloud SDK Core命令行工具| 1 | |
|云SDK SDK核心库(平台特定)| 2013.11.19 | < 1 MB |
|适用于Python和PHP开发人员的云SDK 1 | |
|云SQL管理命令行界面| 2013.12.17 | < 1 MB |
|云存储命令行工具| 3.40 | 1.7 MB |
|云存储命令行工具(平台特定)| 3.40 | < 1 MB |
|计算引擎命令行工具| 1.13.0 | < 1 MB |
|计算引擎命令行工具(特定于平台)| 1.13.0 | < 1 MB |
---------------------------------------------- ---------------------------------
创建更新临时区域...
安装:适用于Mac的App Engine启动器应用程序... Traceback(最近呼叫的最后一个):
文件/ Users / username / GoogleCompute / GoogleCompute / google-cloud-sdk / bin / bootstrapping / install.py,第283行,放在< module>
安装(pargs.disable_installation_options)
安装
组件的文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/install.py,第247行= InstallComponents(to_install)
InstallComponents
中的/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/install.py行269文件components.update(component_ids = component_ids,allow_no_backup = True)
文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/calliope/__init__.py ,第925行,在__call__
中返回self._Execute(cli_mode = False,kwargs = kwargs)
文件/ Users / username / GoogleCompute / GoogleCompute / google-cloud-sdk / bin / bootstrapping /。 ./../lib/google/cloud/sdk/calliope/__init__.py,第960行,在_Execute
cli_mode = cli_mode)
文件/ Users / username / GoogleCompute / GoogleCompute / google-云SDK /斌/引导/../../ lib / google / cloud / sdk / calliope / __ init__.py,行702,在
result = command_instance.Run(args)
文件/ Users / username / GoogleCompute / GoogleCompute / google-cloud -sdk / bin / bootstrapping /../../ lib / google / cloud / sdk / gcloud / sdktools / components / update.py,第38行,在Run
manager.Update(args.component_ids,allow_no_backup = args.allow_no_backup)
文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/update_manager。 py,第88行,在_TryFunc
返回func(* args,** kwargs)
文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../ ../lib/google/cloud/sdk/core/updater/update_manager.py,第465行,更新
self._InstallFunction(staging_state,diff))
文件/ Users / username / GoogleCompute /GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/update_manager.py,第377行,在_Upda teAndPrint
action_func(component.id)
文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/内核
返回install_state.Install(diff.latest,component_id)
文件/ Users / username / GoogleCompute / GoogleCompute / google-cloud-sdk / bin / bootstrapping /../../ lib / google / cloud / sdk / core / updater / local_state.py,第73行,在_TryFunc中
返回func(* args,** kwargs)
文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/local_state.py,第409行,安装
文件= self._GetInstaller(快照).Install(component_id)
文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google /cloud/sdk/core/updater/installers.py,第78行,在Install
中返回self._InstallTar(component)
文件/ Users /用户名/ GoogleCompute / GoogleCompute / google-cloud-sdk / bin / bootstrapping /../../ lib / google / cloud / sdk / core / updater / installers.py,第115行,在_InstallTar
url, self .__ download_directory,self .__ sdk_root)
文件/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater /installers.py,第146行,在DownloadAndExtractTar
中用file_utils.Context(tarfile.open(name = download_file_path))作为tar:
AttributeError:'module'对象没有属性'open'
观察回溯,是否有可能拥有另一个模块命名为 tarfile
标准库 tarfile
模块?
在我的电脑上,我看到:
>>>导入tarfile
>>> tarfile .__ file__
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.pyc'
>>> tarfile.open
< class'tarfile.TarFile'>>的< bound method type.open>
如果 tarfile .__文件__
不在一个名为 / lib / python *
的子目录,你可能有另外一个名为 tarfile
的模块来映射标准库模块。 p>
Install worked fine prior to 01-15-14 update. Update fails due to fatal python errors.
Manual download and install produces same errors. Running install as sudo produces same errors.
What steps will reproduce the problem?
curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3707 100 3707 0 0 5777 0 --:--:-- --:--:-- --:--:-- 17162
curl -f https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > tmp.K8axYW7pd9/google-cloud-sdk.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 332k 100 332k 0 0 339k 0 --:--:-- --:--:-- --:--:-- 359k
Directory to extract under (this will create a directory google-cloud-sdk) (/Users/username):GoogleCompute
tar -C GoogleCompute -xvf tmp.K8axYW7pd9/google-cloud-sdk.tar.gz
x google-cloud-sdk/
x google-cloud-sdk/.install/
x google-cloud-sdk/.install/core.snapshot.json
x google-cloud-sdk/.install/.download/
x google-cloud-sdk/.install/core.manifest
x google-cloud-sdk/bin/
x google-cloud-sdk/bin/bootstrapping/
x google-cloud-sdk/bin/bootstrapping/.install_configurations
x google-cloud-sdk/bin/bootstrapping/install.py
x google-cloud-sdk/bin/bootstrapping/bootstrapping.py
x google-cloud-sdk/bin/bootstrapping/__init__.py
x google-cloud-sdk/bin/bootstrapping/.default_components
x google-cloud-sdk/bin/bootstrapping/setup.py
x google-cloud-sdk/bin/bootstrapping/prerun.py
x google-cloud-sdk/bin/bootstrapping/print_env_info.py
x google-cloud-sdk/RELEASE_NOTES
x google-cloud-sdk/README
x google-cloud-sdk/lib/
x google-cloud-sdk/lib/argcomplete/
x google-cloud-sdk/lib/argcomplete/my_argparse.py
x google-cloud-sdk/lib/argcomplete/completers.py
x google-cloud-sdk/lib/argcomplete/scripts/
x google-cloud-sdk/lib/argcomplete/scripts/python-argcomplete-check-easy-install-script
x google-cloud-sdk/lib/argcomplete/scripts/register-python-argcomplete
x google-cloud-sdk/lib/argcomplete/scripts/activate-global-python-argcomplete
x google-cloud-sdk/lib/argcomplete/__init__.py
x google-cloud-sdk/lib/argcomplete/my_shlex.py
x google-cloud-sdk/lib/google/
x google-cloud-sdk/lib/google/cloud/
x google-cloud-sdk/lib/google/cloud/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/gcloud.yaml
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/gcloud.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/config/
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/config/list.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/config/set.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/config/unset.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/config/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/root/
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/root/interactive.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/root/version.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/root/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/list.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/enable_google_repos.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/activate_refresh_token.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/login.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/auth/revoke.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/components/
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/components/list.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/components/restore.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/components/remove.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/components/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/gcloud/sdktools/components/update.py
x google-cloud-sdk/lib/google/cloud/sdk/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/calliope/
x google-cloud-sdk/lib/google/cloud/sdk/calliope/base.py
x google-cloud-sdk/lib/google/cloud/sdk/calliope/actions.py
x google-cloud-sdk/lib/google/cloud/sdk/calliope/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/calliope/exceptions.py
x google-cloud-sdk/lib/google/cloud/sdk/core/
x google-cloud-sdk/lib/google/cloud/sdk/core/util/
x google-cloud-sdk/lib/google/cloud/sdk/core/util/files.py
x google-cloud-sdk/lib/google/cloud/sdk/core/util/console_io.py
x google-cloud-sdk/lib/google/cloud/sdk/core/util/platforms.py
x google-cloud-sdk/lib/google/cloud/sdk/core/util/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/core/util/edit.py
x google-cloud-sdk/lib/google/cloud/sdk/core/metrics.py
x google-cloud-sdk/lib/google/cloud/sdk/core/log.py
x google-cloud-sdk/lib/google/cloud/sdk/core/VERSION
x google-cloud-sdk/lib/google/cloud/sdk/core/config.json
x google-cloud-sdk/lib/google/cloud/sdk/core/updater/
x google-cloud-sdk/lib/google/cloud/sdk/core/updater/schemas.py
x google-cloud-sdk/lib/google/cloud/sdk/core/updater/local_state.py
x google-cloud-sdk/lib/google/cloud/sdk/core/updater/update_manager.py
x google-cloud-sdk/lib/google/cloud/sdk/core/updater/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/core/updater/snapshots.py
x google-cloud-sdk/lib/google/cloud/sdk/core/updater/installers.py
x google-cloud-sdk/lib/google/cloud/sdk/core/cli.py
x google-cloud-sdk/lib/google/cloud/sdk/core/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/flow.py
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/__init__.py
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/gitp2d.py
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/oauth2_landing.html
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/store.py
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/gce.py
x google-cloud-sdk/lib/google/cloud/sdk/core/credentials/legacy.py
x google-cloud-sdk/lib/google/cloud/sdk/core/config.py
x google-cloud-sdk/lib/google/cloud/sdk/core/properties.py
x google-cloud-sdk/lib/google/__init__.py
x google-cloud-sdk/lib/google/apputils/
x google-cloud-sdk/lib/google/apputils/setup_command.py
x google-cloud-sdk/lib/google/apputils/debug.py
x google-cloud-sdk/lib/google/apputils/basetest.py
x google-cloud-sdk/lib/google/apputils/app.py
x google-cloud-sdk/lib/google/apputils/file_util.py
x google-cloud-sdk/lib/google/apputils/__init__.py
x google-cloud-sdk/lib/google/apputils/shellutil.py
x google-cloud-sdk/lib/google/apputils/datelib.py
x google-cloud-sdk/lib/google/apputils/appcommands.py
x google-cloud-sdk/lib/google/apputils/run_script_module.py
x google-cloud-sdk/lib/google/apputils/resources.py
x google-cloud-sdk/lib/google/apputils/stopwatch.py
x google-cloud-sdk/lib/oauth2/
x google-cloud-sdk/lib/oauth2/__init__.py
x google-cloud-sdk/lib/yaml/
x google-cloud-sdk/lib/yaml/serializer.py
x google-cloud-sdk/lib/yaml/resolver.py
x google-cloud-sdk/lib/yaml/events.py
x google-cloud-sdk/lib/yaml/nodes.py
x google-cloud-sdk/lib/yaml/loader.py
x google-cloud-sdk/lib/yaml/representer.py
x google-cloud-sdk/lib/yaml/parser.py
x google-cloud-sdk/lib/yaml/emitter.py
x google-cloud-sdk/lib/yaml/__init__.py
x google-cloud-sdk/lib/yaml/cyaml.py
x google-cloud-sdk/lib/yaml/dumper.py
x google-cloud-sdk/lib/yaml/composer.py
x google-cloud-sdk/lib/yaml/reader.py
x google-cloud-sdk/lib/yaml/scanner.py
x google-cloud-sdk/lib/yaml/tokens.py
x google-cloud-sdk/lib/yaml/constructor.py
x google-cloud-sdk/lib/yaml/error.py
x google-cloud-sdk/lib/oauth2client/
x google-cloud-sdk/lib/oauth2client/clientsecrets.py
x google-cloud-sdk/lib/oauth2client/django_orm.py
x google-cloud-sdk/lib/oauth2client/appengine.py
x google-cloud-sdk/lib/oauth2client/tools.py
x google-cloud-sdk/lib/oauth2client/__init__.py
x google-cloud-sdk/lib/oauth2client/old_run.py
x google-cloud-sdk/lib/oauth2client/file.py
x google-cloud-sdk/lib/oauth2client/multistore_file.py
x google-cloud-sdk/lib/oauth2client/anyjson.py
x google-cloud-sdk/lib/oauth2client/keyring_storage.py
x google-cloud-sdk/lib/oauth2client/gce.py
x google-cloud-sdk/lib/oauth2client/locked_file.py
x google-cloud-sdk/lib/oauth2client/crypt.py
x google-cloud-sdk/lib/oauth2client/client.py
x google-cloud-sdk/lib/oauth2client/util.py
x google-cloud-sdk/lib/oauth2client/xsrfutil.py
x google-cloud-sdk/lib/socks/
x google-cloud-sdk/lib/socks/__init__.py
x google-cloud-sdk/lib/httplib2/
x google-cloud-sdk/lib/httplib2/iri2uri.py
x google-cloud-sdk/lib/httplib2/__init__.py
x google-cloud-sdk/lib/httplib2/LICENSE
x google-cloud-sdk/lib/httplib2/cacerts.txt
x google-cloud-sdk/lib/uritemplate/
x google-cloud-sdk/lib/uritemplate/uritemplate.py
x google-cloud-sdk/lib/uritemplate/__init__.py
x google-cloud-sdk/lib/apiclient/
x google-cloud-sdk/lib/apiclient/mimeparse.py
x google-cloud-sdk/lib/apiclient/http.py
x google-cloud-sdk/lib/apiclient/oauth.py
x google-cloud-sdk/lib/apiclient/__init__.py
x google-cloud-sdk/lib/apiclient/model.py
x google-cloud-sdk/lib/apiclient/push.py
x google-cloud-sdk/lib/apiclient/channel.py
x google-cloud-sdk/lib/apiclient/errors.py
x google-cloud-sdk/lib/apiclient/discovery.py
x google-cloud-sdk/lib/apiclient/schema.py
x google-cloud-sdk/lib/gflags/
x google-cloud-sdk/lib/gflags/ChangeLog
x google-cloud-sdk/lib/gflags/setup.cfg
x google-cloud-sdk/lib/gflags/MANIFEST.in
x google-cloud-sdk/lib/gflags/gflags2man.py
x google-cloud-sdk/lib/gflags/gflags_validators.py
x google-cloud-sdk/lib/gflags/README
x google-cloud-sdk/lib/gflags/__init__.py
x google-cloud-sdk/lib/gflags/NEWS
x google-cloud-sdk/lib/gflags/PKG-INFO
x google-cloud-sdk/lib/gflags/Makefile
x google-cloud-sdk/lib/gflags/setup.py
x google-cloud-sdk/lib/gflags/AUTHORS
x google-cloud-sdk/lib/gflags/COPYING
x google-cloud-sdk/lib/gflags/LICENSE
x google-cloud-sdk/install.sh
x google-cloud-sdk/install.bat
x google-cloud-sdk/LICENSE
GoogleCompute/google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!
The Google Cloud SDK is currently in developer preview. To help improve the
quality of this product, we collect anonymized data on how the SDK is used.
You may choose to opt out of this collection now (by choosing 'N' at the below
prompt), or at any time in the future by running the following command:
gcloud config --global-only set disable_usage_reporting true
Do you want to help improve the Google Cloud SDK (Y/n)? y
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
If you are developing an App Engine application, please select the
language your application is written in. This will install the
required tools and runtimes for working in that language. If
necessary, you can add and remove languages later through the gcloud
component manager.
[1] Java
[2] Python and PHP
[3] Go
[4] No App Engine (you can install App Engine tools later)
Please enter your numeric choice (4): 2
The following components will be installed:
-------------------------------------------------------------------------------
| App Engine Launcher Application for Mac | 1.8.9 | 7.4 MB |
| App Engine SDK for Python and PHP | 1.8.9 | 35.4 MB |
| Big Query Command Line Tool | 2.0.17 | < 1 MB |
| Big Query Command Line Tool (Platform Specific) | 2.0.17 | < 1 MB |
| Cloud SDK Core Command Line Tools | 1 | |
| Cloud SDK Core Libraries (Platform Specific) | 2013.11.19 | < 1 MB |
| Cloud SDK for Python and PHP Developers | 1 | |
| Cloud SQL Admin Command Line Interface | 2013.12.17 | < 1 MB |
| Cloud Storage Command Line Tool | 3.40 | 1.7 MB |
| Cloud Storage Command Line Tool (Platform Specific) | 3.40 | < 1 MB |
| Compute Engine Command Line Tool | 1.13.0 | < 1 MB |
| Compute Engine Command Line Tool (Platform Specific) | 1.13.0 | < 1 MB |
-------------------------------------------------------------------------------
Creating update staging area...
Installing: App Engine Launcher Application for Mac ... Traceback (most recent call last):
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/install.py", line 283, in <module>
Install(pargs.disable_installation_options)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/install.py", line 247, in Install
components = InstallComponents(to_install)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/install.py", line 269, in InstallComponents
components.update(component_ids=component_ids, allow_no_backup=True)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/calliope/__init__.py", line 925, in __call__
return self._Execute(cli_mode=False, kwargs=kwargs)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/calliope/__init__.py", line 960, in _Execute
cli_mode=cli_mode)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/calliope/__init__.py", line 702, in Run
result = command_instance.Run(args)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/gcloud/sdktools/components/update.py", line 38, in Run
manager.Update(args.component_ids, allow_no_backup=args.allow_no_backup)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/update_manager.py", line 88, in _TryFunc
return func(*args, **kwargs)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/update_manager.py", line 465, in Update
self._InstallFunction(staging_state, diff))
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/update_manager.py", line 377, in _UpdateAndPrint
action_func(component.id)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/update_manager.py", line 384, in Inner
return install_state.Install(diff.latest, component_id)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/local_state.py", line 73, in _TryFunc
return func(*args, **kwargs)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/local_state.py", line 409, in Install
files = self._GetInstaller(snapshot).Install(component_id)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/installers.py", line 78, in Install
return self._InstallTar(component)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/installers.py", line 115, in _InstallTar
url, self.__download_directory, self.__sdk_root)
File "/Users/username/GoogleCompute/GoogleCompute/google-cloud-sdk/bin/bootstrapping/../../lib/google/cloud/sdk/core/updater/installers.py", line 146, in DownloadAndExtractTar
with file_utils.Context(tarfile.open(name=download_file_path)) as tar:
AttributeError: 'module' object has no attribute 'open'
Looking at the traceback, is it possible that you have another module named tarfile
shadowing the standard library tarfile
module?
On my computer, I see:
>>> import tarfile
>>> tarfile.__file__
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.pyc'
>>> tarfile.open
<bound method type.open of <class 'tarfile.TarFile'>>
If tarfile.__file__
isn't in a subdirectory of /lib/python*
, you may have another module named tarfile
shadowing the standard library module.
这篇关于google-cloud-sdk - 在更新和尝试重新安装Mac OSX 10.7.5时发生致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!