Issue metadata
Sign in to add a comment
|
Training recipes fails with poor error message |
||||||||||||||||||||||
Issue descriptionI 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$
,
May 9 2017
,
May 9 2017
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.
,
May 9 2017
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.
,
May 9 2017
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.
,
May 9 2017
,
May 9 2017
Ok, hmchen, please pull and try again, it should be fixed now.
,
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?
,
May 15 2017
Closing as fixed. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by hmchen@chromium.org
, May 9 2017Did 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: ''