From 4abb8b9ebf17494a27adc755730858a7e6382b89 Mon Sep 17 00:00:00 2001 From: vivekcek Date: Wed, 30 Nov 2022 13:42:03 +0530 Subject: [PATCH] python command not working in ubuntu 20.04 for apidocs and marvin (#6889) Co-authored-by: Vivek Ps --- tools/apidoc/build-apidoc.sh | 4 ++-- tools/marvin/mvn-setup.py | 2 +- tools/marvin/pom.xml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/apidoc/build-apidoc.sh b/tools/apidoc/build-apidoc.sh index 33123b31f2b..21cceb0a282 100755 --- a/tools/apidoc/build-apidoc.sh +++ b/tools/apidoc/build-apidoc.sh @@ -77,10 +77,10 @@ set -e gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py" for file in `find . -type f`; do echo "Parse file $file"; - python $gen_toc_file $file; + python3 $gen_toc_file $file; done else - python "$thisdir/gen_toc.py" $(find . -type f) + python3 "$thisdir/gen_toc.py" $(find . -type f) fi cat generatetoc_include.xsl >> generatetoc.xsl diff --git a/tools/marvin/mvn-setup.py b/tools/marvin/mvn-setup.py index 5aa251b9077..a6b17e56ed0 100755 --- a/tools/marvin/mvn-setup.py +++ b/tools/marvin/mvn-setup.py @@ -42,7 +42,7 @@ def replaceVersion(fname, version): def runSetupScript(args): """Invoke setup.py with the provided arguments""" - cmd = ['python', setupScript] + args + cmd = ['python3', setupScript] + args exitCode = subprocess.call(cmd) return exitCode diff --git a/tools/marvin/pom.xml b/tools/marvin/pom.xml index 55c7554946e..2d4c71e00c0 100644 --- a/tools/marvin/pom.xml +++ b/tools/marvin/pom.xml @@ -86,7 +86,7 @@ ${exec.workingdir} - python + python3 mvn-setup.py ${project.version} @@ -140,7 +140,7 @@ ${exec.workingdir} - python + python3 mvn-setup.py ${project.version} @@ -209,7 +209,7 @@ ${basedir}/marvin - python + python3 deployAndRun.py -c