<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ffffff" fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Thanks, Greg! I think I'll use the IDLE directly, it seems to be working. Thanks!</p>
<p> </p>
<p>--sv</p>
<p> </p>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF549302"><font color="#000000" size="2" face="Tahoma"><b>From:</b> chimera-users-bounces@cgl.ucsf.edu [chimera-users-bounces@cgl.ucsf.edu] on behalf of Greg Couch [gregc@cgl.ucsf.edu]<br>
<b>Sent:</b> Thursday, September 22, 2011 4:50 PM<br>
<b>To:</b> chimera-users@cgl.ucsf.edu<br>
<b>Subject:</b> Re: [Chimera-users] importing chimera module question<br>
</font><br>
</div>
<div></div>
<div>On 09/22/2011 01:58 PM, Lockwood, Svetlana wrote:
<blockquote type="cite"><style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: rgb(0,0,0); FONT-SIZE: 10pt">
<p>Hi to everybody!</p>
<p> </p>
<p>I am new to Chimera. I've just installed Chimera and trying to run a python script. I get the import error: no module named chimera. My OS is Win7 and Chimera 1.5.3. I checked my path under enviromental variables and added Chimera folder in there. Still
nothing changed. There must be an easy fix to this. </p>
<p> </p>
<p>Please let me know what could be done. Thanks!</p>
</div>
</blockquote>
<br>
The easy fix is to use Chimera's Python instead of the system version. Chimera includes several binary packages and those are often incompatible with the system Python.<br>
<br>
On Windows, you would either use the runscript chimera command, or the Tools / General Controls / IDLE Python shell.<br>
<br>
On Linux (and to a lesser extent, Mac OS X), it is easy to run your script from a Terminal window, with:<br>
<br>
chimera --nogui --silent script.py<br>
<br>
*if* your script doesn't take any arguments. Or if it does:<br>
<br>
chimera --nogui --silent --script "script.py arguments"<br>
<br>
It is possible to do the above on Windows with its Command Prompt program, but I use the
<a class="moz-txt-link-freetext" href="http://cygwin.com" target="_blank">http://cygwin.com</a> Linux emulation environment because it works better.<br>
<br>
See the Chimera documentation for details about the --script startup option and the runscript chimera command, and question #3 in the Chimera Programming FAQ.<br>
<br>
HTH,<br>
<br>
Greg<br>
</div>
</div>
</div>
</body>
</html>