Skip to content

Dependency version mismatch on pyarrow #1912

@naoki-jarvisml

Description

@naoki-jarvisml

version 3.22.0 uses ArrowDtype which is only available in pyarrow>=10.0.1, but dependency requirement specifies pyarrow >= 3.0.0.

Environment details

  • OS type and version: Darwin mac-mini.lan 20.6.0 Darwin Kernel Version 20.6.0 (also on GCP AppEngine)
  • Python version: Python 3.10.11
  • pip version: pip 23.3.1
  • google-cloud-bigquery version: 3.22.0

Steps to reproduce

note: google-cloud-aiplatform requires pyarrow 7.0.0 for python 3.10

  1. install google-cloud-bigquery and google-cloud-aiplatform db-dtypes
  2. call to_dataframe on RowIterator

Code example

# example
client = bigquery.Client()
df = bqclient.query(sql_statement).result().to_dataframe()

Stack trace

File "/layers/google.python.pip/pip/lib/python3.10/site-packages/google/cloud/bigquery/table.py", line 2283, in to_dataframe
    range_date_dtype = pandas.ArrowDtype(
  File "/layers/google.python.pip/pip/lib/python3.10/site-packages/pandas/core/dtypes/dtypes.py", line 2096, in __init__
    raise ImportError("pyarrow>=10.0.1 is required for ArrowDtype")
ImportError: pyarrow>=10.0.1 is required for ArrowDtype"

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p3Desirable enhancement or fix. May not be included in 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