Hi I try to build model with my own constrain(beta sheet) with multiple CPU, but it said:
----------------log-------------------- raise RemoteError(obj.exc, self) modeller.parallel.communicator.RemoteError: AttributeError: 'module' object has no attribute 'MyModel' from <Slave on localhost>
I ues the following script for multiple CPU:
-------------script------------------------ from modeller import * from modeller.automodel import * from modeller.parallel import * j = job() j.append(local_slave()) j.append(local_slave()) j.append(local_slave()) j.append(local_slave()) env = environ() log.verbose() ---------------------------------------------- THX
On 2/16/11 1:08 PM, albert wrote: > I try to build model with my own constrain(beta sheet) with multiple > CPU, but it said: > > ----------------log-------------------- > raise RemoteError(obj.exc, self) > modeller.parallel.communicator.RemoteError: AttributeError: 'module' > object has no attribute 'MyModel' from <Slave on localhost>
This usually means you tried to define your MyModel class in your main script file (can't tell for sure without seeing your entire Python input file). You have to put it in a separate file and 'import' it. Look at the parallel examples in the Modeller distribution - e.g. examples/python/parallel-task.py.
Ben Webb, Modeller Caretaker
participants (2)
-
albert
-
Modeller Caretaker