Fwd: Unable to load --offscreen and --nogui options

Hello All, I am unable to save images from the command line, I get an OpenGL error. I get openGL errors on both Mac and Linux. Any suggestions? ChimeraX --offscreen --nogui test.cxc Traceback (most recent call last): File "/opt/chimerax-1.0-1.fc32/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/opt/chimerax-1.0-1.fc32/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/ChimeraX_main.py", line 895, in <module> exit_code = init(sys.argv) File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/ChimeraX_main.py", line 453, in init sess = session.Session(app_name, debug=opts.debug, silent=opts.silent) File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/core/session.py", line 441, in __init__ self.logger = logger.Logger(self) File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/core/session.py", line 501, in __setattr__ if not name.startswith('_') and self.snapshot_methods(value, base_type=StateManager) is not None: File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/core/session.py", line 535, in snapshot_methods from chimerax import graphics as gr File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/graphics/__init__.py", line 34, in <module> from .opengl import Texture, Lighting, Material File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/graphics/opengl.py", line 61, in <module> from OpenGL import GL File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/GL/__init__.py", line 4, in <module> from OpenGL.GL.VERSION.GL_1_1 import * File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/GL/VERSION/GL_1_1.py", line 14, in <module> from OpenGL.raw.GL.VERSION.GL_1_1 import * File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/raw/GL/VERSION/GL_1_1.py", line 7, in <module> from OpenGL.raw.GL import _errors File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/raw/GL/_errors.py", line 4, in <module> _error_checker = _ErrorChecker( _p, _p.GL.glGetError ) AttributeError: 'NoneType' object has no attribute 'glGetError'-- Thanks, Sai

Currently, --offscreen only works on Linux. Can you tell me more about your Linux installation? It looks like you installed a Fedora 32 rpm, but we don't distribute one. The first step would be to try an official build. The CentOS 8 rpm should work for Fedora 32. Installing from the rpm has the advantage that it will get all of the dependencies installed as well. -- Greg On 9/15/2020 1:30 PM, Sai Janani Ganesan wrote:
Hello All,
I am unable to save images from the command line, I get an OpenGL error. I get openGL errors on both Mac and Linux. Any suggestions?
ChimeraX --offscreen --nogui test.cxc
Traceback (most recent call last):
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/ChimeraX_main.py", line 895, in <module>
exit_code = init(sys.argv)
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/ChimeraX_main.py", line 453, in init
sess = session.Session(app_name, debug=opts.debug, silent=opts.silent)
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/core/session.py", line 441, in __init__
self.logger = logger.Logger(self)
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/core/session.py", line 501, in __setattr__
if not name.startswith('_') and self.snapshot_methods(value, base_type=StateManager) is not None:
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/core/session.py", line 535, in snapshot_methods
from chimerax import graphics as gr
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/graphics/__init__.py", line 34, in <module>
from .opengl import Texture, Lighting, Material
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/chimerax/graphics/opengl.py", line 61, in <module>
from OpenGL import GL
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/GL/__init__.py", line 4, in <module>
from OpenGL.GL.VERSION.GL_1_1 import *
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/GL/VERSION/GL_1_1.py", line 14, in <module>
from OpenGL.raw.GL.VERSION.GL_1_1 import *
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/raw/GL/VERSION/GL_1_1.py", line 7, in <module>
from OpenGL.raw.GL <http://OpenGL.raw.GL> import _errors
File "/opt/chimerax-1.0-1.fc32/lib/python3.7/site-packages/PyOpenGL-3.1.5-py3.7.egg/OpenGL/raw/GL/_errors.py", line 4, in <module>
_error_checker = _ErrorChecker( _p, _p.GL.glGetError )
AttributeError: 'NoneType' object has no attribute 'glGetError'--
Thanks, Sai
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

On 9/15/20 2:00 PM, Greg Couch wrote:
Currently, --offscreen only works on Linux. Can you tell me more about your Linux installation? It looks like you installed a Fedora 32 rpm, but we don't distribute one.
This is the "Generic Linux 64-bit" tarball of ChimeraX 1.0. I just wrapped it in an RPM for easier installation on our machines.
The CentOS 8 rpm should work for Fedora 32.
Seems like this fixes the issue (although I also updated the package to ChimeraX 1.1). Sai, try it on your desktop now. Ben -- ben@salilab.org https://salilab.org/~ben/ "It is a capital mistake to theorize before one has data." - Sir Arthur Conan Doyle

Thanks Ben and Greg! It works now. Greg, does this mean the headless version doesn't work on Mac? On Tue, Sep 15, 2020 at 2:27 PM Ben Webb <ben@salilab.org> wrote:
On 9/15/20 2:00 PM, Greg Couch wrote:
Currently, --offscreen only works on Linux. Can you tell me more about your Linux installation? It looks like you installed a Fedora 32 rpm, but we don't distribute one.
This is the "Generic Linux 64-bit" tarball of ChimeraX 1.0. I just wrapped it in an RPM for easier installation on our machines.
The CentOS 8 rpm should work for Fedora 32.
Seems like this fixes the issue (although I also updated the package to ChimeraX 1.1). Sai, try it on your desktop now.
Ben -- ben@salilab.org https://salilab.org/~ben/ "It is a capital mistake to theorize before one has data." - Sir Arthur Conan Doyle
-- *"Every sentence I utter must be understood not as an affirmation but as a question." - Niels Bohr*
participants (3)
-
Ben Webb
-
Greg Couch
-
Sai Janani Ganesan