Using modeller with a web form: how topass the provided key to modeller?
Hello,
I'm planning to provide models from carefully validated alignments and in order to provide this tool, i would like to allow users to access to the full model, and produce new ones using my methodology, from a web server.
According to the policy, http://salilab.org/modeller/FAQ.html#18, i must use a form and use this key for launching modeller (i totally agree with this).
However, how can i use this license? In fact, if i install modeller the standard way (on linux, using http://salilab.org/modeller/9v6/release.html#rpm): env KEY_MODELLER9v6=XXXX rpm -Uvh modeller-9v6-1.i386.rpm, then the key is incorporated in the installation.
In this case, the "external" key is not used (mine is taken).
On the other end, if i install modeller without the key (remove the env KEY_MODELLER9v6=XXXX to the above command), i receive:
KEY_MODELLER9v5=<VALIDKEYHERE> /usr/bin/mod9v5 file.py Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/modeller9v5/modlib/modeller/__init__.py", line 65, in ? _modeller.mod_start() _modeller.ModellerError: check_lice_E> Invalid license key: xxx Go to http://salilab.org/modeller/ to get a license key, and then set the 'license' variable to it in the file /usr/lib/modeller9v5/modlib/modeller/config.py
I have tried various combinations to set the KEY_MODELLER9v5 (env, export, in a sourced file, etc) but i'm always stucked.
Any idea ?
Thanks a lot in advance,
Stéphane Téletchéa
Stéphane Téletchéa wrote: > I'm planning to provide models from carefully validated alignments and > in order to provide this tool, i would like to allow users to access to > the full model, and produce new ones using my methodology, from a web > server. > > According to the policy, http://salilab.org/modeller/FAQ.html#18, i must > use a form and use this key for launching modeller (i totally agree with > this). > > However, how can i use this license? ...
In both cases, the behavior is the same (even though it may not look like it). The Modeller license key is by default set in modlib/modeller/config.py. If you *don't* set it in that file, Modeller will next look for it in the KEY_MODELLERxxx (where xxx is the Modeller version, e.g. 9v6) environment variable before giving up.
In other words, if you set the license key to *anything* (even XXX) in config.py, it will be used rather than the environment variable, even if it's the "wrong" key. So in your case the simple solution should be to edit the modlib/modeller/config.py file after you install Modeller and completely delete the line that sets the license. Then whatever you set in the KEY_MODELLERxxx environment variable will be used.
I will update the FAQ accordingly - thanks for bringing this to my attention.
Ben Webb, Modeller Caretaker
participants (2)
-
Modeller Caretaker
-
Stéphane Téletchéa