[chimerax-users] OpenGL error with nogui?

Greg Couch gregc at cgl.ucsf.edu
Sat Aug 1 13:42:08 PDT 2020


Next time, please use the Help / Report a Bug dialog to report an 
issue.  It captures details about your setup that would help diagnose this.

That said, ChimeraX --offscreen is what you need if you want to make 
images without the GUI and it only works on Linux at this time.  The 
only issue with offscreen rendering that I'm aware of in the 1.0 release 
is that it doesn't work for labels.  That has been fixed in the daily 
builds.

      -- Greg

On 8/1/2020 1:41 AM, Fabian Glaser wrote:
> Dear gurus,
>
> I am trying to produce a series of figures on the fly with chimeraX, 
> using a python script of the following format (this is only a simple 
> demo):
>
> test.py:
>
> #!/usr/bin/env python3
>
> import sys
> from chimerax.core.commands import run
>
> run(session, "open 1d66")
> run(session, "color red")
> run (session, "save fig1.png”)
>
> ==
>
> This works like a charm with the gui, but without the gui it gives the 
> following error, stops and no figure is produced, we tried both in Mac 
> and linux. We are interest in the —nogui option:
>
> .../MacOS/ChimeraX --script "test.py 1d66" —nogui
>
>
> Executing: surface sel-residues enclose sel-residues
> Executing: transparency 0 ribbons
> Set transparency of 542 residues
> Executing: ~select
> Nothing selected
> Nothing selected
> Executing: save fig1.jpg
> Unable to save images because OpenGL rendering is not available
>
>
> So is this solvable? How?
>
> We tried also with the —offscreen, no luck either.
>
>
>
>
> Best,
>
> Fabian
>
> Fabian Glaser PhD
>
> Bioinformatics Knowledge Unit - BKU
> The Lorry I. Lokey Center for Life Sciences and Engineering
> Technion - Israel Institute of Technology, Haifa, Israel
> Web https://lokey.technion.ac.il/bioinformatic-knowledge-unit/
> Tel +972 (0) 4 8293701
>
>
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20200801/155d70ab/attachment-0001.html>


More information about the ChimeraX-users mailing list