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

Issue 717595 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

virtualenv failure during repo upload

Project Member Reported by jashur@chromium.org, May 2 2017

Issue description

Everything checks out correctly:

jashur@jashur:~/lab/chromeos-admin$ sudo python utils/presubmit_hooks/validate_dhcpd_conf.py
dhcpd.conf is verified successfully for chromeos-ddns1.mtv.corp.google.com-failover.conf.
dhcpd.conf is verified successfully for chromeos-ddns2.cbf.corp.google.com-failover.conf.

But I'm receiving the following unexpected output error when running the Hook script:

jashur@jashur:~/lab/chromeos-admin/puppet/modules/lab/files/dhcp-server$ repo upload .
Run hook scripts from https://chrome-internal.googlesource.com/chromeos/manifest-internal.git (yes/always/NO)? yes

Errors in PROJECT *chromeos/chromeos-admin*!
    COMMIT 9f9fa3a4:
        Description:
            >Added mac addresses for APs
            >
            >BUG=b:37852004
            >TEST=presubmit passes
            >
            >Change-Id: I4a6109e58a69035e0ddd7121355f912ff9bbe0be
            >
            >
        Errors:
            * Hook script "./bin/run_tests" failed with code 1:
                Could not find a version that satisfies the requirement backports.tempfile==1.0rc1 (from -r /tmp/tmp6HE_mn (line 3)) (from versions: )
              No matching distribution found for backports.tempfile==1.0rc1 (from -r /tmp/tmp6HE_mn (line 3))
              Traceback (most recent call last):
                File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
                  "__main__", fname, 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/jashur/lab/infra_virtualenv/cros_venv/scripts/create_venv.py", line 46, in <module>
                  main()
                File "/usr/local/google/home/jashur/lab/infra_virtualenv/cros_venv/scripts/create_venv.py", line 35, in main
                  print(venv.ensure())
                File "/usr/local/google/home/jashur/lab/infra_virtualenv/cros_venv/venvlib.py", line 174, in ensure
                  self._check_or_create()
                File "/usr/local/google/home/jashur/lab/infra_virtualenv/cros_venv/venvlib.py", line 182, in _check_or_create
                  self._create()
                File "/usr/local/google/home/jashur/lab/infra_virtualenv/cros_venv/venvlib.py", line 194, in _create
                  logfile=logfile)
                File "/usr/local/google/home/jashur/lab/infra_virtualenv/cros_venv/venvlib.py", line 288, in _install_reqs_file
                  _log_check_call(command, logfile=logfile)
                File "/usr/local/google/home/jashur/lab/infra_virtualenv/cros_venv/venvlib.py", line 303, in wrapped_command
                  call_func(args, stdout=logfile, **kwargs)
                File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
                  raise CalledProcessError(retcode, cmd)
              subprocess.CalledProcessError: Command '[u'/usr/local/google/home/jashur/.cache/cros_venv/venv-2.7.6-f8ec2b88f46eb94bfc79716719c653a1/bin/python', u'-m', u'pip', u'install', u'--no-index', u'-f', u'file:///usr/local/google/home/jashur/lab/infra_virtualenv/pip_packages', u'-r', '/tmp/tmp6HE_mn']' returned non-zero exit status 1
              

Preupload failed due to errors in project(s). HINTS:
- To disable some source style checks, and for other hints, see <checkout_dir>/src/repohooks/README
- To upload only current project, run 'repo upload .'
 
Cc: jashur@chromium.org
Owner: ayatane@chromium.org
Summary: virtualenv failure during repo upload (was: Problem with CL Changes)
My guess: You did "repo sync ." at some point to only sync the repo you're working on, not the entire tree, and now you have a stale copy of the virtualenv code. Do `repo sync` first and try again.
Components: Infra>Client>ChromeOS
Run repo sync on ~/lab/infra_virtualenv, Prathmesh added the new backports package
Status: Verified (was: Untriaged)
Resolved. Thanks!

Joe

Sign in to add a comment