Opened 6 years ago

Closed 6 years ago

#2406 closed defect (fixed)

Bad startup-command error handling

Reported by: coutandin@… Owned by: Eric Pettersen
Priority: normal Milestone:
Component: Command Line Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.7.0-x86_64-i386-64bit
ChimeraX Version: 0.91 (2019-09-10)
Description
Always appears at ChimeraX startup

Log:
Traceback (most recent call last):  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 293, in _run_startup_commands  
run(self.session, cmd_text)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/run.py", line 31, in run  
results = command.run(text, log=log)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2662, in run  
raise UserError(self._error)  
chimerax.core.errors.UserError: Expected a keyword  
  
During handling of the above exception, another exception occurred:  
  
Traceback (most recent call last):  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 295, in _run_startup_commands  
session.logger.status(str(err), color="crimson")  
NameError: name 'session' is not defined  
  
Error processing trigger "ready":  
NameError: name 'session' is not defined  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 295, in _run_startup_commands  
session.logger.status(str(err), color="crimson")  
  
See log for complete Python traceback.  
  
UCSF ChimeraX version: 0.91 (2019-09-10)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  




OpenGL version: 4.1 ATI-2.11.20
OpenGL renderer: AMD Radeon Pro 560X OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (2)

comment:1 by Eric Pettersen, 6 years ago

Component: UnassignedCommand Line
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionBad startup-command error handling

comment:2 by Eric Pettersen, 6 years ago

Resolution: fixed
Status: acceptedclosed

Hi Daniel,

There is something wrong with the commands you told ChimeraX to execute at startup (or their syntax changed since you first specified them). I have fixed the error handling for startup commands so that something more informative comes out of it than what you got here. That will be available in tomorrow's daily build. In the interim, you could look at the startup commands you're using (i.e. check UCSF ChimeraX→Preferences→Startup) and try executing them one by one and see where you get an error.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

Note: See TracTickets for help on using tickets.