Error importing PyPrimeMesh library

CoolHarrison
CoolHarrison Member Posts: 7
First Comment
**

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.

Answers

  • Alan Varghese
    Alan Varghese Member, Employee Posts: 4
    Solution Developer Community of Practice Member First Anniversary Ansys Employee First Comment
    ✭✭✭

    Hi ,

    This error could arise due to to reasons ,

    1. 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

    1. 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\meshing