Opened 5 years ago

Closed 5 years ago

#3335 closed defect (duplicate)

open command: UnboundLocalError: local variable 'data_format' referenced before assignment

Reported by: chimerax-bug-report@… Owned by: pett
Priority: normal Milestone:
Component: Input/Output Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.18362
ChimeraX Version: 0.93 (2020-04-03)
Description
(Describe the actions that caused this problem to occur here)

Log:
UCSF ChimeraX version: 0.93 (2020-04-03)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open2 C:/Users/93931/Desktop/XC/map_model/s_alone_p309_2.7.mrc
> C:/Users/93931/Desktop/XC/map_model/s_trimer_0521_real_space_refined.pdb

Traceback (most recent call last):  
File "D:\chimera\ChimeraX\bin\lib\site-
packages\chimerax\open_command\dialog.py", line 146, in _qt_safe  
if data_format is None else " format " +
StringArg.unparse(data_format.nicknames[0])))  
File "D:\chimera\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\run.py", line 31, in run  
results = command.run(text, log=log)  
File "D:\chimera\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\cli.py", line 2848, in run  
result = ci.function(session, **kw_args)  
File "D:\chimera\ChimeraX\bin\lib\site-packages\chimerax\open_command\cmd.py",
line 86, in cmd_open  
Command(session, registry=registry).run(provider_cmd_text, log=log)  
File "D:\chimera\ChimeraX\bin\lib\site-
packages\chimerax\core\commands\cli.py", line 2848, in run  
result = ci.function(session, **kw_args)  
File "D:\chimera\ChimeraX\bin\lib\site-packages\chimerax\open_command\cmd.py",
line 149, in provider_open  
models, status = collated_open(session, False, [data], data_format,
opener_info.open,  
UnboundLocalError: local variable 'data_format' referenced before assignment  
  
UnboundLocalError: local variable 'data_format' referenced before assignment  
  
File "D:\chimera\ChimeraX\bin\lib\site-packages\chimerax\open_command\cmd.py",
line 149, in provider_open  
models, status = collated_open(session, False, [data], data_format,
opener_info.open,  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 432.00
OpenGL renderer: GeForce RTX 2060/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
Manufacturer: Micro-Star International Co., Ltd.
Model: MS-7B89
OS: Microsoft Windows 10 专业版 (Build 18363)
Memory: 34,306,519,040
MaxProcessMemory: 137,438,953,344
CPU: 12 AMD Ryzen 5 3600 6-Core Processor              "

Change History (2)

comment:1 by pett, 5 years ago

Component: UnassignedInput/Output
Owner: set to pett
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionopen command: UnboundLocalError: local variable 'data_format' referenced before assignment

comment:2 by pett, 5 years ago

Resolution: duplicate
Status: acceptedclosed

Fixed on 4/30

Note: See TracTickets for help on using tickets.