Hi,<br><br>my name is Davide and I'm currently working on Marc Marti-Renom's group. <br><br>I'm trying to generate an image using chimera with the --nogui option:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
chimera --nogui --nostatus --script cmd.py</blockquote><div><br>The file cmd.py contains the following lines: <br></div><br style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">from chimera import runCommand<br>runCommand('open input.cmm')<br>runCommand('copy file image.png png')</blockquote>
<div><br>but I keep getting the following error message: <br></div><div><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Traceback (most recent call last):<br>
File "/usr/src/chimera/share/__main__.py", line 65, in <module><br> value = chimeraInit.init(sys.argv)<br> File "CHIMERA/share/chimeraInit.py", line 384, in init<br> chimera.openModels.open(a, prefixableType=1)<br>
File "CHIMERA/share/chimera/__init__.py", line 1344, in open<br> File "CHIMERA/share/chimera/__init__.py", line 787, in _openPython<br> File "cmd.py", line 3, in <module><br> runCommand('copy file image.png png')<br>
File "CHIMERA/share/chimera/__init__.py", line 2025, in runCommand<br> File "CHIMERA/share/Midas/midas_text.py", line 62, in makeCommand<br> File "CHIMERA/share/Midas/midas_text.py", line 563, in doCopy<br>
File "<string>", line 1, in <module><br> File "CHIMERA/share/Midas/__init__.py", line 908, in copy<br> File "CHIMERA/share/chimera/printer.py", line 1182, in saveImage<br>AttributeError: '_chimera.NoGuiViewer' object has no attribute 'pilImages'<br>
Error while processing cmd.py:<br>AttributeError: '_chimera.NoGuiViewer' object has no attribute 'pilImages'<br></blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
(see reply log for Python traceback info)<br></blockquote><br>cmd.py was generated from within chimera using the "record" command of chimera's "command line".<br>If I delete the line "runCommand('copy file image.png png')", the script execute with no error.<br>
<br>Is it possible to generate images using the --nogui option?<br><br>Thanks a lot for your help!<br><br>Best regards,<br>Davide<br><br></div><blockquote style="margin: 1.5em 0pt;"><font color="gray">____________<br></font>
<b>Davide Baù</b><br>
<font color="gray">Structural Genomics Unit<br>
Bioinformatics & Genomics Department, Prince Felipe Research Center<br>
Avda. Autopista del Saler, 16 , 46012 Valencia, Spain<br>
Tel: +34 96 328 96 80 (ext. 1021) Fax: +34 96 328 97 01<br>
Email: <i><a href="mailto:dbau@cipf.es">dbau@cipf.es</a></i><br>
Web: <i><a href="http://sgu.bioinfo.cipf.es/dbau">http://sgu.bioinfo.cipf.es/dbau</a></i></font></blockquote>