Skip to content

CI: Failed Travis jobs due to GBQ #36436

Closed
@dsaxton

Description

@dsaxton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous Integration

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions