Unable to start pyMAPDL - launch_mapdl - An error occurred when connecting to MAPDL. #4537
Unanswered
pietverwilligen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear All
I would like to try pyMAPDL (i worked so far only in MAPDL). I am working on a ubuntu 24.04 virtual machine and I have installed a working version of ANSYS 2026R1. My python version is 3.12 and I have installed python3.12-venv and python3.12-full. I installed ansys-mapdl-core in a virtual environment. I am following the instructions on the pyansys website for setup and trouble shooting [1,2]. However I am not able to get the launcher started. The error occurs whith launching mapdl = launch_mapdl.
I append the output in [3]. Activating the LOG DEBUG, I cannot understand where is the culprit.
Output is in [4]. I do not attach the mylog.log as the output is the same (and even less ... it does not contain the errors) as given in [4]. Searching in other posts on this forum for people with the same problem, I found that this output of this command might be useful for you: python3 -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report(gpu=False))", which I have attached at [5]. It tells me that it could not find the grpc package, likely the culprit of all my problems (there are some other packages missing / not found as well).. However when trying to install grpcio, it tells me it is already installed:
pip install grpcio
Requirement already satisfied: grpcio in ./lib/python3.12/site-packages (1.80.0)
Requirement already satisfied: typing-extensions~=4.12 in ./lib/python3.12/site-packages (from grpcio) (4.15.0)
If anyone has an idea what is wrong or has some ideas to debug, I would be happy to try further.
Thanks a lot.
Kind regards
Piet Verwilligen.
[1] https://mapdl.docs.pyansys.com/version/stable/getting_started/launcher.html
[2] https://mapdl.docs.pyansys.com/version/stable/user_guide/troubleshoot.html
[3]
[4]
[5]
Beta Was this translation helpful? Give feedback.
All reactions