From 31f05fe1d2bff4a90d612fede9fe272b37cf98d4 Mon Sep 17 00:00:00 2001 From: Olli Huotari Date: Sat, 27 Oct 2018 01:02:24 +0300 Subject: [PATCH 1/2] Update buildOpenCV.sh Make script work even if there is python 3 by default (python 2 can manage print with parenthesis, python 3 cant without parenthesis) --- buildOpenCV.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildOpenCV.sh b/buildOpenCV.sh index 5236422..8c8853b 100755 --- a/buildOpenCV.sh +++ b/buildOpenCV.sh @@ -194,7 +194,7 @@ else fi # check installation -IMPORT_CHECK="$(python -c "import cv2 ; print cv2.__version__")" +IMPORT_CHECK="$(python -c "import cv2 ; print(cv2.__version__)")" if [[ $IMPORT_CHECK != *$OPENCV_VERSION* ]]; then echo "There was an error loading OpenCV in the Python sanity test." echo "The loaded version does not match the version built here." From 700a189ad9c514e44b012638825c5490578df486 Mon Sep 17 00:00:00 2001 From: Olli Huotari Date: Sat, 27 Oct 2018 01:03:59 +0300 Subject: [PATCH 2/2] Update buildAndPackageOpenCV.sh Make script work even if there is python 3 by default (python 2 can manage print with parenthesis, python 3 cant without parenthesis) --- buildAndPackageOpenCV.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildAndPackageOpenCV.sh b/buildAndPackageOpenCV.sh index f2a0d9a..dc24f23 100755 --- a/buildAndPackageOpenCV.sh +++ b/buildAndPackageOpenCV.sh @@ -220,7 +220,7 @@ fi # check installation -IMPORT_CHECK="$(python -c "import cv2 ; print cv2.__version__")" +IMPORT_CHECK="$(python -c "import cv2 ; print(cv2.__version__)")" if [[ $IMPORT_CHECK != *$OPENCV_VERSION* ]]; then echo "There was an error loading OpenCV in the Python sanity test." echo "The loaded version does not match the version built here."