modxevil / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Issue running command [gcloud auth login]. #408

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command [gcloud auth login].

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below.

Traceback (most recent call last):
  File "calliope\cli.py", line 609, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "calliope\backend.py", line 1228, in Run
    resources = command_instance.Run(args)
  File "calliope\exceptions.py", line 98, in TryFunc
    return func(*args, **kwargs)
  File "surface\auth\login.py", line 123, in Run
    c_store.Store(creds, account)
  File "core\credentials\store.py", line 297, in Store
    _GetLegacyGen(account, creds).WriteTemplate()
  File "core\credentials\store.py", line 302, in _GetLegacyGen
    multistore_path=config.Paths().LegacyCredentialsMultistorePath(account),
  File "core\config.py", line 615, in LegacyCredentialsMultistorePath
    return os.path.join(self.LegacyCredentialsDir(account), 'multistore.json')
  File "core\config.py", line 604, in LegacyCredentialsDir
    return os.path.join(self.global_config_dir, 'legacy_credentials', account)
  File "C:\python27_x64\lib\ntpath.py", line 85, in join
    result_path = result_path + p_path
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb1 in position 7: ordinal 
not in range(128)

Installation information:

Google Cloud SDK [0.9.88]

Platform: [Windows, x86_64]
Python Version: [2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit 
(AMD64)]]
Python Location: [C:\python27_x64\python.exe]
Site Packages: [Disabled]

[output truncated]

Original issue reported on code.google.com by deagool on 30 Nov 2015 at 2:39

GoogleCodeExporter commented 8 years ago
Does your user name has any non-ascii characters.

Can you set sdk environment variable (for example)
  setx CLOUDSDK_CONFIG=C:\googlecloudsdk
and try the command again.

This will use configuration path which is different from default and without 
non-ascii characters. You will have to re-authenticate, use [gcloud init] to do 
that.

Original comment by che...@google.com on 30 Nov 2015 at 2:10

GoogleCodeExporter commented 8 years ago

Original comment by z...@google.com on 4 Jan 2016 at 2:19