diff --git a/src/ansys/fluent/core/services/datamodel_tui.py b/src/ansys/fluent/core/services/datamodel_tui.py index 97a3eeb7f3d..4d10f7a3278 100644 --- a/src/ansys/fluent/core/services/datamodel_tui.py +++ b/src/ansys/fluent/core/services/datamodel_tui.py @@ -172,7 +172,8 @@ def get_static_info(self, path: str): request = DataModelProtoModule.GetStaticInfoRequest() request.path = path response = self._impl.get_static_info(request) - return MessageToDict(response.info, including_default_value_fields=True) + # Note: MessageToDict's parameter names are different in different protobuf versions + return MessageToDict(response.info, True) class PyMenu: diff --git a/src/ansys/fluent/core/streaming_services/events_streaming.py b/src/ansys/fluent/core/streaming_services/events_streaming.py index c0f11dd4879..57f04e5b39f 100644 --- a/src/ansys/fluent/core/streaming_services/events_streaming.py +++ b/src/ansys/fluent/core/streaming_services/events_streaming.py @@ -398,9 +398,8 @@ def _construct_event_info( self, response: EventsProtoModule.BeginStreamingResponse, event: TEvent ): event_info_msg = getattr(response, event.value.lower()) - event_info_dict = MessageToDict( - event_info_msg, including_default_value_fields=True - ) + # Note: MessageToDict's parameter names are different in different protobuf versions + event_info_dict = MessageToDict(event_info_msg, True) solver_event = SolverEvent(event.value) event_info_cls = EventInfoBase.derived_classes.get(solver_event) # Key names can be different, but their order is the same