New issue
Advanced search Search tips

Issue 721749 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Fail to run 'cit restart'

Project Member Reported by emso@chromium.org, May 12 2017

Issue description

Trying to run 'cit restart' I get the following error:

$ cit restart chromium.infra.codesearch -b 697786 -m 0
Traceback (most recent call last):
  File "/usr/local/google/home/emso/.chrome-infra/infra/run.py", line 29, in <module>
    sys.exit(run_helper.run_py_main(sys.argv[1:], RUNPY_PATH, ENV_PATH, 'infra'))
  File "/usr/local/google/home/emso/.chrome-infra/infra/bootstrap/run_helper.py", line 75, in run_py_main
    import argcomplete
ImportError: No module named argcomplete

Ryan, do you know what's going on? (Andrii suggested I ask you)
 

Comment 1 by emso@chromium.org, May 12 2017

Tried to installed argcomplete using pip but still get the same failure.

Comment 2 by emso@chromium.org, May 12 2017

Result from pip:

$ pip install --user argcomplete
Downloading/unpacking argcomplete
  Downloading argcomplete-1.8.2-py2.py3-none-any.whl
Installing collected packages: argcomplete
Successfully installed argcomplete
Cleaning up...
So, argcomplete should be auto-bootstrapped when "gclient runhooks" is ran. One shouldn't need it on one's machine.

So, either gclient runhooks failed (weren't run?!) OR something is wrong in combination of run_helper.py AND emso@ machine.

Comment 4 by emso@chromium.org, May 12 2017

This combo made it work:
$ gclient runhooks
$ ./run.py infra.tools.restart chromium.infra.codesearch -b 697786 -m 0

Comment 5 by hinoka@chromium.org, May 12 2017

Did gclient runhooks bychance fail to run the first time?

Comment 6 by emso@chromium.org, May 15 2017

Sorry, don't know. Possibly if it runs from within gclient sync. 

Comment 7 by hinoka@chromium.org, Feb 28 2018

Status: WontFix (was: Assigned)

Sign in to add a comment