Opened 7 years ago

Closed 7 years ago

#1109 closed defect (fixed)

RuntimeError: delayed command registration for 'color electrostatic' didn't register the command

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: major Milestone:
Component: Command Line Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

I had the following in a cxc file but opening the file gave a traceback (ESP file 3eebB.phi attached):

open 3eeb
del /a
open 3eebB.phi
surf
color electrostatic #1 map #2 palette redblue range -10,10

from Log:
[...]
delete /a
open /Users/meng/Desktop/stash/3eebB.phi
Opened 3eebB.phi, grid size 103,103,103, pixel 0.833, shown at level -8.21,8.21, step 1, values float32
surface
Traceback (most recent call last):

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/gui.py", line 462, in customEvent

func(*args, kw)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/widgets/htmlview.py", line 247, in defer

cxcmd(session, topic)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/widgets/htmlview.py", line 344, in cxcmd

ti.execute()

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/cmd_line/tool.py", line 205, in execute

cmd.run(cmd_text)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2633, in run

result = ci.function(session, kw_args)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 42, in open

from_database=from_database, ignore_cache=ignore_cache, kw))

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 112, in open

models = handle_unknown_kw(session.models.open, paths, format=format, name=name, kw)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 63, in handle_unknown_kw

return f(*args, kw)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/models.py", line 471, in open

session, filenames, format=format, name=name, kw)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/io.py", line 444, in open_multiple_data

models, status = open_data(session, fspec, format=format, name=name, kw)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/io.py", line 402, in open_data

models, status = open_func(*args, kw)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/scripting.py", line 115, in open_command_script

run(session, text)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/run.py", line 31, in run

results = command.run(text, log=log)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2574, in run

self._find_command_name(final, used_aliases=_used_aliases)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2324, in _find_command_name

what.lazy_register(cmd_name)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 1976, in lazy_register

raise RuntimeError("delayed command registration for %r didn't register the command" % cmd_name)

RuntimeError: delayed command registration for 'color electrostatic' didn't register the command

RuntimeError: delayed command registration for 'color electrostatic' didn't register the command

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 1976, in lazy_register
raise RuntimeError("delayed command registration for %r didn't register the command" % cmd_name)

See log for complete Python traceback.

If you wish to report this error, send mail to chimerax-bugs@… and describe what you were doing and include a copy of the contents of the log. Don't include any data you wish to remain private since a publicly viewable bug report will be created.

Attachments (1)

3eebB.phi (4.2 MB ) - added by Elaine Meng 7 years ago.

Change History (3)

by Elaine Meng, 7 years ago

Attachment: 3eebB.phi added

in reply to:  2 comment:1 by goddard@…, 7 years ago

Oops.  I see the code is only registering the color subcommands if color radial is used.  Will fix today.  If you want to test other color subcommands do any “color radial” first and that will make the other ones work.


comment:2 by Tom Goddard, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed

Note: See TracTickets for help on using tickets.