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

Issue 680274 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Can't bootstrap depot_tools on Win7 VM

Project Member Reported by scottmg@chromium.org, Jan 11 2017

Issue description

I downloading the depot_tools.zip, extracted it, and then ran `gclient`. I get:

File C:\src\depot_tools\cipd.ps1 cannot be loaded. The file C:\src\depot_tools\
cipd.ps1 is not digitally signed. The script will not execute on the system. Pl
ease see "get-help about_signing" for more details..
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordE
   xception
    + FullyQualifiedErrorId : RuntimeException


Is this new-ish? Are there additional setup steps required on some OSs now?
 
Probably should have added a bit more error, it's trying to get git.

C:\Users\scott>gclient
File C:\src\depot_tools\cipd.ps1 cannot be loaded. The file C:\src\depot_tools\cipd.ps1 is not digitally signed. The script will no
t execute on the system. Please see "get-help about_signing" for more details..
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RuntimeException

Traceback (most recent call last):
  File "c:\src\depot_tools\bootstrap\win\git_bootstrap.py", line 193, in <module>
    sys.exit(main(sys.argv[1:]))
  File "c:\src\depot_tools\bootstrap\win\git_bootstrap.py", line 185, in main
    install_git(args, git_version, git_directory)
  File "c:\src\depot_tools\bootstrap\win\git_bootstrap.py", line 115, in install_git
    '-Directory="%s"' % git_directory.replace('\\', '\\\\'),
  File "c:\src\depot_tools\bootstrap\win\git_bootstrap.py", line 26, in _check_call
    subprocess.check_call(argv, **kwargs)
  File "c:\src\depot_tools\python276_bin\lib\subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "c:\src\depot_tools\python276_bin\lib\subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "c:\src\depot_tools\python276_bin\lib\subprocess.py", line 709, in __init__
    errread, errwrite)
  File "c:\src\depot_tools\python276_bin\lib\subprocess.py", line 957, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Usage: gclient.py <command> [options]

Cc: iannucci@chromium.org
The workaround for now: Open C:\src\depot_tools\cipd.ps1 file properties dialog (in Explorer) and click "Unblock".

We should be fixing this soon...
Project Member

Comment 3 by bugdroid1@chromium.org, Jan 12 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/5ededcb5f2d1dac9b6dd6346a72ca402b82e6670

commit 5ededcb5f2d1dac9b6dd6346a72ca402b82e6670
Author: Robert Iannucci <iannucci@chromium.org>
Date: Thu Jan 12 03:59:08 2017

Clear Zone.Identifier to allow depot_tools.zip bootstrap

BUG= 680274 

Change-Id: I47fd8d7a5380aca49c873006c4f66732b21bee37
Reviewed-on: https://chromium-review.googlesource.com/427323
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>

[modify] https://crrev.com/5ededcb5f2d1dac9b6dd6346a72ca402b82e6670/cipd.bat

Comment 4 by iannu...@google.com, Jan 12 2017

Status: Fixed (was: Unconfirmed)
Ok, this seems to be fixed now (tested new depot_tools.zip on win10). LMK if it's still busticated, but I think it should be good to go.

Sign in to add a comment