-
Hello, I have ANSYS Student 2021 R2 and ansys-mapdl-core 0.60.1 installed. When I execute the example script: from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl()
print(mapdl) The function When I hit Ctrl+C to interrupt the script, I get the following message:
The first time when I launched the script, I saw the following message:
So I entered At last, I have no problem launching Mechanical APDL and Workbench programs. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @srhouyu try the following, then post what is returned. It will take a few seconds for all the "output" to show up: from ansys.mapdl.core import launch_mapdl Mike |
Beta Was this translation helpful? Give feedback.
-
Because of:
I believe you have the wrong executable path in the The file >>> import appdirs
>>> appdirs.user_data_dir("ansys-mapdl-core")
'C:\\Users\\USER\\AppData\\Local\\ansys-mapdl-core\\ansys-mapdl-core' You can delete the file if you wish, or just change the path to the right executable. |
Beta Was this translation helpful? Give feedback.
Because of:
I believe you have the wrong executable path in the
config.txt
file. I am quite convinced because of the installation directoryC:\Program Files\ANSYS Inc\ANSYS Student\v212...
which is quite unsual.The file
config.txt
is located in the repository setting directory.You can obtain this directory in python using:
You can delete the file if you wish, or just change the path to the right executable.