Closed Gillaugh closed 1 year ago
Hi @Gillaugh
I'm not sure I get the error here. You are using -p mech_1
which is the one which is shown in the traceback.
Could you specify a bit more what do you expect/would like to see?
Hi @Gillaugh Like @germa89 I too am wondering what you would like the behavior to be as what is shown is standard MAPDL behavior, even not using PyMAPDL.
There is a native launch_mapdl() option "license_type" that you could use instead of the "-p" additional command line flag. If neither are used then the license server should cycle through the list of available licenses for checkout. If you only have one increment of one type of license then this would not be very useful...otherwise might be an option to try.
Mike
Thanks for the comments. When using launch_mapdl()
or launch_mapdl(additional_switches='-p mech_1')
, I get the above error message. I only have a single license of ANSYS on this PC, and i think a potential error could be a license manager issue.
The only way that I am able to use launch_mapdl()
successfully is by manually opening the ANSYS Product Launcher, going into Customization/Preferences, using -grpc
under additional parameters and running. Once I run this launcher, than launch_mapdl(additional_switches='-p mech_1')
runs successfully within python.
@Gillaugh
It seems to me a license issue. What type of license do you have? You can check that by going to the Ansys License Manager
app, Reporting
> View current license usage
. You can look for mechanical
there:
Also
Once I run this launcher, than launch_mapdl(additional_switches='-p mech_1') runs successfully within python.
Actually you could avoid the additional switch because the instance is already running.
Closing issue. Feel free to reopen if you want to add something more.
Description of the feature
There needs to be a better way of handling licensing errors when launching mapdl using
launch_mapdl()
.For example, when running
launch_mapdl()
with -mpi INTELMPI, it looks like the licensing arguments were swallowed. Here is the traceback:Steps for implementing the feature
Someone programs it.
Useful links and references
No response