Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

AttributeError: 'DataTransferServiceClient' object has no attribute 'location_path' #66

Closed
iuiu34 opened this issue Oct 14, 2020 · 4 comments · Fixed by #80
Closed

AttributeError: 'DataTransferServiceClient' object has no attribute 'location_path' #66

iuiu34 opened this issue Oct 14, 2020 · 4 comments · Fixed by #80
Assignees
Labels
api: bigquerydatatransfer Issues related to the googleapis/python-bigquery-datatransfer API. type: docs Improvement to the documentation for an API.

Comments

@iuiu34
Copy link

iuiu34 commented Oct 14, 2020

If run tutorial command

from google.cloud import bigquery_datatransfer_v1

client = bigquery_datatransfer_v1.DataTransferServiceClient()

parent = client.location_path('[PROJECT]', '[LOCATION]')

Gives me the error

AttributeError: 'DataTransferServiceClient' object has no attribute 'location_path'

py3.7
windows
google-api-core==1.22.4
google-auth==1.22.1
google-cloud-bigquery-datatransfer==2.1.0
googleapis-common-protos==1.52.0
grpcio==1.32.0

@product-auto-label product-auto-label bot added the api: bigquerydatatransfer Issues related to the googleapis/python-bigquery-datatransfer API. label Oct 14, 2020
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Oct 16, 2020
@meredithslota
Copy link

Gotcha - I think the tutorial section needs to be updated; just to confirm, are you referencing this page? https://googleapis.dev/python/bigquerydatatransfer/latest/index.html under "Example Usage"?

@meredithslota meredithslota added type: docs Improvement to the documentation for an API. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Oct 21, 2020
@iuiu34
Copy link
Author

iuiu34 commented Oct 21, 2020

yes, that's correct.
Where shoul I look instead?

@iuiu34
Copy link
Author

iuiu34 commented Nov 13, 2020

The example in
https://github.com/googleapis/python-bigquery-datatransfer/blob/v2.1.0/samples/create_scheduled_query.py
works.

Idk why the readme is not updated

@tswast
Copy link
Contributor

tswast commented Dec 9, 2020

Sent #80 to remove the code sample from the README. Since it's just plain text, it's not tested by our CI infrastructure and is prone to getting out-of-date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: bigquerydatatransfer Issues related to the googleapis/python-bigquery-datatransfer API. type: docs Improvement to the documentation for an API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants