Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue introduced in package version >=1.56.1 with protofbuf <= 3.18.1 #121

Closed
DManowitz opened this issue Jul 27, 2022 · 2 comments
Closed
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@DManowitz
Copy link

DManowitz commented Jul 27, 2022

I get the following error when I have googleapis-common-protos version >= 1.56.1 installed along with protobuf package version <= 3.18.1:

from google.rpc import error_details_pb2
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\manow\miniconda3\envs\py37_gAPIs_test\lib\site-packages\google\rpc\error_details_pb2.py", line 39, in
_RETRYINFO = DESCRIPTOR.message_types_by_name["RetryInfo"]
AttributeError: 'NoneType' object has no attribute 'message_types_by_name'

I'm using Windows 10, and I've reproduced the problem with python 3.7 and 3.8.

@vam-google
Copy link

Those files have been regenerated under assumption that they are compatible with protobuf 3.15.x (#95) but given the time when it was done and the available tools at that moment, most likely it got regenerated with protobuf 3.19.x. @parthea Can you please verify it? In any case, I would guess we need to update dependencies (https://github.com/googleapis/python-api-common-protos/blob/main/setup.py#L25) to be >= protobuf 3.19.*.

@vam-google vam-google added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Jul 28, 2022
@parthea
Copy link
Contributor

parthea commented Jun 5, 2024

Closing due to no activity. Please open a new issue if there is still a problem.

@parthea parthea closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants