[Chimera-users] save image with --nogui
Mark Moll
mmoll at cs.rice.edu
Tue Mar 3 08:30:40 PST 2009
Never mind. I found out that I should use the Linux 64-bit Off-screen
OpenGL build.
On Mar 3, 2009, at 10:12 AM, Mark Moll wrote:
> I'd like to load some pdb files, change the view/colors/
> representation/etc., and save the resulting view as an image. If
> possible, I'd like to do this in the background without the GUI.
> This doesn't seem to work. The latest daily build gives the errors
> below when using this simple script:
>
> import Midas
> Midas.copy(file='test.png', format='PNG', width=600, height=400)
>
> Should I be using a different command?
>
> > /Applications/Chimera.app/Contents/MacOS/chimera --nogui foo.pdb
> test.py
> Opening foo.pdb...
> Executing test.py...Rendering high resolution image...
> Traceback (most recent call last):
> File "/Applications/Chimera.app/Contents/Resources/share/
> __main__.py", line 65, in <module>
> value = chimeraInit.init(sys.argv)
> File "/var/tmp/chimeraBuild_AGL/build/install/Chimera.app/Contents/
> Resources/share/chimeraInit.py", line 420, in init
> chimera.openModels.open(a, prefixableType=1)
> File "/var/tmp/chimeraBuild_AGL/build/install/Chimera.app/Contents/
> Resources/share/chimera/__init__.py", line 1368, in open
> File "/var/tmp/chimeraBuild_AGL/build/install/Chimera.app/Contents/
> Resources/share/chimera/__init__.py", line 802, in _openPython
> File "test.py", line 10, in <module>
> Midas.copy(file='test.png', format='PNG', width=600, height=400)
> File "/var/tmp/chimeraBuild_AGL/build/install/Chimera.app/Contents/
> Resources/share/Midas/__init__.py", line 1049, in copy
> File "/var/tmp/chimeraBuild_AGL/build/install/Chimera.app/Contents/
> Resources/share/chimera/printer.py", line 1176, in saveImage
> AttributeError: '_chimera.NoGuiViewer' object has no attribute
> 'pilImages'
> Error while processing test.py:
> AttributeError: '_chimera.NoGuiViewer' object has no attribute
> 'pilImages'
> (see reply log for Python traceback info)
>
> --
> Mark
>
>
>
--
Mark
More information about the Chimera-users
mailing list