8000 tqdm deprecation warning · Issue #1146 · googleapis/python-bigquery · GitHub
[go: up one dir, main page]

Skip to content

tqdm deprecation warning #1146

@GergelyKalmar

Description

@GergelyKalmar

Environment details

  • OS type and version: Ubuntu 20.04 LTS
  • Python version: 3.8.10
  • pip version: 22.0.3
  • google-cloud-bigquery version: 2.34.0

Steps to reproduce

from google.cloud import bigquery

query = bigquery.Client().query('SELECT 1')
data = query.to_dataframe(progress_bar_type='tqdm_notebook')

The snippet above causes a deprecation warning that breaks strict pytest runs (using 'filterwarnings': ['error']):

.../site-packages/google/cloud/bigquery/_tqdm_helpers.py:51: in get_progress_bar
    return tqdm.tqdm_notebook(desc=description, total=total, unit=unit)
...
        from .notebook import tqdm as _tqdm_notebook
>       warn("This function will be removed in tqdm==5.0.0\n"
             "Please use `tqdm.notebook.tqdm` instead of `tqdm.tqdm_notebook`",
             TqdmDeprecationWarning, stacklevel=2)
E       tqdm.std.TqdmDeprecationWarning: This function will be removed in tqdm==5.0.0
E       Please use `tqdm.notebook.tqdm` instead of `tqdm.tqdm_notebook`

.../site-packages/tqdm/__init__.py:25: TqdmDeprecationWarning

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

    0