Opened 7 years ago

Closed 7 years ago

#1514 closed defect (fixed)

StructureArg parsing: name 'AnnotationError' is not defined

Reported by: tic20@… Owned by: pett
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:        Linux-3.10.0-862.el7.x86_64-x86_64-with-centos-7.5.1804-Core
ChimeraX Version: 0.8 (2018-12-06)
Description
Underlying error is mine, but it's not being handled correctly by `atomic`.

Log:
UCSF ChimeraX version: 0.8 (2018-12-06)  
How to cite UCSF ChimeraX  

> open before.pdb

before.pdb title:  
Crystal structure of etub from clostridium kluyveri [more info...]  
  
Chain information for before.pdb #1  
---  
Chain | Description  
A | predicted microcompartment protein  
  

> spotlight #1

Setting spotlight mode for model 1.3 to True  

> spotlight #1 false

Setting spotlight mode for model 1.3 to False  

> spotlight #1

Setting spotlight mode for model 1.3 to True  

> select up

Nothing selected  
Traceback (most recent call last):  
File "/opt/UCSF/ChimeraX-daily/lib/python3.6/site-
packages/chimerax/cmd_line/tool.py", line 229, in execute  
cmd.run(cmd_text)  
File "/opt/UCSF/ChimeraX-daily/lib/python3.6/site-
packages/chimerax/core/commands/cli.py", line 2547, in run  
self._process_keyword_arguments(final, prev_annos)  
File "/opt/UCSF/ChimeraX-daily/lib/python3.6/site-
packages/chimerax/core/commands/cli.py", line 2468, in
_process_keyword_arguments  
value, text = self._parse_arg(anno, text, session, final)  
File "/opt/UCSF/ChimeraX-daily/lib/python3.6/site-
packages/chimerax/core/commands/cli.py", line 2191, in _parse_arg  
value, replacement, rest = annotation.parse(text, session)  
File "/opt/UCSF/ChimeraX-daily/lib/python3.6/site-
packages/chimerax/atomic/args.py", line 126, in parse  
raise AnnotationError('Specified model is not a Structure')  
NameError: name 'AnnotationError' is not defined  
  
NameError: name 'AnnotationError' is not defined  
  
File "/opt/UCSF/ChimeraX-daily/lib/python3.6/site-
packages/chimerax/atomic/args.py", line 126, in parse  
raise AnnotationError('Specified model is not a Structure')  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 390.77
OpenGL renderer: TITAN Xp/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by pett, 7 years ago

Component: UnassignedCommand Line
Owner: set to pett
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionStructureArg parsing: name 'AnnotationError' is not defined

comment:2 by pett, 7 years ago

Resolution: fixed
Status: acceptedclosed

Tristan,

Thanks for the heads up. When atomic argument parsing moved out of the core, I failed to note that importing AnnotationError became necessary.

--Eric

Note: See TracTickets for help on using tickets.