[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [modeller_usage] error modeller running : restrain in sec. structure during modeling



On Tue, Aug 4, 2015 at 11:07 AM, Pawan K. Gupta
<> wrote:
>  Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback

That looks like there is a problem with your Modeller installation.
Which operative system are you using?

>   File "Sec-struct-restrain-copy.py", line 10
>     def special_restraints(self, aln):
>       ^
> IndentationError: expected an indented block

As the error says, the indentation is wrong. It should be:

class MyModel (automodel):
    def special_restraints(self, aln):
        rsr.add(secondary_structure.alpha(self.residue_range(’10:’, ’30:’)))

Note that in Python indentation is part of the semantics.

/David.