data-describe / awesome-data-science-models

A few end to end examples that use data-describe
Apache License 2.0
16 stars 17 forks source link

AI Platform prediction hosting fails #42

Open dvdjlaw opened 3 years ago

dvdjlaw commented 3 years ago

(project name has been redacted)

Using endpoint [
https://us-central1-ml.googleapis.com/
]
Listed 0 items.
Using endpoint [
https://ml.googleapis.com/
]
ERROR: (gcloud.beta.ai-platform.models.create) Resource in projects [...] is the subject of a conflict: Field: model.name Error: A model with the same name already exists.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: A model with the same name already exists.
    field: model.name
Traceback (most recent call last):
  File "host_xgboost.py", line 46, in <module>
    run()
  File "host_xgboost.py", line 35, in run
    subprocess.check_call([shutil.which('gcloud'),'beta', 'ai-platform','models','create',MODEL_NAME,'--regions','us-central1', "--enable-logging", "--enable-console-logging"])
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/gcloud', 'beta', 'ai-platform', 'models', 'create', 'xgboost_FT', '--regions', 'us-central1', '--enable-logging', '--enable-console-logging']' returned non-zero exit status 1