<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Tom Goddard's comments are exactly correct, I just want to add some advice. If anyone else will be working on your code, you should try to avoid the "from module_name import *" construct because it makes it more difficult to find the place where a class is defined. Say for example you use a Point object in your code. A person trying to find the definition for Point first has to look through the file using Point to see if it's defined there, then through each module from which you've imported "*" to look for it. It is better to import just the names you are going to use, something like: "from chimera import Point, openModels, Molecule". That statement makes it clear where the definition of Point is going to be found.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>The other thing is that the "chimera" module imports all the names from _chimera, so typically you import from chimera rather than _chimera. I know that the chimera uses the "from _chimera import *" construct, which seems somewhat hypocritical given the advice above, but it is being used to make C++ classes/functions that "logically" belong in the chimera module available.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--Eric<BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN>Eric Pettersen</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN>UCSF Computer Graphics Lab</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN><A href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</A></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="5" style="font: 16.0px Helvetica"><SPAN class="Apple-converted-space"> </SPAN><A href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</A></FONT></P> <BR class="Apple-interchange-newline"> </DIV><BR><DIV><DIV>On Oct 2, 2006, at 5:44 AM, Javier Díez wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="nw" id="_user_chimera-dev@cgl.ucsf.edu">Hy,<BR>I've just started working on a Chimera extension.<BR>I've tried to import chimera after setting up the CHIMERA os variable, but it gives me this erro message:<BR> </SPAN><B><SPAN class="nw" id="_user_chimera-dev@cgl.ucsf.edu"></SPAN></B><B><SPAN class="nw" id="_user_chimera-dev@cgl.ucsf.edu"><SPAN style="font-weight: bold;">from _chimera import *<BR>ImportError: No module named _chimera <BR></SPAN></SPAN></B><SPAN class="nw" id="_user_chimera-dev@cgl.ucsf.edu">Some help?<BR>Thank you.<BR>Javi<BR></SPAN><B><SPAN class="nw" id="_user_chimera-dev@cgl.ucsf.edu"><SPAN style="font-weight: bold;"><BR></SPAN></SPAN> </B><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Chimera-dev mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Chimera-dev@cgl.ucsf.edu">Chimera-dev@cgl.ucsf.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://www.cgl.ucsf.edu/mailman/listinfo/chimera-dev">http://www.cgl.ucsf.edu/mailman/listinfo/chimera-dev</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>