You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of PyMAPDL and its dependencies (fully updated virtual environment). You can update them using pip install --upgrade --upgrade-strategy eager ansys-mapdl-core in your activated virtual environment.
🔍 Description of the bug
I just updated the las version of ansys-mapdl-core to ansys-mapdl-core 0.68.1. But now there is this error when I´m trying to open two instances of mapdl, like this:
>>> from ansys.mapdl.core import launch_mapdl
>>> mapdl =launch_mapdl(additional_switches='-smp',mode="grpc")
>>> mapdl.mute =True
>>>
>>> mapdl2 = launch_mapdl(additional_switches='-smp',mode="grpc")
>>> mapdl2.mute =True
PortAlreadyInUseByAnMAPDLInstance: The port 50052 is already used by an MAPDL instance.
This lines worked fine for previous versions and I could establish different geometries, but now I get that error.
I will like to know how can I handle this two instances correctly in this new version and I will also need a 3 in the future. So how can I open 3 different instances in mapdl to work with 3 different geometries at the same time?. Thank you very much!
Hi @Clauperezma
By default PyMAPDL is using port 50052 to communicate with the MAPDL aaS instance launched. So there is a port conflict opening two instances using the same port. Just change the port number; for example:
Now depending on how you want to interact the MAPDL aaS and/or the format of the PyMAPDL script you may want to use a Pool of instances instead of manually opening multiple instances. See here
🤓 Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
in your activated virtual environment.🔍 Description of the bug
I just updated the las version of ansys-mapdl-core to ansys-mapdl-core 0.68.1. But now there is this error when I´m trying to open two instances of mapdl, like this:
This lines worked fine for previous versions and I could establish different geometries, but now I get that error.
I will like to know how can I handle this two instances correctly in this new version and I will also need a 3 in the future. So how can I open 3 different instances in mapdl to work with 3 different geometries at the same time?. Thank you very much!
🕵️ Steps To Reproduce
💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.11
💾 Which MAPDL version are you using?
ansys-mapdl-core 0.68.1
📝 PyMAPDL Report
Show the Report!
📝 Installed packages
Show the installed packages!
📝 Logger output file
Show the logger output file.
The text was updated successfully, but these errors were encountered: