GoogleCloudPlatform / GoogleCloudPlatform/training-data-analyst
Step 3.1: Error
- Dominant language
- Jupyter Notebook
- Stars
- 8.6k
- Forks
- 6.1k
- Avg merge
- 4h 44m
- Merged PRs (30d)
- 2
Description
%%bash
if ! gsutil ls | grep -q gs://${BUCKET_NAME}; then
gsutil mb -l ${REGION} gs://${BUCKET_NAME}
fi
gsutil cp -r data gs://$BUCKET_NAME/data
////////////////////////////////////////////////////////////////////
Creating gs://YOUR_PROJECT_NAME-aiplatform/...
BadRequestException: 400 Invalid bucket name: 'YOUR_PROJECT_NAME-aiplatform'
BucketNotFoundException: 404 gs://YOUR_PROJECT_NAME-aiplatform bucket does not exist.
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
in
----> 1 get_ipython().run_cell_magic('bash', '', '\nif ! gsutil ls | grep -q gs://${BUCKET_NAME}; then\n gsutil mb -l ${REGION} gs://${BUCKET_NAME}\nfi\ngsutil cp -r data gs://$BUCKET_NAME/data\n')
/opt/conda/lib/python3.7/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2401 with self.builtin_trap:
2402 args = (magic_arg_s, cell)
-> 2403 result = fn(*args, **kwargs)
2404 return result
2405
/opt/conda/lib/python3.7/site-packages/IPython/core/magics/script.py in named_script_magic(line, cell)
140 else:
141 line = script
--> 142 return self.shebang(line, cell)
143
144 # write a basic docstring:
/opt/conda/lib/python3.7/site-packages/decorator.py in fun(*args, **kw)
230 if not kwsyntax:
231 args, kw = fix(args, kw, sig)
--> 232 return caller(func, *(extras + args), **kw)
233 fun.__name__ = func.__name__
234 fun.__doc__ = func.__doc__
/opt/conda/lib/python3.7/site-packages/IPython/core/magic.py in (f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
/opt/conda/lib/python3.7/site-packages/IPython/core/magics/script.py in shebang(self, line, cell)
243 sys.stderr.flush()
244 if args.raise_error and p.returncode!=0:
--> 245 raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
246
247 def _run_script(self, p, cell, to_close):
CalledProcessError: Command 'b'\nif ! gsutil ls | grep -q gs://${BUCKET_NAME}; then\n gsutil mb -l ${REGION} gs://${BUCKET_NAME}\nfi\ngsutil cp -r data gs://$BUCKET_NAME/data\n'' returned non-zero exit status 1.
Contributor guide
Assessment
This issue has not been assessed yet.