Skip to content

compose example throws exception. Missing source blob access step #5180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
keegan2149 opened this issue Dec 22, 2020 · 2 comments · Fixed by #5329
Closed

compose example throws exception. Missing source blob access step #5180

keegan2149 opened this issue Dec 22, 2020 · 2 comments · Fixed by #5329
Assignees
Labels
api: storage Issues related to the Cloud Storage API. samples Issues that are directly related to samples. type: question Request for information or clarification. Not an issue.

Comments

@keegan2149
Copy link

In which file did you encounter the issue?

python-docs-samples/storage/cloud-client/storage_compose_file.py

Did you change the file? If so, how?

uncommented input variables
select input blobs
moved sources list creation below client instantiation and blob selection
added some whitespace

Describe the issue

example was didn't work even when input variables were uncommented. Throws an exception because there was no step to select the source blobs.

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Dec 22, 2020
@keegan2149 keegan2149 mentioned this issue Dec 22, 2020
8 tasks
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Dec 23, 2020
@fhinkel fhinkel added type: question Request for information or clarification. Not an issue. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Dec 29, 2020
@fhinkel
Copy link

fhinkel commented Dec 29, 2020

@keegan2149 Thanks for raising the issue. Could you post the error messages you get when you try to run it? Thanks.

@leahecole leahecole assigned frankyn and unassigned leahecole Dec 30, 2020
@keegan2149
Copy link
Author

@keegan2149 Thanks for raising the issue. Could you post the error messages you get when you try to run it? Thanks.

(env) username@computer python-docs-samples (master) $ python storage/cloud-client/storage_compose_file.py
Traceback (most recent call last):
File "storage/cloud-client/storage_compose_file.py", line 56, in
bucket_name=sys.argv[1], sources=sys.argv[2], destination_blob_name=sys.argv[3],
IndexError: list index out of range
(env) username@computer python-docs-samples (master) $

@leahecole leahecole added the api: storage Issues related to the Cloud Storage API. label Jan 14, 2021
gcf-merge-on-green bot pushed a commit that referenced this issue Feb 5, 2021
## Description

Fixes #5180, captures work from #5181 authored by @keegan2149, thank you!

## Checklist
- [x] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md)
- [x] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#readme-file)
- [x] **Tests** pass:   `nox -s py-3.6` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup))
- [x] **Lint** pass:   `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup))
- [x] Please **merge** this PR for me once it is approved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. samples Issues that are directly related to samples. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants