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

Greg Couch gregc at cgl.ucsf.edu
Thu Jul 9 10:04:53 PDT 2009


To generate chimera images with --nogui, you need to use a Headless 
chimera.  Currently, they are only available as chimera daily builds and 
only for Linux and Linux 64-bit.

 	- Greg

On Thu, 9 Jul 2009, Davide Baú wrote:

> 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*
>


More information about the Chimera-dev mailing list