Wednesday 30 December 2020

ERROR: (gcloud.beta.ai-platform.versions.create) argument VERSION: Must be specified

When deploying a model to GCP Predict using Custom Prediction Routine, I'm getting this error:

ERROR: (gcloud.beta.ai-platform.versions.create) argument VERSION: Must be specified.

However, I do have the version specified like this:

!gcloud beta ai-platform versions create $VERSION_NAME_ \
    --model=$MODEL_NAME \
    --runtime-version=1.15 \
    --python-version=3.7 \
    --config=$CONFIG \
    --origin=gs://$BUCKET_NAME/$PROJECT_NAME/$VERSION_NAME/model/ \
    --package-uris=gs://$BUCKET_NAME/$PROJECT_NAME/$VERSION_NAME/$PACKAGE_NAME \
    --prediction-class predict.Predictor

Also, see image below:

enter image description here

I tried upgrading the sdk to the latest version, but still getting the same error. Version info:

enter image description here



from ERROR: (gcloud.beta.ai-platform.versions.create) argument VERSION: Must be specified

No comments:

Post a Comment