New issue
Advanced search Search tips

Issue 826748 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

|cit restart| doesn't ship with its dependencies?

Project Member Reported by akes...@chromium.org, Mar 28 2018

Issue description

I only use cit occasionally. Seems I'm missing a dep, which is surprising to me because I thought cit was set up to run inside a virtualenv or vpython environment.

I'll go ahead and install the missing dep but filing anyway.

$ cit restart chromeos
Traceback (most recent call last):
  File "/usr/local/google/home/akeshet/.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/akeshet/.chrome-infra/infra/bootstrap/run_helper.py", line 123, in run_py_main
    runpy.run_module(args[0], run_name='__main__', alter_sys=True)
  File "/usr/lib/python2.7/runpy.py", line 188, in run_module
    fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/google/home/akeshet/.chrome-infra/infra/infra/tools/restart/__main__.py", line 9, in <module>
    import datetime
ImportError: No module named datetime
 
I'm not sure what caused this but have heard of it happening a few times over the last month or two -- try nuking ~/.chrome-infra and rerunning.
Actually, `pip install datetime` did not resolve this as I expected.
deleting .chrome-infra/ resolved this.


Sign in to add a comment