gapic-generator-python
gapic-generator-python copied to clipboard
Remove usage of `google.protobuf.__version__`. Use `importlib.metadata.version('protobuf')` instead
google.protobuf.__version__ is used in this code base.
https://github.com/search?q=repo%3Agoogleapis%2Fgapic-generator-python%20google.protobuf.version&type=code
It's possible that this is the cause of https://github.com/googleapis/google-cloud-python/issues/13974. We should switch to importlib.metadata.version('protobuf') instead
>>> importlib.metadata.version('protobuf')
'6.30.2'