Opened 6 years ago

Closed 6 years ago

#2409 closed defect (fixed)

File→Open: unhashable type: 'set'

Reported by: chimerax-bug-report@… Owned by: Greg Couch
Priority: critical Milestone:
Component: Input/Output Version:
Keywords: Cc: Conrad Huang, Tom Goddard
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.17763
ChimeraX Version: 0.91 (2019-09-13)
Description
(Describe the actions that caused this problem to occur here)

Log:
UCSF ChimeraX version: 0.91 (2019-09-13)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  
Traceback (most recent call last):  
File "G:\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py", line 862, in
<lambda>  
open_action.triggered.connect(lambda arg, s=self, sess=session:
s.file_open_cb(sess))  
File "G:\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py", line 571, in
file_open_cb  
self.show_file_open_dialog(session)  
File "G:\ChimeraX\bin\lib\site-packages\chimerax\ui\gui.py", line 579, in
show_file_open_dialog  
filters = open_file_filter(all=True, format_name=format_name)  
File "G:\ChimeraX\bin\lib\site-packages\chimerax\ui\open_save.py", line 137,
in open_file_filter  
exts = combine.setdefault(fmt.category, [])  
TypeError: unhashable type: 'set'  
  
TypeError: unhashable type: 'set'  
  
File "G:\ChimeraX\bin\lib\site-packages\chimerax\ui\open_save.py", line 137,
in open_file_filter  
exts = combine.setdefault(fmt.category, [])  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 399.42
OpenGL renderer: GeForce GTX 1060 with Max-Q Design/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (3)

comment:1 by Eric Pettersen, 6 years ago

Cc: Conrad Huang Tom Goddard added
Component: UnassignedInput/Output
Owner: set to Greg Couch
Platform: all
Priority: normalcritical
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionFile→Open: unhashable type: 'set'

Don't know what happened, but the 'category' for the "Point signals" format (provided by the signal_viewer bundle) is an empty set instead of a string.

comment:2 by Tom Goddard, 6 years ago

When I list the format which have category = set() instead of string I get Schrodinger Maestro and Structure factor MTZ. These are formats provided by uninstalled bundles. The SignalViewer bundle that Eric said in the previous comment had category set() is also a toolshed bundle not included in the daily builds.

So it appears that toolshed bundles that are not included in the ChimeraX build and not installed cause this error. This will effect everyone who gets a new builds and uses File / Open... so should be fixed soon.

comment:3 by Conrad Huang, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed in d1cafaf2d.

Code added to report formats supported by uninstalled bundles introduced this bug. Data formats can only belong to a single category, unlike tools or commands.

Note: See TracTickets for help on using tickets.