binbeobo / google-cloud-sdk

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

ssh client stopped working #289

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 580, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "calliope/backend.py", line 1113, in Run
    last_group = context_filter(tool_context, Http, args)
  File "calliope/backend.py", line 484, in ContextFilter
    group.Filter(context, args)
  File "compute/subcommands/__init__.py", line 54, in Filter
    _DoFilter(context, self.Http(), 'v1', args)
  File "calliope/base.py", line 278, in Http
    return self._http_func(auth=auth, creds=creds, **kwargs)
  File "calliope/backend.py", line 1108, in Http
    **kwargs)
  File "core/cli.py", line 110, in Http
    gcloud_ua = MakeUserAgentString(cmd_path)
  File "core/cli.py", line 63, in MakeUserAgentString
    platform.python_version(),
  File "/usr/lib/python2.7/platform.py", line 1508, in python_version
    return _sys_version()[1]
  File "/usr/lib/python2.7/platform.py", line 1463, in _sys_version
    repr(sys_version))
ValueError: failed to parse CPython sys.version: '2.7.6 | 64-bit | (default, 
Sep 15 2014, 17:43:19) \n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]'

Installation information:

Google Cloud SDK [0.9.76]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.6 | 64-bit | (default, Sep 15 2014, 17:43:19)  [GCC 4.2.1 
(Apple Inc. build 5666) (dot 3)]]
Site Packages: [Enabled]

Installation Root: [/Users/aspivakovsky/google-cloud-sdk]
Installed Components:
[output truncated]

Original issue reported on code.google.com by aspivako...@gmail.com on 7 Oct 2015 at 9:34

GoogleCodeExporter commented 8 years ago
This is a really interesting error. It suggests that there's some sort of 
problem with your Python installation.

Do you mind running the following command?

  $ python -c 'import platform; print platform.python_version()'

Let us know if it succeeds.

In the meantime, you should be able to work around by installing another Python 
2.7 and setting the environment CLOUDSDK_PYTHON to point to that binary. 

Original comment by z...@google.com on 7 Oct 2015 at 2:14

GoogleCodeExporter commented 8 years ago
That was the problem.
I had downloaded the Python dist. from Enthought and it was first in my PATH

export CLOUDSDK_PYTHON=/usr/bin/python

fixes the problem. 

changing PATH also works.

Thank you

Original comment by aspivako...@gmail.com on 25 Oct 2015 at 12:08

GoogleCodeExporter commented 8 years ago
Thanks for the update.

Original comment by z...@google.com on 25 Oct 2015 at 6:52