Hi all, I made a theoretical model in modeller7v7 and now, when I try to do it again in modeller8v1, I get the following error:
Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/modeller8v1/modlib/modeller/runtop.py", line 79, in run self.runlines(self.lines) File "/usr/lib/modeller8v1/modlib/modeller/runtop.py", line 131, in runlines indxca = self.run_top_cmd(cmd, indxca, lines, callstack, subrout) File "/usr/lib/modeller8v1/modlib/modeller/runtop.py", line 364, in run_top_cmd self.make_top_variable(0) File "/usr/lib/modeller8v1/modlib/modeller/runtop.py", line 525, in make_top_variable var = var.lower() AttributeError: 'int' object has no attribute 'lower'
What does it mean? What have changed in runtop that it can not "understand" my files anymore? Thanks in advance, Elza
Elza Helena Andrade Barbosa wrote: > Hi all, > I made a theoretical model in modeller7v7 and now, when I try to do it > again in modeller8v1, I get the following error:
Send me your input files, and I'll be able to reproduce the problem here.
Ben Webb, Modeller Caretaker
Elza Helena Andrade Barbosa wrote: > I made a theoretical model in modeller7v7 and now, when I try to do it > again in modeller8v1, I get the following error:
This error occurs because you have both the INCLUDE command (which defines Modeller variables and routines) and the various DEFINE_STRING, DEFINE_INTEGER, and DEFINE_REAL commands (which define the variables). This means that you've tried to define every variable twice, which results in undefined behavior (I guess you got lucky and it worked with 7v7).
Two possible solutions: 1. Remove the DEFINE_INTEGER, DEFINE_REAL, and DEFINE_STRING commands from the start of your TOP file. They're redundant anyway, since the INCLUDE does all of this.
2. Apply the attached patch to your 8v1 installation, which will allow you to redefine variables in the same manner as in 7v7.
Ben Webb, Modeller Caretaker
participants (2)
-
Elza Helena Andrade Barbosa
-
Modeller Caretaker