I am working with pyomo and using AMPL solvers, here’s the code + error. I have activated the trial for BARON, but unabel to use, It’s working fine with other free solvers.
Could you please check the content of the amplkey.log file that should be at c:\Program Files\Python3913\lib\site-packages\ampl_module_base\bin\amplkey.log?
Please note that this license requires a permanent internet connection to work.
Another issue is that the license file must be on a location with write permissions which may not be the case for c:\Program Files\Python3913\lib\site-packages. It is recommended to use virtual environments on the user home folder.
HOSTINFO.NPROC.12
HOSTINFO.CORES.6
No baron license for this machine.
baron (Windows AMD64), licchk(20250308), ASL(20241202)
ERROR: Solver (asl) returned non-zero return code (2)
ERROR: See the solver log above for diagnostic information.
How did you activate the license? Were you doing it as an administrator? If the modules are installed on a folder where only an administrator has write access, they can only be used by administrators.
First time, as admin, but i have already tried, uninstalling and installing on a user folder,
also doesnt the error indicates something else?
log output, prints the license file, (updated one/latest) and at the last this
HOSTINFO.NPROC.12 HOSTINFO.CORES.6 No baron license for this machine.
baron (Windows AMD64), licchk(20250308), ASL(20241202)
it’s able to read the license file, so i dont think, admin perms is the issue here?? maybe, besides, i am able to work with other solvers that come under coin package, only these trial solvers, are throwing errors