Discovery 2025R1 does not open with pyAnsys

Steve Mayrhauser
Steve Mayrhauser Member Posts: 4
First Comment
**

Hello ansys community,

I 've installed the new ansys version 25.1 and wanted to test a pyAnsys script which opens discovery. But pyAnsys does not find the new installation. (With 24.1 and 24.2 the script was working).
The environmental variables are set like in the versions before. I've tried it with python 3.10 and 3.12. What could be the reason and how can I solve this issue?

best regards,
Steve

Tagged:

Best Answer

  • Steve Mayrhauser
    Steve Mayrhauser Member Posts: 4
    First Comment
    **
    Answer ✓

    I found the solution. I had to add “ 251: "2025R1",“
    In the list: SUPPORTED_ANSYS_VERSIONS: SUPPORTED_VERSIONS_TYPE = {}

    In file

    C:\Users\MYUSERNAME\AppData\Roaming\Python\Python310\site-packages\ansys\tools\path\path.py

Answers

  • Steve Mayrhauser
    Steve Mayrhauser Member Posts: 4
    First Comment
    **

    I used following code:
    from ansys.geometry.core import launch_modeler_with_discovery
    launch_modeler_with_discovery(product_version = 241) --> works
    launch_modeler_with_discovery(product_version = 242) --> works
    launch_modeler_with_discovery(product_version = 251) --> is not working

  • Naveen Kumar Begari
    Naveen Kumar Begari Member Posts: 102
    10 Comments 5 Likes First Answer First Anniversary
    **

    @Steve Mayrhauser

    It's working.

  • Steve Mayrhauser
    Steve Mayrhauser Member Posts: 4
    First Comment
    **

    Ok the version 251 is completly unknown in pyAnsys

    but the enviromental variables are set and equal to the versions before

    what could be the reason and how can I fix it?