RecursionError: maximum recursion depth exceeded in comparison in _abc_instancecheck(cls, instance) · Issue #57 · so1n/protobuf_to_pydantic · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_content_tuple: Optional[Tuple[str, str]] = self._message_field_handle(
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 200, in _message_field_handle
self._message(message, root_desc, [FileDescriptorProto.ENUM_TYPE_FIELD_NUMBER])
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 487, in _message
_content_tuple: Optional[Tuple[str, str]] = self._message_field_handle(
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 200, in _message_field_handle
self._message(message, root_desc, [FileDescriptorProto.ENUM_TYPE_FIELD_NUMBER])
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 487, in _message
_content_tuple: Optional[Tuple[str, str]] = self._message_field_handle(
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 200, in _message_field_handle
self._message(message, root_desc, [FileDescriptorProto.ENUM_TYPE_FIELD_NUMBER])
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 487, in _message
_content_tuple: Optional[Tuple[str, str]] = self._message_field_handle(
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 200, in _message_field_handle
self._message(message, root_desc, [FileDescriptorProto.ENUM_TYPE_FIELD_NUMBER])
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 487, in _message
_content_tuple: Optional[Tuple[str, str]] = self._message_field_handle(
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 200, in _message_field_handle
self._message(message, root_desc, [FileDescriptorProto.ENUM_TYPE_FIELD_NUMBER])
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 487, in _message
_content_tuple: Optional[Tuple[str, str]] = self._message_field_handle(
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 200, in _message_field_handle
self._message(message, root_desc, [FileDescriptorProto.ENUM_TYPE_FIELD_NUMBER])
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 487, in _message
_content_tuple: Optional[Tuple[str, str]] = self._message_field_handle(
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 221, in _message_field_handle
protobuf_type_model = self._get_protobuf_type_model(field)
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/plugin/field_desc_proto_to_code.py", line 577, in _get_protobuf_type_model
py_type_str=self._get_value_code(type_factory),
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/gen_code.py", line 217, in _get_value_code
type_ = replace_protobuf_type_to_python_type(type_)
File "/Users/tirth/work/bicycle-ai/venv/lib/python3.10/site-packages/protobuf_to_pydantic/util.py", line 77, in replace_protobuf_type_to_python_type
elif isinstance(value, (list, *ProtobufRepeatedType)):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/abc.py", line 119, in __instancecheck__
return _abc_instancecheck(cls, instance)
RecursionError: maximum recursion depth exceeded in comparison
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I got the error
To Reproduce
I tried converting the proto to pydantic classes using
python -m grpc_tools.protoc -I./testProto --python_out=./testProto ./testProto/temp2.proto
It can also be reproduced by
Expected behavior
Pydantic classes to be generated
The text was updated successfully, but these errors were encountered: