can't install depot_tools on windows

2,620 views
Skip to first unread message

Daniel Klug

unread,
Aug 13, 2014, 11:48:51 AM8/13/14
to chromi...@chromium.org
Hi,

I followed the instructions on this site: http://www.chromium.org/developers/how-tos/install-depot-tools

I downloaded the zip file extracted it to C:\depot_tools and added it to the end of my path env variable.
After that I opened an administrator cmd and run gclient with the following output:

C:\>gclient
Installing python 2.7.6...
Installing git 1.9.0.chromium.5 (avg 1-2 min download) ...
""c:\depot_tools\git.bat"" is not recognized as an internal or external command
""c:\depot_tools\git.bat"" is not recognized as an internal or external command

I checked the folder and git.bat was there so I started gclient again with the following output:

C:\>gclient
Installing git 1.9.0.chromium.6 (avg 1-2 min download) ...
The system cannot find the path specified.
The system cannot find the path specified.

It never installs win_toolchain or anything and with further calls of gclient nothing happens.

Microsoft Visual C++ 2008 Redistributable Package is installed.

Could someone give me a hint whats wrong? 

Thanks
Daniel

Thiago Farina

unread,
Aug 13, 2014, 11:54:59 AM8/13/14
to poke...@gmail.com, Chromium-dev
On Wed, Aug 13, 2014 at 12:48 PM, Daniel Klug <poke...@gmail.com> wrote:
Hi,

I followed the instructions on this site: http://www.chromium.org/developers/how-tos/install-depot-tools

I downloaded the zip file extracted it to C:\depot_tools and added it to the end of my path env variable.
After that I opened an administrator cmd and run gclient with the following output:

C:\>gclient
Installing python 2.7.6...
Installing git 1.9.0.chromium.5 (avg 1-2 min download) ...
""c:\depot_tools\git.bat"" is not recognized as an internal or external command
""c:\depot_tools\git.bat"" is not recognized as an internal or external command

I checked the folder and git.bat was there so I started gclient again with the following output:

C:\>gclient
Installing git 1.9.0.chromium.6 (avg 1-2 min download) ...
The system cannot find the path specified.
The system cannot find the path specified.

Could you paste here your PATH variable?

--
Thiago Farina

Daniel Klug

unread,
Aug 13, 2014, 11:58:09 AM8/13/14
to chromi...@chromium.org, poke...@gmail.com
here is my Path var:

Path=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Java\jdk1.7.0_09\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;c:\depot_tools;C:\Users\Daniel\AppData\Roaming\npm\

Sasha Bermeister

unread,
Aug 17, 2014, 11:23:16 PM8/17/14
to poke...@gmail.com, chromium-dev
You don't seem to have an installed version of Python on your PATH. I think Python is actually required by gclient, even though it installs its own copy.

Try downloading Python, installing it, and then adding it to your path before trying again. I filed a bug about this a while ago (crbug.com/395488) but I don't think it's a straightforward fix.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Daniel Klug

unread,
Aug 19, 2014, 4:10:59 AM8/19/14
to chromi...@chromium.org, poke...@gmail.com
I've installed python 2.7 and tried again with the same result.

My new path var = Path=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Java\jdk1.7.0_09\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;c:\Python27;c:\depot_tools;C:\Users\Daniel\AppData\Roaming\npm\

So python was not the problem.

Primiano Tucci

unread,
Aug 19, 2014, 5:10:59 AM8/19/14
to poke...@gmail.com, Chromium-dev
Not sure if that is the root cause, but might be a problem: you have C:\Program Files\TortoiseGit\bin in your path before depot_tools, which might end up using a wrong version of git.

Can you try to cleanup your path (just in your shell, not in system settings), and
set PATH="C:\Windows\System32;c:\depot_tools;c:\Python27"
before you run gclient and see if it helps?

Daniel Klug

unread,
Aug 19, 2014, 6:56:54 AM8/19/14
to chromi...@chromium.org, poke...@gmail.com
same result with this path var:
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Python27;c:\depot_tools;

Liu Guang @ UCBrowser

unread,
Aug 19, 2014, 10:39:05 AM8/19/14
to chromi...@chromium.org
Try download link https://commondatastorage.googleapis.com/chrome-infra/git-1.9.0.chromium.6_bin.zip directly。
If download success, maybe you can unzip to depot_tools, and run gclient again. 

在 2014年8月13日星期三UTC+8下午11时48分51秒,Daniel Klug写道:

Primiano Tucci

unread,
Aug 19, 2014, 3:19:15 PM8/19/14
to lg8...@gmail.com, Chromium-dev
Ok, I tested on my personal PC and I see exactly the same:


On the other side, regardless the errors, after the 2nd invocation seems to work fine.

> I think Python is actually required by gclient, even though it installs its own copy.
I really don't think so. I've just tested it, forcing the PATH to contain only win32 and depot_tools and it works fine (% the aforementioned err messages).



--

MR

unread,
Nov 18, 2014, 5:36:03 AM11/18/14
to chromi...@chromium.org, lg8...@gmail.com
Any update on this issue? I am also running into the same issue & don't seem to find a way out. Can anyone please throw any pointer?

Thanks
Reply all
Reply to author
Forward
0 new messages