I'm installing on google-cloud-cli(version : 426.0.0 ) on Windows 10, and I get the following error.
Error:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Temp\tmpcyv3mmyh\python\lib\tarfile.py", line 2252, in makelink
os.symlink(tarinfo.linkname, targetpath)
FileNotFoundError: [WinError 2] 吏�?뺣맂 ?뚯씪??李얠쓣 ???놁뒿?덈떎: '../idna/intranges.py' -> 'C:\\gcloud\\google-cloud-sdk.staging\\platform\\gsutil\\third_party\\idna\\tools\\intranges.py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\gcloud\google-cloud-sdk\bin\bootstrapping\install.py", line 308, in <module>
main()
File "C:\gcloud\google-cloud-sdk\bin\bootstrapping\install.py", line 285, in main
Install(pargs.override_components, pargs.additional_components)
File "C:\gcloud\google-cloud-sdk\bin\bootstrapping\install.py", line 155, in Install
InstallOrUpdateComponents(to_install, update=update)
File "C:\gcloud\google-cloud-sdk\bin\bootstrapping\install.py", line 197, in InstallOrUpdateComponents
_CLI.Execute(
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 1013, in Execute
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 1050, in _HandleAllErrors
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\calliope\exceptions.py", line 555, in HandleError
core_exceptions.reraise(exc)
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\exceptions.py", line 146, in reraise
six.reraise(type(exc_value), exc_value, tb)
File "C:\gcloud\google-cloud-sdk\lib\third_party\six\__init__.py", line 719, in reraise
raise value
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 987, in Execute
resources = calliope_command.Run(cli=self, args=args)
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\calliope\backend.py", line 807, in Run
resources = command_instance.Run(args)
File "C:\gcloud\google-cloud-sdk\lib\surface\components\update.py", line 125, in Run
update_manager.Update(
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\update_manager.py", line 1082, in Update
self._UpdateWithProgressBar(components_to_install, 'Installing',
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\update_manager.py", line 905, in _UpdateWithProgressBar
action_func(component.id, progress_callback=pb.SetProgress)
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\update_manager.py", line 910, in Inner
return install_state.Install(diff.latest, component_id,
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\local_state.py", line 104, in _TryFunc
return func(*args, **kwargs)
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\local_state.py", line 529, in Install
files = self._GetInstaller(snapshot).Install(
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\installers.py", line 322, in Install
return self._InstallTar(component, progress_callback=progress_callback,
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\installers.py", line 362, in _InstallTar
return DownloadAndExtractTar(
File "C:\gcloud\google-cloud-sdk\lib\googlecloudsdk\core\updater\installers.py", line 247, in DownloadAndExtractTar
tar.extract(member, extract_dir)
File "C:\Users\user\AppData\Local\Temp\tmpcyv3mmyh\python\lib\tarfile.py", line 2086, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name),
File "C:\Users\user\AppData\Local\Temp\tmpcyv3mmyh\python\lib\tarfile.py", line 2167, in _extract_member
self.makelink(tarinfo, targetpath)
File "C:\Users\user\AppData\Local\Temp\tmpcyv3mmyh\python\lib\tarfile.py", line 2262, in makelink
self._extract_member(self._find_link_target(tarinfo),
File "C:\Users\user\AppData\Local\Temp\tmpcyv3mmyh\python\lib\tarfile.py", line 2159, in _extract_member
self.makefile(tarinfo, targetpath)
File "C:\Users\user\AppData\Local\Temp\tmpcyv3mmyh\python\lib\tarfile.py", line 2200, in makefile
with bltn_open(targetpath, "wb") as target:
OSError: [Errno 22] Invalid argument: 'C:\\gcloud\\google-cloud-sdk.staging\\platform\\gsutil\\third_party\\idna\\tools\\intranges.py'
Failed to install.
python code (tarfile.py) can't read path even though I actually have that file
how can i solve it?
Solved! Go to Solution.
Hello @LeeSeoYoung,
Welcome to Google Cloud Community!
If you are running a 64-bit version of your Windows, you may download and install the latest release (google-cloud-cli-432.0.0-windows-x86_64.zip) of the gcloud CLI here.
If you still encounter any issues, don't hesitate to post back here with any questions. We are delighted to try and help.
Thanks!
Hello @LeeSeoYoung,
Welcome to Google Cloud Community!
If you are running a 64-bit version of your Windows, you may download and install the latest release (google-cloud-cli-432.0.0-windows-x86_64.zip) of the gcloud CLI here.
If you still encounter any issues, don't hesitate to post back here with any questions. We are delighted to try and help.
Thanks!
Issue resolved Thank you for your help!