[chimerax-users] Fwd: Unable to load --offscreen and --nogui options

Sai Janani Ganesan sai.gans at gmail.com
Tue Sep 15 13:30:09 PDT 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20200915/ba746533/attachment.html>


More information about the ChimeraX-users mailing list