New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 718450 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: ----



Sign in to add a comment

Training recipes fails with poor error message

Project Member Reported by tansell@chromium.org, May 4 2017

Issue description

I assume I need to install vpython somehow?

tansell@tansell-z840-l:~/work/infra/build$ ./scripts/slave/recipes.py --verbose --use-bootstrap --package infra/config/recipes.cfg test train
INFO:root:Running ['git', 'rev-parse', '--verify', u'a582c6db898c82dec83aeb353431fc51d62591e6^{commit}']
fatal: Needed a single revision
INFO:root:Running ['git', 'fetch']
remote: Counting objects: 685, done
remote: Finding sources: 100% (349/349)
remote: Total 349 (delta 268), reused 349 (delta 268)
Receiving objects: 100% (349/349), 103.60 KiB | 0 bytes/s, done.
Resolving deltas: 100% (268/268), completed with 55 local objects.
From https://chromium.googlesource.com/external/github.com/luci/recipes-py
   f9234ea..a582c6d  master     -> origin/master
INFO:root:Running ['git', 'checkout', '--quiet', u'a582c6db898c82dec83aeb353431fc51d62591e6']
INFO:root:Running ['/usr/bin/python', '-u', u'/usr/local/google/home/tansell/work/infra/build/scripts/slave/.recipe_deps/recipe_engine/recipes.py', '--package', '/usr/local/google/home/tansell/work/infra/build/infra/config/recipes.cfg', '--verbose', '--use-bootstrap', '--package', 'infra/config/recipes.cfg', 'test', 'train']
Traceback (most recent call last):
  File "/usr/local/google/home/tansell/work/infra/build/scripts/slave/.recipe_deps/recipe_engine/bootstrap/bootstrap_vpython.py", line 97, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/google/home/tansell/work/infra/build/scripts/slave/.recipe_deps/recipe_engine/bootstrap/bootstrap_vpython.py", line 77, in main
    vpython_path = _ensure_vpython(CIPD_ROOT)
  File "/usr/local/google/home/tansell/work/infra/build/scripts/slave/.recipe_deps/recipe_engine/bootstrap/bootstrap_vpython.py", line 35, in _ensure_vpython
    stderr=subprocess.STDOUT,
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
tansell@tansell-z840-l:~/work/infra/build$ 

 
Did you solve this issue?
I have the same issue after I pull the master today (it works last week). Using following:

(in build_internal/scripts/slave)
python recipes.py --use-bootstrap test train

Traceback (most recent call last):
  File "recipes.py", line 207, in <module>
    sys.exit(main())
  File "recipes.py", line 193, in main
    cwd=os.path.dirname(__file__)).strip())
  File "recipes.py", line 129, in _git_output
    return subprocess.check_output(argv, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: ''



Cc: hmchen@chromium.org
Cc: d...@chromium.org iannucci@chromium.org
Is this the same error? The stack traces don't look the same to me.

cc'ing a couple of others to look at vpython trace above.
Sorry for the confusion. That is a different error. :)
My error is solved by using "./recipes.py" instead of "python recipes.py". Free feel to delete my comments.
You shouldn't need to install vpython; it should be automatically pulled.

However, that command line looks suspicious... you shouldn't ever need to pass --package to that recipes.py script. Try:

  $ ./scripts/slave/recipes.py --verbose test train

Which should do what you want.

@hmchen, I think that's actually a different bug; I'll have a CL to fix it.
Ok, hmchen, please pull and try again, it should be fixed now.

Comment 8 by d...@chromium.org, May 9 2017

RE the initial bug, it looks like the line that is failing is the bootstrap call to "cipd". The recipe bootstrap assumes that the "cipd" tool is available on PATH. Is it possible that you don't have "depot_tools' on PATH, or that you have a very old "depot_tools" checkout?
Status: Fixed (was: Untriaged)
Closing as fixed.

Sign in to add a comment