Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asset downlaod error #26

Open
seongjin-lim opened this issue Dec 26, 2024 · 1 comment
Open

asset downlaod error #26

seongjin-lim opened this issue Dec 26, 2024 · 1 comment

Comments

@seongjin-lim
Copy link

asset downlaod error

NGC_ORG="nvidia"
NGC_TEAM="isaac"
PACKAGE_NAME="cumotion_object_attachment"
NGC_RESOURCE="cumotion_object_attachment_assets"
NGC_FILENAME="quickstart.tar.gz"
MAJOR_VERSION=3
MINOR_VERSION=2
VERSION_REQ_URL="https://catalog.ngc.nvidia.com/api/resources/versions?orgName=$NGC_ORG&teamName=$NGC_TEAM&name=$NGC_RESOURCE&isPublic=true&pageNumber=0&pageSize=100&sortOrder=CREATED_DATE_DESC"
AVAILABLE_VERSIONS=$(curl -s
-H "Accept: application/json" "$VERSION_REQ_URL")
LATEST_VERSION_ID=$(echo $AVAILABLE_VERSIONS | jq -r "
.recipeVersions[]
| .versionId as $v
| $v | select(test("^\\d+\\.\\d+\\.\\d+$"))
| split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber, patch: .[2]|tonumber}
| select(.major == $MAJOR_VERSION and .minor <= $MINOR_VERSION)
| $v
" | sort -V | tail -n 1
)
if [ -z "$LATEST_VERSION_ID" ]; then
echo "No corresponding version found for Isaac ROS $MAJOR_VERSION.$MINOR_VERfi rm ${NGC_FILENAME}NAME} -C ${ISAAC_ROS_WS}/isaac_ros_assets && \NGC_TEAM/$NG
jq: error (at :1): Cannot index number with string "recipeVersions"
parse error: Invalid numeric literal at line 1, column 8
No corresponding version found for Isaac ROS 3.2
Found versions:
jq: error (at :1): Cannot index number with string "recipeVersions"
parse error: Invalid numeric literal at line 1, column 8

@Alice-ly
Copy link

Alice-ly commented Feb 8, 2025

Hi, I have met this problem as well, and got:

echo $AVAILABLE_VERSIONS
404 Not Found

have you found solutions? Thankyou!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants