-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important 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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- OS type and version: CentOS 7
- Python version: 3.7.4
- pip version: 21.3.1
google-cloud-bigqueryversion: 3.3.5
Steps to reproduce
- Install packaging==19.2, which is in required "packaging >= 14.3, <22.0.0dev"
- 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"
hirosassa
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important 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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.