Skip to content

CI: Failed Travis jobs due to GBQ #36436

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
dsaxton opened this issue Sep 17, 2020 · 3 comments · Fixed by #36443
Closed

CI: Failed Travis jobs due to GBQ #36436

dsaxton opened this issue Sep 17, 2020 · 3 comments · Fixed by #36443
Labels
CI Continuous Integration
Milestone

Comments

@dsaxton
Copy link
Member

dsaxton commented Sep 17, 2020

Lots of failed jobs coming from Travis lately with tracebacks like this:

    @pytest.fixture()
    def gbq_dataset(self):
        # Setup Dataset
        _skip_if_no_project_id()
        _skip_if_no_private_key_path()
    
        dataset_id = "pydata_pandas_bq_testing_" + generate_rand_str()
    
>       self.client = _get_client()

pandas/tests/io/test_gbq.py:160: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pandas/tests/io/test_gbq.py:68: in _get_client
    return bigquery.Client(project=project_id, credentials=credentials)
../../../miniconda3/envs/pandas-dev/lib/python3.7/site-packages/google/cloud/bigquery/client.py:179: in __init__
    project=project, credentials=credentials, _http=_http
../../../miniconda3/envs/pandas-dev/lib/python3.7/site-packages/google/cloud/client.py:250: in __init__
    Client.__init__(self, credentials=credentials, client_options=client_options, _http=_http)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <google.cloud.bigquery.client.Client object at 0x7f5c46e157d0>
credentials = <google.oauth2.service_account.Credentials object at 0x7f5c46e15bd0>
_http = None
client_options = ClientOptions: {'api_endpoint': None, 'client_cert_source': None}

    def __init__(self, credentials=None, _http=None, client_options=None):
        if isinstance(client_options, dict):
            client_options = google.api_core.client_options.from_dict(client_options)
        if client_options is None:
            client_options = google.api_core.client_options.ClientOptions()
    
>       if credentials and client_options.credentials_file:
E       AttributeError: 'ClientOptions' object has no attribute 'credentials_file'

Line that's raising:

self.client = _get_client()

Sample Travis log:

https://api.travis-ci.org/v3/job/728073325/log.txt

cc @tswast if any ideas

@dsaxton dsaxton added the CI Continuous Integration label Sep 17, 2020
@fangchenli
Copy link
Member

See googleapis/google-cloud-python#10471.

@tswast
Copy link
Contributor

tswast commented Sep 18, 2020

@busunkim96 Perhaps there was another bad google-auth release?

@busunkim96
Copy link

google-cloud-core==1.4.0 was released with an insufficient pin on google-api-core. This is resolved in google-cloud-core>=1.4.1. https://github.com/googleapis/python-cloud-core/blob/master/CHANGELOG.md#bug-fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants