I am building CEF from source on windows using automated method for release branch 5938(117.0.5938.150) using below command:
- Code: Select all
python ..\automate\automate-git.py --no-depot-tools-update --download-dir=%CHROMIUM_GIT_DIR% --depot-tools-dir=%DEPOT_TOOLS_DIR% --force-clean --no-distrib --no-build --branch=5938 --chromium-checkout=refs/tags/117.0.5938.150 --verbose-build --checkout=946dde2e17880748cc0dbbb516a86c359eda3bc7 --with-pgo-profiles
But the compilation is failing with below error:
application.go:144] fatal error: failed to build venv: failed to build package : cipkg.Derivation{Name:"python_venv", Platform:"os=windows,arch=amd64", Builder:"C:.vpython-root\\store\\cpython-e6tenrlsesftvg6k08ajgkk7b4\\contents\\bin\\python3.exe", Args:[]string{"-c", "# Copyright 2022 The Chromium Authors\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\nimport glob\nimport os\nimport subprocess\nimport sys\n\nISOLATION_FLAG = '-I' if sys.version_info[0] > 2 else '-sSE'\n\n# Create virtual environment in ${out} directory\nvirtualenv = glob.glob(\n os.path.join(r'C:.vpython-root\\store\\virtualenv-qb7nsruah38d8pbovm856nd258\\contents', '*', 'virtualenv.py*'))[0]\nsubprocess.check_call([\n sys.executable, ISOLATION_FLAG, virtualenv,\n '--no-download', '--always-copy', os.environ['out']\n])\n\n# Install wheels to virtual environment\nif 'wheels' in os.environ:\n pip = glob.glob(os.path.join(os.environ['out'], '*', 'pip*'))[0]\n subprocess.check_call([\n pip,\n 'install',\n '--isolated',\n '--compile',\n '--no-index',\n '--find-links',\n os.path.join(os.environ['wheels'], 'wheels'),\n '--requirement',\n os.path.join(os.environ['wheels'], 'requirements.txt'),\n ])\n\n# Generate all .pyc in the output directory. This prevent generating .pyc on the\n# fly, which modifies derivation output after the build.\n# It may fail because lack of permission. Ignore the error since it won't affect\n# correctness if .pyc can't be written to the directory anyway.\ntry:\n subprocess.check_call([\n sys.executable, ISOLATION_FLAG, '-m', 'compileall', os.environ['out']\n ])\nexcept subprocess.CalledProcessError as e:\n print('complieall failed and ignored: {}'.format(e.returncode))\n"}, Env:[]string{"depsHostTarget=C:.vpython-root\\store\\cpython-e6tenrlsesftvg6k08ajgkk7b4\\contents;C:.vpython-root\\store\\virtualenv-qb7nsruah38d8pbovm856nd258\\contents"}, Inputs:[]string{"cpython-e6tenrlsesftvg6k08ajgkk7b4", "virtualenv-qb7nsruah38d8pbovm856nd258"}}: failed to build derivation: fork/exec C:.vpython-root\store\cpython-e6tenrlsesftvg6k08ajgkk7b4\contents\bin\python3.exe: The system cannot find the path specified.
followed by error for command ""gclient sync --nohooks --with_branch_heads --jobs 16":
subprocess.CalledProcessError: Command '['gclient', 'sync', '--nohooks', '--with_branch_heads', '--jobs', '16']' returned non-zero exit status 1
Can someone help me with the fix for this issue?