You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the following exception when using the pandas read_gbq() function.
1 import pandas as pd
----> 2 pd.read_gbq('select * from SampleDataset.SampleTable', project_id='xxxxxxx')
/usr/local/lib/python2.7/dist-packages/pandas/io/gbq.pyc in read_gbq(query, project_id, index_col, col_order, reauth, verbose)
425 job_id = uuid.uuid4().hex
426 rows = []
--> 427 remaining_rows = len(dataframe)
428
429 if self.verbose:
/usr/local/lib/python2.7/dist-packages/pandas/io/gbq.pyc in __init__(self, project_id, reauth)
111 not match the schema of the destination
112 table in BigQuery.
--> 113 """
114 pass
115
/usr/local/lib/python2.7/dist-packages/pandas/io/gbq.pyc in test_google_api_imports(self)
127 Raised when BigQuery reports a streaming insert error.
128 For more information see `Streaming Data Into BigQuery
--> 129 <https://cloud.google.com/bigquery/streaming-data-into-bigquery>`__
130 """
131
ImportError: Missing module required for Google BigQuery support: No module named discovery
I ran into the following exception when using the pandas
read_gbq()
function.An exception occurs in
test_google_api_imports()
. I believe the issue is on line 49 in https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py .We use
instead of
apiclient
is an alias forgoogleapiclient
according to https://github.com/google/google-api-python-client/blob/master/apiclient/__init__.py#L1A similar issue is reported here: googleapis/google-api-python-client#13
apiclient.__version__
failsgoogleapiclient.__version__
worksThe text was updated successfully, but these errors were encountered: