Cannot build CEF 3626 branch on Windows 10

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Cannot build CEF 3626 branch on Windows 10

Postby denis » Wed Feb 06, 2019 7:51 am

Hello!

I am currently trying to build CEF 3626 using the automate-git.py script. I am however stuck because of the following error, which occurs during the hooks execution phase:

Code: Select all
0> Failed to fetch file gs://chromium-gn/e20768d93a6b4400de0d03bb8ceb46facdbe3883 for src/buildtools/win/gn.exe, skipping. [Err: [E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] original error: open D:\usr\bin\python2.7: The system cannot find the path specified.

[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] goroutine 1:
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #0 go.chromium.org/luci/vpython/venv/config.go:348 - venv.hashPath()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]   reason: failed to open interpreter
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #1 go.chromium.org/luci/vpython/venv/config.go:338 - venv.fillRuntime()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #2 go.chromium.org/luci/vpython/venv/config.go:194 - venv.(*Config).makeEnv()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #3 go.chromium.org/luci/vpython/venv/venv.go:150 - venv.With()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]   reason: failed to initialize empty probe environment
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #4 go.chromium.org/luci/vpython/run.go:62 - vpython.Run()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #5 go.chromium.org/luci/vpython/application/application.go:318 - application.(*application).mainImpl()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #6 go.chromium.org/luci/vpython/application/application.go:402 - application.(*Config).Main.func1()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #7 go.chromium.org/luci/vpython/application/support.go:46 - application.run()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #8 go.chromium.org/luci/vpython/application/application.go:401 - application.(*Config).Main()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #9 vpython/main.go:93 - main.mainImpl()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #10 vpython/main.go:99 - main.main()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #11 runtime/proc.go:201 - runtime.main()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #12 runtime/asm_amd64.s:1333 - runtime.goexit()
]

Downloading 1 files took 4.634000 second(s)

Failed to fetch file gs://chromium-gn/e20768d93a6b4400de0d03bb8ceb46facdbe3883 for src/buildtools/win/gn.exe. [Err: [E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] original error: open D:\usr\bin\python2.7: The system cannot find the path specified.

[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] goroutine 1:
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #0 go.chromium.org/luci/vpython/venv/config.go:348 - venv.hashPath()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]   reason: failed to open interpreter
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #1 go.chromium.org/luci/vpython/venv/config.go:338 - venv.fillRuntime()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #2 go.chromium.org/luci/vpython/venv/config.go:194 - venv.(*Config).makeEnv()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #3 go.chromium.org/luci/vpython/venv/venv.go:150 - venv.With()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]   reason: failed to initialize empty probe environment
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241]
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #4 go.chromium.org/luci/vpython/run.go:62 - vpython.Run()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #5 go.chromium.org/luci/vpython/application/application.go:318 - application.(*application).mainImpl()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #6 go.chromium.org/luci/vpython/application/application.go:402 - application.(*Config).Main.func1()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #7 go.chromium.org/luci/vpython/application/support.go:46 - application.run()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #8 go.chromium.org/luci/vpython/application/application.go:401 - application.(*Config).Main()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #9 vpython/main.go:93 - main.mainImpl()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #10 vpython/main.go:99 - main.main()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #11 runtime/proc.go:201 - runtime.main()
[E2019-02-06T11:51:56.117046+01:00 15736 0 annotate.go:241] #12 runtime/asm_amd64.s:1333 - runtime.goexit()
]


Does somebody know what might be causing this issue, how I can diagnose it, and how to fix it? My system does not have a "D:\usr\bin\python2.7" path, and it is unclear to me where this path comes from (I would expect it would invoke the bundled python version).
I am using windows 10 (1703) with VS2017 (15.9.2) for building.

Thank you in advance!
denis
Newbie
 
Posts: 5
Joined: Wed Sep 16, 2015 7:14 am

Re: Cannot build CEF 3626 branch on Windows 10

Postby ndesktop » Wed Feb 06, 2019 8:23 am

automate-git.py should have been launched with a 2.7 python installed on system.
Check in the command prompt you are using if there is a python in SET PATH.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Cannot build CEF 3626 branch on Windows 10

Postby magreenblatt » Wed Feb 06, 2019 3:40 pm

You can likely fix the problem by setting your PATH to just the Python version bundled with depot_tools and the Windows system32 directory (for some DLLs that Chromium wants to copy). For example:

Code: Select all
set PATH=C:\code\depot_tools\win_tools-2_7_6_bin\python\bin;C:\Windows\system32


You can also add "C:\code\depot_tools\win_tools-2_7_6_bin\git\usr\bin" if it complains a bit later about the "patch" tool missing.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Cannot build CEF 3626 branch on Windows 10

Postby denis » Thu Feb 07, 2019 6:42 am

Thank you Marshall, your tip did indeed work. I additionally had to add the depot_tool root directory to the path however. I am wondering if the automate-git.py script should take care of setting these variables (it knows after all where it downloaded them ;) ).
@ndesktop: Before modifying the path variable, I also tried to boostrap the build process by running automate-git.py with a freshly installed python 2.7.15, whose path was the first thing in my PATH environment variable. That did not however solve the issue.
denis
Newbie
 
Posts: 5
Joined: Wed Sep 16, 2015 7:14 am

Re: Cannot build CEF 3626 branch on Windows 10

Postby ndesktop » Thu Feb 07, 2019 6:57 am

Strange. I'm doing automate-git.py builds for all branches and they all worked.
I don't have python in PATH, but rather I'm using the full python path I have installed:
Code: Select all
C:\cef>C:\bin\python\x64\27\python C:\cef\automate-git.py --download-dir=C:\cef\3538 --branch=3538 --no-debug-build --client-distrib --sandbox-distrib

It's a 2.7.9 x64:
Code: Select all
C:\cef>C:\bin\python\x64\27\python -V
Python 2.7.9

C:\cef>C:\bin\python\x64\27\python
Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Cannot build CEF 3626 branch on Windows 10

Postby magreenblatt » Thu Feb 07, 2019 10:46 am

It may be possible to fix this by setting the PATH in automate-git.py as you suggest (though discovering the python/git paths under depot_tools may prove somewhat tricky). I may need your help to test the fix as the problem does not reproduce on my system.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Cannot build CEF 3626 branch on Windows 10

Postby magreenblatt » Thu Feb 07, 2019 1:09 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Cannot build CEF 3626 branch on Windows 10

Postby denis » Fri Feb 15, 2019 9:47 am

After some more experimentation with CEF I found out that setting the path to the depo tools only worked if I did not add back my original path at the end. I.e.
Code: Select all
set PATH=<depo_tools_paths>;%PATH%
did not work while
Code: Select all
set PATH=<depo_tools_paths>
did work. Could it be that vpython tries to use env in order to find python (which is available in my case because I have a mingw environment in the path)?
denis
Newbie
 
Posts: 5
Joined: Wed Sep 16, 2015 7:14 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 49 guests