<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 09/22/2011 01:58 PM, Lockwood, Svetlana wrote:
<blockquote
cite="mid:E743FDB0113A5443B2373EC1AD100AAA0E65C975@SN2PRD0102MB116.prod.exchangelabs.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
<div style="direction: ltr; font-family: Tahoma; 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">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>
</body>
</html>