Pyansys DPF - RuntimeError and - ansys.dpf.gate.errors.DPFServerException

Hi all,

I'm getting this two errors:

  • RuntimeError: terminate called after throwing an instance of 'std::logic_error'
    what(): grpc plugin not correctly loaded, can not instantiate grpc::stream_provider operator

  • ansys.dpf.gate.errors.DPFServerException: a 'service is currently unavailable' error occurred: Connection reset by peer

The error seems random (some simulations got the first issue, some other the second, some other were good)

{'server_ip': '127.0.0.1', 'server_port': 12892, 'server_process_id': 3919118, 'server_version': '7.1', 'os': 'posix', 'path': '/net/opt/apps/prod/ansys_2024R1/v241/'}

Do you have any ideas how fix it?

I have already an environment variable -> ["DPF_SERVER_TYPE"] = "GRPC"