镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Require packaging>=20.0 #1400

Closed
Closed

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"

Activity

  1. self-assigned this
    on Jan 18, 2023
  2. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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