Last active
March 30, 2021 14:31
-
-
Save adujardin/13e0d895dce61f731894cb70d7b154cd to your computer and use it in GitHub Desktop.
Small script to check if the python wrapper of the ZED SDK is available for all config (lot of hardcoded stuff)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZED_SDK_VERSION="3.5" | |
URL_base="https://download.stereolabs.com/zedsdk/${ZED_SDK_VERSION}/" | |
URL_BUCKET="https://stereolabs.sfo2.digitaloceanspaces.com/zedsdk" | |
#URL_BUCKET="https://stereolabs.sfo2.cdn.digitaloceanspaces.com/zedsdk" | |
check_HTTP_err_code() { | |
http_err=$(curl -I -s -o /dev/null -w "%{http_code}" $1) | |
if [ "$http_err" != "200" ] && [ "$http_err" != "302" ]; then | |
echo "ERROR: $http_err -> $1" | |
fi | |
} | |
echo "Testing in progress..." | |
# Redirections | |
check_HTTP_err_code ${URL_base}win/cu100/py36 | |
check_HTTP_err_code ${URL_base}win/cu100/py37 | |
check_HTTP_err_code ${URL_base}win/cu100/py38 | |
check_HTTP_err_code ${URL_base}win/cu100/py39 | |
check_HTTP_err_code ${URL_base}win/cu102/py36 | |
check_HTTP_err_code ${URL_base}win/cu102/py37 | |
check_HTTP_err_code ${URL_base}win/cu102/py38 | |
check_HTTP_err_code ${URL_base}win/cu102/py39 | |
check_HTTP_err_code ${URL_base}win/cu110/py36 | |
check_HTTP_err_code ${URL_base}win/cu110/py37 | |
check_HTTP_err_code ${URL_base}win/cu110/py38 | |
check_HTTP_err_code ${URL_base}win/cu110/py39 | |
check_HTTP_err_code ${URL_base}win/cu111/py36 | |
check_HTTP_err_code ${URL_base}win/cu111/py37 | |
check_HTTP_err_code ${URL_base}win/cu111/py38 | |
check_HTTP_err_code ${URL_base}win/cu111/py39 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu100/py36 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu100/py37 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu100/py38 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu102/py36 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu102/py37 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu102/py38 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu110/py36 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu110/py37 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu110/py38 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu111/py36 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu111/py37 | |
check_HTTP_err_code ${URL_base}ubuntu16/cu111/py38 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu100/py36 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu100/py37 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu100/py38 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu102/py36 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu102/py37 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu102/py38 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu110/py36 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu110/py37 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu110/py38 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu111/py36 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu111/py37 | |
check_HTTP_err_code ${URL_base}ubuntu18/cu111/py38 | |
check_HTTP_err_code ${URL_base}ubuntu20/cu110/py36 | |
check_HTTP_err_code ${URL_base}ubuntu20/cu110/py37 | |
check_HTTP_err_code ${URL_base}ubuntu20/cu110/py38 | |
check_HTTP_err_code ${URL_base}ubuntu20/cu111/py36 | |
check_HTTP_err_code ${URL_base}ubuntu20/cu111/py37 | |
check_HTTP_err_code ${URL_base}ubuntu20/cu111/py38 | |
check_HTTP_err_code ${URL_base}jetsons/jp43/py36 | |
check_HTTP_err_code ${URL_base}jetsons/jp43/py37 | |
check_HTTP_err_code ${URL_base}jetsons/jp43/py38 | |
check_HTTP_err_code ${URL_base}jetsons/jp43/py39 | |
check_HTTP_err_code ${URL_base}jetsons/jp44/py36 | |
check_HTTP_err_code ${URL_base}jetsons/jp44/py37 | |
check_HTTP_err_code ${URL_base}jetsons/jp44/py38 | |
check_HTTP_err_code ${URL_base}jetsons/jp44/py39 | |
check_HTTP_err_code ${URL_base}jetsons/jp45/py36 | |
check_HTTP_err_code ${URL_base}jetsons/jp45/py37 | |
check_HTTP_err_code ${URL_base}jetsons/jp45/py38 | |
check_HTTP_err_code ${URL_base}jetsons/jp45/py39 | |
# Actual URL | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/win/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/win/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/win/pyzed-${ZED_SDK_VERSION}-cp38-cp38-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/win/pyzed-${ZED_SDK_VERSION}-cp39-cp39-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/win/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/win/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/win/pyzed-${ZED_SDK_VERSION}-cp38-cp38-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/win/pyzed-${ZED_SDK_VERSION}-cp39-cp39-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/win/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/win/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/win/pyzed-${ZED_SDK_VERSION}-cp38-cp38-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/win/pyzed-${ZED_SDK_VERSION}-cp39-cp39-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/win/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/win/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/win/pyzed-${ZED_SDK_VERSION}-cp38-cp38-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/win/pyzed-${ZED_SDK_VERSION}-cp39-cp39-win_amd64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu16/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu100/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu102/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu18/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu20/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu20/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu110/ubuntu20/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu20/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu20/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/cu111/ubuntu20/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_x86_64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp43/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp43/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp43/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp43/pyzed-${ZED_SDK_VERSION}-cp39-cp39-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp44/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp44/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp44/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp44/pyzed-${ZED_SDK_VERSION}-cp39-cp39-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp45/pyzed-${ZED_SDK_VERSION}-cp36-cp36m-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp45/pyzed-${ZED_SDK_VERSION}-cp37-cp37m-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp45/pyzed-${ZED_SDK_VERSION}-cp38-cp38-linux_aarch64.whl | |
check_HTTP_err_code ${URL_BUCKET}/${ZED_SDK_VERSION}/whl/jp45/pyzed-${ZED_SDK_VERSION}-cp39-cp39-linux_aarch64.whl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment