[chimerax-users] ChimeraX python crush in no-gui mode
James Starlight
jmsstarlight at gmail.com
Tue Apr 16 01:30:13 PDT 2019
Dear ChimeraX users!
I am using a cxc script together with the following options to run
ChimeraX in no-gui mode.
chimerax-daily --offscreen --nogui test.cxc
here is my scrript
# chimeraX script
windowsize 800 600
open ./test.pdb
view; zoom 1.0; turn x 90; turn z -80;
preset 'overall look' publication
color byattribute bfactor palette rainbow range 2,100
# make info
2dlab create title text "B-factors for" color red font gothic xpos .04
ypos .90 size 30
# options for light
light depthcuestart .4 depthcueend .8; lighting full
save image ./test.png format png width 800 height 600 supersample 4
transparentBackground false
This script works fine with GUI producing very good picture but with
the --nogui it gave me error:
Traceback (most recent call last):
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/ChimeraX_main.py",
line 699, in init
commands.run(sess, 'open %s' % arg)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/run.py",
line 31, in run
results = command.run(text, log=log)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/cli.py",
line 2616, in run
result = ci.function(session, **kw_args)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/open.py",
line 41, in open
from_database=from_database, ignore_cache=ignore_cache, **kw))
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/open.py",
line 117, in open
models = handle_unknown_kw(session.models.open, paths,
format=format, name=name, **kw)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/open.py",
line 62, in handle_unknown_kw
return f(*args, **kw)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/models.py",
line 601, in open
session, filenames, format=format, name=name, **kw)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/io.py",
line 467, in open_multiple_data
models, status = open_data(session, fspec, format=format, name=name, **kw)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/io.py",
line 421, in open_data
models, status = open_func(*args, **kw)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/scripting.py",
line 115, in open_command_script
run(session, text)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/run.py",
line 31, in run
results = command.run(text, log=log)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/cli.py",
line 2616, in run
result = ci.function(session, **kw_args)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/commands/save.py",
line 61, in save
fmt.export(session, filename, fmt.nicknames[0], **kw)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/io.py",
line 203, in export
result = self.export_func(session, path, **kw)
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/core/image.py",
line 43, in save_image
raise LimitationError("Unable to render images to save them")
chimerax.core.errors.LimitationError: Unable to render images to save them
could you help me how it may be fixed?
Thank you in advance!
Gleb
More information about the ChimeraX-users
mailing list