Error importing PyPrimeMesh library
In this code, import ansys.meshing.prime as prime with prime.launch_prime() as prime_client: ...
I am getting this error:Exception has occurred: FileNotFoundError No valid Ansys Prime Server found to launch. File "C:\Users\forha\OneDrive\Documents\GitHub\F1car-wAI\fluentTest.py", line 207, in <module> with prime.launch_prime() as prime_client: ^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: No valid Ansys Prime Server found to launch.
I'm not sure what it really means, or how to get the Ansys Prime Server. Thanks in advance for the help.
Best Answers
-
Hello, I did some more research and I think its because PyPrimeMesh isn't with the student version, which is what I have.
0 -
Hello, I talked with customer service about it and it appears that pyprimemesh doesn't come in the student version, so i think that's the answer. Thanks for the help nonetheless.
0
Answers
-
Hi ,
This error could arise due to to reasons ,
- Client and Server version mismatch
Can you check the client and server versions are matching , you can refer to the following document
https://prime.docs.pyansys.com/version/stable/getting_started/index.html- Ansys PyPrimeMesh server executables missing
Within the Ansys unified installed directory , there should be folder namely meshing . This can be located as follow
Assuming you have 2024 R2 installed , the following path should exist
C:\Program Files\ANSYS Inc\v242\meshing0