Skip to content

Require packaging>=20.0 #1400

@andrewkisel

Description

@andrewkisel

Environment details

  • OS type and version: CentOS 7
  • Python version: 3.7.4
  • pip version: 21.3.1
  • google-cloud-bigquery version: 3.3.5

Steps to reproduce

  1. Install packaging==19.2, which is in required "packaging >= 14.3, <22.0.0dev"
  2. Try accessing use_compliant_nested_type property from google.cloud.bigquery._helpers.PyarrowVersions

Code example

>>> from google.cloud.bigquery._helpers import PyarrowVersions
>>> import packaging.version
>>> v = PyarrowVersions().use_compliant_nested_type

Stack trace

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "env/lib/python3.7/site-packages/google/cloud/bigquery/_helpers.py", line 121, in use_compliant_nested_type
    return self.installed_version.major >= 4
AttributeError: 'Version' object has no attribute 'major'

This is resolved by setting dependency versions to "packaging >= 20.0, <22.0.0dev"

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.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