Installing Google Datalab error: No such file or directory when running Create command

十年热恋 提交于 2019-12-11 07:41:31

问题


Following the installation guide on the Google page, which says to run the command:

$ gcloud components install datalab

This installs the datalab commands and when I next try:

$ datalab create sigma2017
[Errno 2] No such file or directory

Picture from console:

EDIT2

G:sdks gr$ ./google-cloud-sdk/bin/gcloud auth login
Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&access_type=offline


WARNING: `gcloud auth login` no longer writes application default credentials.
If you need to use ADC, see:
  gcloud auth application-default --help

You are now logged in as [g*****.r*********@gmail.com].
Your current project is [*****-******-579].  You can change this setting by running:
  $ gcloud config set project PROJECT_ID
G:sdks gr$ ./google-cloud-sdk/bin/datalab create sigma2017 --verbosity=debug
Traceback (most recent call last):
  File "/Users/gr/sdks/./google-cloud-sdk/platform/datalab-cli/datalab.py", line 300, in run
    email=get_email_address(),
  File "/Users/gr/sdks/./google-cloud-sdk/platform/datalab-cli/datalab.py", line 200, in get_email_address
    'value(account)', '--filter', 'status:ACTIVE']).strip()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[Errno 2] No such file or directory
G:sdks gr$ 

回答1:


The datalab command expects that the gcloud command is available in your path. Try adding ./google-cloud-sdk/bin/ to your PATH or running from that directory.

Original Answer:

From your screenshot, it seems that get_email_account is failing. Can you run 'gcloud auth login', which will log you in and set your account email?




回答2:


The datalab installation seems to have failed. Please check two things below.

$ ls ./google-cloud-sdk/bin/ $ gcloud components list

And show the complete message that you installed the component.



来源:https://stackoverflow.com/questions/47305219/installing-google-datalab-error-no-such-file-or-directory-when-running-create-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!