Dir sir<br><br>I try to write a indenpendent python script and run it from command line<br><br>some global variables was first set:<br><br> export LD_LIBRARY_PATH=/home/wascm/chimera/lib:$LD_LIBRARY_PATH<br> export PYTHONPATH=/home/wascm/chimera/share:/home/wascm/chimera/lib:$PYTHONPATH<br> export CHIMERA=/home/wascm/chimera<br><br>the script work well when import following module<br> import chimera<br> from chimera import runCommand, openModels, MSMSModel<br> from WriteMol2 import writeMol2<br> from WriteDMS import writeDMS<br>however, when add the code:<br> from DockPrep import prep<br><br>the error information as follows:<br>#######################################<br>Traceback (most recent call last):<br> File "./xx.py", line 12, in <module><br> from DockPrep import prep<br> File "/home/wascm/chimera/share/DockPrep/__init__.py", line 15!
, in <module><br> from prefs import prefs, defaults, INCOMPLETE_SC, MEMORIZED_SETTINGS<br> File "/home/wascm/chimera/share/DockPrep/prefs.py", line 13, in <module><br> from Rotamers.prefs import defaults as rotamerDefaults<br> File "/home/wascm/chimera/share/Rotamers/__init__.py", line 574, in <module><br> from prefs import defaults, CLASH_METHOD, CLASH_THRESHOLD, HBOND_ALLOWANCE<br> File "/home/wascm/chimera/share/Rotamers/prefs.py", line 13, in <module><br> from DetectClash.prefs import CLASH_THRESHOLD, HBOND_ALLOWANCE, PB_COLOR, \<br> File "/home/wascm/chimera/share/DetectClash/__init__.py", line 157, in <module><br> val = getColorByName(val)<br> File "/home/wascm/chimera/share/chimera/colorTable.py", line 87, in getColorByName<br> color = chimera.MaterialColor(r/255.0, g/255.0, b/255.0)<br>ValueError: mis!
sing default material<br>#################################################<br><br>how can i solve this problem?<br><br>best wishes<br><br>Tao Cui
<br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>