Hello,
I just got a one-month I have replaced the ampl.lic,
which is clear from the creation date [1]. I'm testing the
PATHSolver ("pathampl") with amplpy - and the license test does
fail [2]. This is on the system where I created the fingerprint.
I am on Ubuntu, and it works if I run my python file via the command line. If I run it within pyCharm, the aforementioned failure occurs.
Thanks
[1]:
-rw-rw-r-- 1 saman saman 683 Oct 2 15:59 ampl.lic
-rw-r--r-- 1 saman saman 505 Oct 27 2016 ampl.lic.backup
import os
os.environ['PATH'] = '/path/to/the/license/folder'+':'+os.environ['PATH']
from amplpy import AMPL
os.environ['PATH'].
Also keep in mind that PATH uses its own license mechanism, not AMPL's ampl.lic file. To avoid the "Demo license: size restriction ..." message, you have to set an environment variable specifically for the PATH license string, following the directions at http://pages.cs.wisc.edu/~ferris/path/LICENSE. Perhaps PATH is not seeing that setting when run within PyCharm.
Bob Fourer
am...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.