You are here

Error score_scatter_plot.py

3 posts / 0 new
Last post
Error score_scatter_plot.py
#1

Hi guys,

I'm using a tutorial for analysis my results of abinitio, in the step for "identify the best socring models" using this script  "~/rosetta_workshop/Rosetta/main/source/bin/combine_silent.default.linuxgccrelease -database ~/rosetta_workshop/Rosetta/main/database/ -in:file:silent 2LZM_0*.out -in:file:silent_struct_type binary -in:file:fullatom -out:output -out:file:silent 2LZM_all_models_silent.out -out:file:silent_struct_type binary -out:file:fullatom"

I has this error

Traceback (most recent call last):
  File "/home/jrcf/rosetta/tools/protein_tools/scripts/score_scatter_plot.py", line 3, in <module>
    from rosettautil.rosetta import rosettaScore
ImportError: No module named rosettautil.rosetta

 

Using the command line of python i found this.

>>> from optparse import OptionParser                                           
>>> from rosettautil.rosetta import rosettaScore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named rosettautil.rosetta
>>> from rosettautil.rosetta import rosettaScore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named rosettautil.rosetta
>>> from rosettautil.util import fileutil
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named rosettautil.util

 

What could be this error?

thanks

Post Situation: 
Wed, 2015-12-30 05:46
jrcf

Some of the scripts in the Rosetta tools directory use Python modules in the tools directory. Python may need to be told where to find them, via the PYTHONPATH mechanism.

You'll need to add the absolute path of the Rosetta/tools/protein_tools/ directory to your PYTHONPATH environment variable. How to do this is shell dependent, but for bash it would looks something like:

export PYTHONPATH=$PYTHONPATH:/home/jrcf/Rosetta/tools/protein_tools/

You'll need to do this once for each terminal session in which you use the scripts. Alternatively, you can add it to your .bashrc (or equivalent for your current shell), and it will be automatically loaded for you.

Mon, 2016-01-04 08:03
rmoretti

Thanks RMORETTI

Fri, 2016-02-12 16:41
jrcf