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." 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."