[chimera-dev] Generating images in chimera with the --nogui option

Davide Baú dbau at cipf.es
Thu Jul 9 08:32:22 PDT 2009


Hi,

my name is Davide and I'm currently working on Marc Marti-Renom's group.

I'm trying to generate an image using chimera with the --nogui option:

chimera --nogui --nostatus --script cmd.py


The file cmd.py contains the following lines:

from chimera import runCommand
> runCommand('open input.cmm')
> runCommand('copy file image.png  png')


but I keep getting the following error message:

Traceback (most recent call last):
>   File "/usr/src/chimera/share/__main__.py", line 65, in <module>
>     value = chimeraInit.init(sys.argv)
>   File "CHIMERA/share/chimeraInit.py", line 384, in init
>     chimera.openModels.open(a, prefixableType=1)
>   File "CHIMERA/share/chimera/__init__.py", line 1344, in open
>   File "CHIMERA/share/chimera/__init__.py", line 787, in _openPython
>   File "cmd.py", line 3, in <module>
>     runCommand('copy file image.png  png')
>   File "CHIMERA/share/chimera/__init__.py", line 2025, in runCommand
>   File "CHIMERA/share/Midas/midas_text.py", line 62, in makeCommand
>   File "CHIMERA/share/Midas/midas_text.py", line 563, in doCopy
>   File "<string>", line 1, in <module>
>   File "CHIMERA/share/Midas/__init__.py", line 908, in copy
>   File "CHIMERA/share/chimera/printer.py", line 1182, in saveImage
> AttributeError: '_chimera.NoGuiViewer' object has no attribute 'pilImages'
> Error while processing cmd.py:
> AttributeError: '_chimera.NoGuiViewer' object has no attribute 'pilImages'
>
(see reply log for Python traceback info)
>

cmd.py was generated from within chimera using the "record" command of
chimera's "command line".
If I delete the line "runCommand('copy file image.png  png')", the script
execute with no error.

Is it possible to generate images using the --nogui option?

Thanks a lot for your help!

Best regards,
Davide

____________
*Davide Baù*
Structural Genomics Unit
Bioinformatics & Genomics Department, Prince Felipe Research Center
Avda. Autopista del Saler, 16 , 46012 Valencia, Spain
Tel: +34 96 328 96 80 (ext. 1021) Fax: +34 96 328 97 01
Email: *dbau at cipf.es*
Web: *http://sgu.bioinfo.cipf.es/dbau*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20090709/7ce22b79/attachment.html>


More information about the Chimera-dev mailing list