Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require packaging>=20.0 #1400

Closed
andrewkisel opened this issue Nov 4, 2022 · 0 comments · Fixed by #1440
Closed

Require packaging>=20.0 #1400

andrewkisel opened this issue Nov 4, 2022 · 0 comments · Fixed by #1440
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@andrewkisel
Copy link

andrewkisel commented Nov 4, 2022

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"

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Nov 4, 2022
@tswast tswast self-assigned this Jan 18, 2023
@tswast tswast added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants