aws / aws/amazon-sagemaker-examples

3D-point-cloud-input-data-processing.ipynb failed CI

Open
#2,319 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
11k
Forks
7k
Avg merge
8h 29m
Merged PRs (30d)
8

Description

Link to the notebook:
https://github.com/aws/amazon-sagemaker-examples/blob/master/ground_truth_labeling_jobs/3d_point_cloud_input_data_processing/3D-point-cloud-input-data-processing.ipynb

Error:

---------------------------------------------------------------------------
Exception encountered at "In [4]":
---------------------------------------------------------------------------
ParamValidationError Traceback (most recent call last)
in
4 region = boto3.session.Session().region_name
5 s3 = boto3.client('s3')
----> 6 bucket_region = s3.head_bucket(Bucket=BUCKET)['ResponseMetadata']['HTTPHeaders']['x-amz-bucket-region']
7 assert bucket_region == region, "Your S3 bucket {} and this notebook need to be in the same region.".format(BUCKET)

/opt/conda/lib/python3.7/site-packages/botocore/client.py

[...]

Invalid bucket name "": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:(s3|s3-object-lambda):[a-z\-0-9]+:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\-]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\-]{1,63}$"

Contributor guide

Open the contributing guide

Research direction

Open the linked notebook and inspect cell In [4], where the S3 bucket region is checked. Reproduce the CI failure and trace the BUCKET value used by s3.head_bucket; done means the notebook no longer passes an empty bucket name and CI completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, jupyter-notebook, python
Domain
cloud, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.