You need to run your script using Chimera's Python instead of the system Python.  See this message:

[Chimera-users] How to install chimera as a python module

--Eric

                        Eric Pettersen
                        UCSF Computer Graphics Lab
                        http://www.cgl.ucsf.edu

On Jun 16, 2015, at 12:10 AM, "陈雷" <ryanch@mail.ecust.edu.cn> wrote:

Hello,

I got a problem when calling chimera in a python script.

ImportError: no module named chimera

Here is the line in my script: from chimera import runCommand.

Python version is 2.6.6 and chimera is 1.8 in Linux. Would you please help me out with this? Thanks.

Best regards,
Ryan

_______________________________________________
Chimera-users mailing list
Chimera-users@cgl.ucsf.edu
http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users