GoogleCloudPlatform / training-data-analyst

Labs and demos for courses for GCP Training (http://cloud.google.com/training).
Apache License 2.0
7.92k stars 5.88k forks source link

issue with running training-data-analyst > courses > machine_learning > deepdive2 > computer_vision_fun > labs >classifying_images_with_pre-built_tf_container_on_vertex_ai.ipynb on google cloud #2655

Closed Roy027 closed 3 months ago

Roy027 commented 3 months ago
CommandException: One or more URLs matched no objects.
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
Cell In[12], line 1
----> 1 get_ipython().run_cell_magic('bash', '', 'SAVEDMODEL_DIR=${JOB_DIR}keras_export\necho $SAVEDMODEL_DIR\ngsutil ls $SAVEDMODEL_DIR\n')

File /opt/conda/lib/python3.9/site-packages/IPython/core/interactiveshell.py:2517, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
   2515 with self.builtin_trap:
   2516     args = (magic_arg_s, cell)
-> 2517     result = fn(*args, **kwargs)
   2519 # The code below prevents the output from being displayed
   2520 # when using magics with decorator @output_can_be_silenced
   2521 # when the last Python token in the expression is a ';'.
   2522 if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False):

File /opt/conda/lib/python3.9/site-packages/IPython/core/magics/script.py:154, in ScriptMagics._make_script_magic.<locals>.named_script_magic(line, cell)
    152 else:
    153     line = script
--> 154 return self.shebang(line, cell)

File /opt/conda/lib/python3.9/site-packages/IPython/core/magics/script.py:314, in ScriptMagics.shebang(self, line, cell)
    309 if args.raise_error and p.returncode != 0:
    310     # If we get here and p.returncode is still None, we must have
    311     # killed it but not yet seen its return code. We don't wait for it,
    312     # in case it's stuck in uninterruptible sleep. -9 = SIGKILL
    313     rc = p.returncode or -9
--> 314     raise CalledProcessError(rc, cell)

CalledProcessError: Command 'b'SAVEDMODEL_DIR=${JOB_DIR}keras_export\necho $SAVEDMODEL_DIR\ngsutil ls $SAVEDMODEL_DIR\n'' returned non-zero exit status 1.