GAX Google Pubsub V1
raw JSON → 0.8.3 verified Fri May 01 auth: no python deprecated
This library is deprecated. It was a wrapper for the Google Cloud Pub/Sub API using the older GAX (Google API eXtensions) library. The latest version on PyPI is 0.8.3, but it is no longer maintained. Users should migrate to google-cloud-pubsub.
pip install gax-google-pubsub-v1==0.8.3 Common errors
error ModuleNotFoundError: No module named 'gax' ↓
cause The gax package is not installed or has been removed.
fix
Uninstall gax-google-pubsub-v1 and install google-cloud-pubsub instead: pip install google-cloud-pubsub
error ImportError: cannot import name 'PublisherClient' from 'gax.google.pubsub.v1' ↓
cause The deprecated library does not support that import path; users should use the modern google-cloud-pubsub library.
fix
Use: from google.cloud.pubsub_v1 import PublisherClient
Warnings
breaking Library is deprecated and no longer maintained. All functionality has moved to google-cloud-pubsub. ↓
fix Replace with google-cloud-pubsub library and update import paths.
deprecated The entire package is deprecated and will not receive updates or security fixes. ↓
fix Migrate to google-cloud-pubsub>=2.0.0.
Imports
- PublisherClient wrong
from gax.google.pubsub.v1 import PublisherClientcorrectfrom google.cloud.pubsub_v1 import PublisherClient
Quickstart