Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sai-sunder-s
Copy link
Contributor

@sai-sunder-s sai-sunder-s commented Jun 28, 2022

Updating pubsub version to fix proto error:

system_tests_sync/test_grpc.py:21: in <module>
    from google.cloud import pubsub_v1
.nox/grpc-3-7/lib/python3.7/site-packages/google/cloud/pubsub_v1/__init__.py:17: in <module>
    from google.cloud.pubsub_v1 import types
.nox/grpc-3-7/lib/python3.7/site-packages/google/cloud/pubsub_v1/types.py:32: in <module>
    from google.cloud.pubsub_v1.proto import pubsub_pb2
.nox/grpc-3-7/lib/python3.7/site-packages/google/cloud/pubsub_v1/proto/pubsub_pb2.py:70: in <module>
    create_key=_descriptor._internal_create_key,
.nox/grpc-3-7/lib/python3.7/site-packages/google/protobuf/descriptor.py:560: in __new__
    _message.Message._CheckCalledFromGeneratedFile()
E   TypeError: Descriptors cannot not be created directly.
E   If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
E   If you cannot immediately regenerate your protos, some other possible workarounds are:
E    1. Downgrade the protobuf package to 3.20.x or lower.
E    2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
E
E   More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

@sai-sunder-s sai-sunder-s merged commit 72e7bc3 into main Jun 28, 2022
@sai-sunder-s sai-sunder-s deleted the refresh branch June 28, 2022 22:49
@sai-sunder-s sai-sunder-s changed the title chore: update sys creds chore: update sys creds and update pubsub version to 1.7.2 Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants