Opened 6 years ago

Closed 6 years ago

#2392 closed defect (duplicate)

2D labels: local variable 'lm' referenced before assignment

Reported by: tetterst@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Linux-4.15.0-60-generic-x86_64-with-debian-stretch-sid
ChimeraX Version: 0.91 (2019-08-07)
Description
tried to follow the fit of the model to the EM density along chain A by typing "resfit #1/A map #2". The mmcif file contains 240 subunits. 

Log:
UCSF ChimeraX version: 0.91 (2019-08-07)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open
/home/hilvertg/tetterst/NCL12_phenix_2/RealSpaceRefine_41/NCL12_smallermap_apply_ncs_40_real_space_refined.cif

Summary of feedback from opening
/home/hilvertg/tetterst/NCL12_phenix_2/RealSpaceRefine_41/NCL12_smallermap_apply_ncs_40_real_space_refined.cif  
---  
warnings | skipping chem_comp category: Missing column 'type' near line 3469  
Missing entity information. Treating each chain as a separate entity.  
Bad residue range for secondary structure "4" near line 335  
Bad residue range for secondary structure "8" near line 339  
Bad residue range for secondary structure "12" near line 343  
Bad residue range for secondary structure "16" near line 347  
Bad residue range for secondary structure "20" near line 351  
235 messages similar to the above omitted  
Invalid sheet range for strand "1 1" near line 2253  
Invalid sheet range for strand "1 3" near line 2255  
Invalid sheet range for strand "2 1" near line 2256  
Invalid sheet range for strand "2 3" near line 2258  
Invalid sheet range for strand "3 1" near line 2259  
475 messages similar to the above omitted  
Missing or incomplete entity_poly_seq table. Inferred polymer connectivity.  
  
Chain information for NCL12_smallermap_apply_ncs_40_real_space_refined.cif #1  
---  
Chain | Description  
A BA BB BC BD BE BF BG BH BI C DA DB DC DD DE DF DG DH DI E FA FB FC FD FE FF
FG FH FI G HA HB HC HD HE HF HG HH I JA JB JC JD JE JF JG JH K LA LB LC LD LE
LF LG LH M NA NB NC ND NE NF NG NH O PA PB PC PD PE PF PG PH Q RA RB RC RD RE
RF RG RH S TA TB TC TD TE TF TG TH V VA VB VC VD VE VF VG VH X XA XB XC XD XE
XF XG XH Z ZA ZB ZC ZD ZE ZF ZG ZH | No description available  
AA AC AE AG AI B CB CD CF CH EA EC EE EG EI F GB GD GF GH IA IC IE IG J KB KD
KF KH MA MC ME MG N OB OD OF OH QA QC QE QG R SB SD SF SH UA UC UE UG W WB WD
WF WH YA YC YE YG | No description available  
AB AD AF AH CA CC CE CG CI D EB ED EF EH GA GC GE GG GI H IB ID IF IH KA KC KE
KG L MB MD MF MH OA OC OE OG P QB QD QF QH SA SC SE SG T UB UD UF UH WA WC WE
WG Y YB YD YF YH | No description available  
  

> open
/home/hilvertg/tetterst/NCL12_phenix_2/run_class001_croppedByHalf_shifted.mrc

Opened run_class001_croppedByHalf_shifted.mrc, grid size 301,301,301, pixel
1.1, shown at level 0.035, step 2, values float32  

> style selAtoms stick

Changed 286320 atom styles  

> color selAtoms byhetero

> volume #2 transparency 0.8

> set bgColor white

Empty filename passed to function  

> save session /home/hilvertg/Desktop/presentable/gen3/density_fit.cxs

> resfit /AA map #2

Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/cmd_line/tool.py", line 254, in execute  
cmd.run(cmd_text)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2655, in run  
result = ci.function(session, **kw_args)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/residue_fit/cmd.py", line 43, in resfit  
movie_framerate = movie_framerate)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/residue_fit/tool.py", line 49, in __init__  
self.update_value(rmin)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/widgets/slider.py", line 97, in update_value  
self.change_value(v, playing = playing)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/residue_fit/tool.py", line 60, in change_value  
self.update_label(res)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/residue_fit/tool.py", line 83, in update_label  
self._label = l = self._create_label()  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/residue_fit/tool.py", line 92, in _create_label  
while find_label(self.session, label_name):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 439, in find_label  
lm = session_labels(session)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 451, in session_labels  
return lm  
UnboundLocalError: local variable 'lm' referenced before assignment  
  
UnboundLocalError: local variable 'lm' referenced before assignment  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/label/label2d.py", line 451, in session_labels  
return lm  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 396.54
OpenGL renderer: GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by Eric Pettersen, 6 years ago

Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submission2D labels: local variable 'lm' referenced before assignment

comment:2 by Eric Pettersen, 6 years ago

Resolution: duplicate
Status: assignedclosed

Hi Stephan,

Thanks for reporting this problem. We fixed this issue about 3 weeks ago, so if you get a new daily build, things should work. Sorry for the inconvenience.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

Note: See TracTickets for help on using tickets.