Opened 10 years ago

Closed 10 years ago

#171 closed defect (fixed)

built-in alias delayed registration failed

Reported by: Elaine Meng Owned by: Greg Couch
Priority: blocker Milestone:
Component: Command Line Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: chimera

Description

In today's daily build, trying to use "ribbon" or "ts" (or using ribbon icon in Molecule Display) gives a traceback, for example:

Traceback (most recent call last):
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/cli.py", line 1403, in _lazy_register
deferred.call()
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/cli.py", line 1237, in call
return self.proxy()
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/toolshed/init.py", line 1183, in cb
s._register_cmd(n)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/toolshed/init.py", line 1189, in _register_cmd
self._get_module().register_command(command_name, self)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/exp_cmd/init.py", line 25, in register_command
m.initialize(command_name)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/exp_cmd/ribbon.py", line 6, in initialize
alias(command_name, "%s $*" % command_name.replace("ribbon", "cartoon"))
TypeError: 'module' object is not callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/cmd_line/gui.py", line 119, in on_enter
cmd = Command(session, cmd_text, final=True)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/cli.py", line 1463, in init
self.parse_text(text, final=final, _used_aliases=_used_aliases)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/cli.py", line 1832, in parse_text
self._find_command_name(final, no_aliases=no_aliases, used_aliases=_used_aliases)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/cli.py", line 1633, in _find_command_name
what = _lazy_register(word_map, word)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/cli.py", line 1405, in _lazy_register
raise RuntimeError("delayed registration failed")
RuntimeError: delayed registration failed

Change History (1)

comment:1 by Greg Couch, 10 years ago

Resolution: fixed
Status: newclosed

Not sure when this was fixed, probably when internal alias function was split into three functions: create_alias, expand_alias, and list_aliases.

Note: See TracTickets for help on using tickets.