Skip to content

Pubsub: clients emit pending deprecation warnings #6887

@JoshuaFox

Description

@JoshuaFox

(See Google Group )

With the Python pubsub package v 0.39.0, a simple call to pubsub_v1.SubscriberClient() gives warnings from deep in Google code

             
 publisher/client.py:89: PendingDeprecationWarning: The `channel` argument is deprecated; use `transport` instead.
  ...
  subscriber/client.py:83: PendingDeprecationWarning: The `channel` argument is deprecated; use `transport` instead.
  ...

This apparently incorrect channel is created inside Google code, e.g. google.cloud.pubsub_v1.subscriber.client.Client#__init__

Although keeping ahead of deprecation can be challenging, Google's own code should avoid warnings and do whatever Google says is the official way.

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. 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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions