Build Error for branch 4389 on Windows

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.

Build Error for branch 4389 on Windows

Postby Mireille0426 » Wed Feb 17, 2021 1:26 pm

Hi, I am building from 4389 on Windows and I ran into the following error when I run create.bat:
TypeError: __init__() got an unexpected keyword argument 'always_show_header'


I am following wiki https://bitbucket.org/chromiumembedded/ ... dows-setup for my setup
1. I downloaded from https://storage.googleapis.com/chrome-i ... _tools.zip and ran "update_depot_tools.bat"
2. I downloaded from https://bitbucket.org/chromiumembedded/ ... ate-git.py, created "update.bat" with config below and ran.
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set CEF_USE_GN=1

set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome enable_widevine=true
set GN_ARGUMENTS=--ide=vs2017 --sln=cef
python ..\automate\automate-git.py --download-dir=C:\code\chromium_git --depot-tools-dir=C:\code\depot_tools --no-distrib --no-build --force-clean --branch=4389 --x64-build

3. I created "create.bat" with following config and ran
set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome enable_widevine=true
set GYP_DEFINES=buildtype=Official
set GYP_MSVS_VERSION=2017
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
call cef_create_projects.bat


and then I ran into the error
Generating CEF version header file...
Traceback (most recent call last):
File "tools\gclient_hook.py", line 33, in <module>
RunAction(cef_dir, cmd)
File "c:\code\chromium_git\chromium\src\cef\tools\gclient_util.py", line 36, in RunAction
command, cwd=dir, always_show_header=True, print_stdout=True)
File "C:\src\depot_tools\gclient_utils.py", line 565, in CheckCallAndFilter
**kwargs)
File "C:\src\depot_tools\subprocess2.py", line 216, in __init__
super(Popen, self).__init__(args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'always_show_header'


I makes me feel there is some version mismatches, but I tried 4389, 4324 and 4280, all failed with same reason.
Could it be my depot tools too new for the 4389?
If so, how can I grab the correct version for build?

Thanks for any input :)
Mireille0426
Newbie
 
Posts: 6
Joined: Tue Jul 09, 2019 8:53 pm

Re: Build Error for branch 4389 on Windows

Postby magreenblatt » Wed Feb 17, 2021 1:55 pm

What python version is it using? Did you add depot_tools to your PATH (step 4)?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build Error for branch 4389 on Windows

Postby Mireille0426 » Wed Feb 17, 2021 2:05 pm

magreenblatt wrote:What python version is it using? Did you add depot_tools to your PATH (step 4)?


python version is 3.6.3
and yes, depot_tools is part of my Path
Attachments
env.png
env.png (15.43 KiB) Viewed 2380 times
python_version.png
python_version.png (1.86 KiB) Viewed 2380 times
Mireille0426
Newbie
 
Posts: 6
Joined: Tue Jul 09, 2019 8:53 pm

Re: Build Error for branch 4389 on Windows

Postby magreenblatt » Wed Feb 17, 2021 3:15 pm

Put depot_tools at the beginning of your PATH. The python version should be 2.7.17.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 91 guests