Fixed
Created: Feb 18, 2020
Updated: Feb 24, 2020
Resolved Date: Feb 18, 2020
Found In Version: 10.20.9.0
Fix Version: 10.20.9.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Build & Config
Below erro happened on host which only have python3, and don't have a link python->python3
INFO: All required host tools are available.
Loading index Wind River Developer Layer Index from [http://layers.wrs.com/layerindex/api/]...
Setting distro to "wrlinux"
Setting machine to "intel-x86-64"
Updated project configuration
/usr/bin/env: 'python': No such file or directory
CRITICAL: cmd "['/home/wrlbuild/TASK/setup_test/bin/git-repo/repo', 'init', '--repo-url', 'git://pek-git.wrs.com/git-repo', '--repo-branch', 'wr-10.20-20200212', '--quiet', '-m', 'default.xml', '-u', '/home/wrlbuild/TASK/setup_test', '--no-repo-verify']" returned 127
ERROR: Traceback (most recent call last):
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 1309, in <module>
ERROR:
ERROR: x.main(sys.argv)
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 268, in main
ERROR:
ERROR: self.repo_sync()
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 1115, in repo_sync
ERROR:
ERROR: self.call_repo_init(cmd)
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 1188, in call_repo_init
ERROR:
ERROR: utils_setup.run_cmd(cmd, environment=self.env, log=log_it)
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/utils_setup.py", line 76, in run_cmd
ERROR:
ERROR: raise Exception(msg)
ERROR: Exception
ERROR:
+ rc=1
+ shutdown
+ for func in '"$\{SHUTDOWNFUNCS[@]}"'
DEBUG: Done
DEBUG: Starting
DEBUG: Starting
DEBUG: Running cmd: "['/home/wrlbuild/TASK/setup_test/bin/git-repo/repo', 'init', '--repo-url', 'git://pek-git.wrs.com/git-repo', '--repo-branch', 'wr-10.20-20200212', '-m', 'default.xml', '-u', '/home/wrlbuild/TASK/setup_test', '--no-repo-verify']"
/usr/bin/env: 'python': No such file or directory
CRITICAL: cmd "['/home/wrlbuild/TASK/setup_test/bin/git-repo/repo', 'init', '--repo-url', 'git://pek-git.wrs.com/git-repo', '--repo-branch', 'wr-10.20-20200212', '-m', 'default.xml', '-u', '/home/wrlbuild/TASK/setup_test', '--no-repo-verify']" returned 127
ERROR: Traceback (most recent call last):
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 1309, in <module>
ERROR:
ERROR: x.main(sys.argv)
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 268, in main
ERROR:
ERROR: self.repo_sync()
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 1115, in repo_sync
ERROR:
ERROR: self.call_repo_init(cmd)
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/setup.py", line 1188, in call_repo_init
ERROR:
ERROR: utils_setup.run_cmd(cmd, environment=self.env, log=log_it)
ERROR: File "/home/wrlbuild/TASK/setup_test/wrlinux-x/bin/utils_setup.py", line 76, in run_cmd
ERROR:
ERROR: raise Exception(msg)
ERROR: Exception
ERROR: :
ERROR: /home/wrlbuild/TASK/setup_test/bin/git-repo/repo init --repo-url git://pek-git.wrs.com/git-repo --repo-branch wr-10.20-20200212 -m default.xml -u /home/wrlbuild/TASK/setup_test --no-repo-verify
Prepare host:
1) On Fedora31, it only have python3 by default.
2) Remove python2 on Ubuntu-16.04
git clone --branch master-wr git://pek-git.wrs.com/wrlinux-x
./wrlinux-x/setup.sh --machines intel-x86-64 --dl-layers --accept-eula=yes