<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Evan,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>That code only works in the context of <i class="">Chimera</i>’s Python interpreter, not a generic Python interpreter. So like it says in the example, “to execute the script, either open the script file with the File→Open menu item or with the open command”. </div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Third parties have developed modules to allow Chimera modules to be used in standard Python interpreters. One such package is <a href="https://pypi.python.org/pypi/pychimera/0.2.0" class="">pychimera,</a> which can be installed via pypi.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Chimera only supports Python2. ChimeraX uses Python3.</div><div class=""><br class=""></div><div class="">—Eric</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Jan 23, 2018, at 11:03 AM, Evan Seitz <<a href="mailto:evan.e.seitz@gmail.com" class="">evan.e.seitz@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi - I’m trying to follow Example 1 on <a href="http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/index.html" class="">http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/index.html</a>, but after entering the code precisely as it is written, am getting back the ModuleNotFoundError: No module named ‘chimera’.<div class=""><br class=""></div><div class="">I’ve tried running the script using both Python2.7 and Python3, and both have resulted in the same error. As a sub-question, is Chimera supported in Python3, or is it best practice to still use Python2?</div><div class=""><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Evan Seitz</div><div class=""><br class=""></div></div><div class="">Chimera version: 1.12.0</div><div class="">OS: macOS High Sierra 10.13.2</div></div>_______________________________________________<br class="">Chimera-dev mailing list<br class=""><a href="mailto:Chimera-dev@cgl.ucsf.edu" class="">Chimera-dev@cgl.ucsf.edu</a><br class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev<br class=""></div></blockquote></div><br class=""></div></body></html>