Closed a-abir closed 3 months ago
@a-abir I see that you are running with release 23.2. Can you try using a later release such as 24.2?
@franknli I was waiting on access to 24.1 and after running the same setup, it seems to not have either of the issues I've raised (#92 #93). Seems to be a version specific issue.
@a-abir Right - release 23.2 does not contain all functions of WB gRPC service. So the error you saw is not a surprise. I am closing this issue. Thanks!
Please put that disclaimer of required version and issues on the readmes if not already on there.
π Before submitting the issue
π Description of the bug
Unable to run scripts or start fluent or mechanical server.
ERROR:grpc._common:Exception deserializing message! Traceback (most recent call last): File "c:\Users\USER\Documents\Ansys\Lib\site-packages\grpc_common.py", line 89, in _transform return transformer(message) ^^^^^^^^^^^^^^^^^^^^ google.protobuf.message.DecodeError: Error parsing message
{ "name": "_MultiThreadedRendezvous", "message": "<_MultiThreadedRendezvous of RPC that terminated with: \tstatus = StatusCode.INTERNAL \tdetails = \"Exception deserializing response!\" \tdebug_error_string = \"None\"
File c:\Users\User\Documents\Ansys\Lib\site-packages\ansys\workbench\core\workbench_client.py:484, in WorkbenchClient.start_fluent_server(self, system_name) 461 def start_fluent_server(self, system_name): 462 \"\"\"Start the PyFluent server for the given system in the Workbench project. 463 464 Parameters (...) 482 483 \"\"\" --> 484 server_info_file_name = self.run_script_string( 485 f\"\"\"import json 486 server_info_file=LaunchFluentServerOnSystem(SystemName=\"{system_name}\") 487 wb_script_result=json.dumps(server_info_file) 488 \"\"\" 489 ) 490 local_copy = os.path.join(self.workdir, server_info_file_name) 491 if os.path.exists(local_copy):
File c:\Users\User\Documents\Ansys\Lib\site-packages\ansys\workbench\core\workbench_client.py:168, in WorkbenchClient.run_script_string(self, script_string, log_level) 164 logging.error(\"Workbench client is not yet connected to a server.\") 165 request = wb.RunScriptRequest( 166 content=script_string, log_level=WorkbenchClient.__to_server_log_level(log_level) 167 ) --> 168 for response in self.stub.RunScript(request): 169 if response.log and response.log.messages and len(response.log.messages) > 0: 170 for log_entry in response.log.messages:
File c:\Users\User\Documents\Ansys\Lib\site-packages\grpc\_channel.py:543, in _Rendezvous.next(self) 542 def next(self): --> 543 return self._next()
File c:\Users\User\Documents\Ansys\Lib\site-packages\grpc\_channel.py:969, in _MultiThreadedRendezvous._next(self) 967 raise StopIteration() 968 elif self._state.code is not None: --> 969 raise self
_MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: \tstatus = StatusCode.INTERNAL \tdetails = \"Exception deserializing response!\" \tdebug_error_string = \"None\"
π Steps to reproduce
Basic connection to the Workbench server followed by trying to run any script by string, script by file or starting server.
import ansys.fluent.core as pyfluent from ansys.workbench.core import connect_workbench wb = connect_workbench(port=64634) server_info_file=wb.start_fluent_server(system_name="FFF")
π» Which operating system are you using?
Windows
π Which ANSYS version are you using?
Ansys 2023 R2 v232
π Which Python version are you using?
3.11
π¦ Installed packages