Skip to content

Incompatible with google-cloud-bigquery-storage>=2.0.0 #329

Closed
@andrewbrown248

Description

@andrewbrown248

In the 2.0.0 version of google-cloud-bigquery-storage, they dropped the bigquery_storage_v1beta1 module for just bigquery_storage. This causes the following line to fail importing with google-cloud-bigquery-storage>=2.0.0.

https://github.com/pydata/pandas-gbq/blob/d251db03b159447331ac9ae63e13d295d75bad70/pandas_gbq/gbq.py#L20

Later, when trying to use the storage api, the following error is thrown since the module was unable to be imported.

ImportError: Install the google-cloud-bigquery-storage and fastavro/pyarrow packages to use the BigQuery Storage API.

Dropped bigquery_storage_v1beta1 module:

(env) abrown:~$ pip list | grep google-cloud-bigquery-storage
google-cloud-bigquery-storage  2.0.0    
(env) abrown:~$ python
Python 3.7.9 (default, Aug 27 2020, 21:59:41) 
[GCC 7.3.1 20180712 (Red Hat 7.3.1-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.cloud import bigquery_storage_v1beta1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'bigquery_storage_v1beta1' from 'google.cloud' (unknown location)
>>> from google.cloud import bigquery_storage
>>>

Metadata

Metadata

Assignees

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions