Opened 8 years ago
Closed 8 years ago
#677 closed defect (fixed)
Problem with file-history session save
| Reported by: | Elaine Meng | Owned by: | Tom Goddard |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Input/Output | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
save ~/Desktop/tethers.cxs
Session file format is not finalized, and thus might not be restorable in other versions of ChimeraX.
Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/cmd_line/tool.py", line 171, in execute
cmd.run(cmd_text)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2366, in run
result = ci.function(session, kw_args)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/save.py", line 58, in save
fmt.export(session, filename, format, kw)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/io.py", line 148, in export
return self.export_func(*args, kw)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/session.py", line 567, in save
remember_file(session, filename, 'ses', 'all models', file_saved=True)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/filehistory.py", line 196, in remember_file
open_options = open_options)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/filehistory.py", line 59, in remember_file
open_options = open_options)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/filehistory.py", line 131, in init
self.set_open_options(open_options) # Dictionary of open command keyword to value.
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/filehistory.py", line 134, in set_open_options
opt = {k:str(v) for k,v in open_options.items()
AttributeError: 'NoneType' object has no attribute 'items'
AttributeError: 'NoneType' object has no attribute 'items'
I opened the attached cxc file and then rotated/translated/zoomed by hand and then tried to save session from the command line. Also attached session, seems OK upon restore.
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/filehistory.py", line 134, in set_open_options
opt = {k:str(v) for k,v in open_options.items()
See log for complete Python traceback.
If you wish to report this error, send mail to chimerax-bugs@… and describe what you were doing and include a copy of the contents of the log.
Attachments (2)
Change History (4)
by , 8 years ago
| Attachment: | tethers.cxc added |
|---|
by , 8 years ago
| Attachment: | tethers.cxs added |
|---|
comment:1 by , 8 years ago
| Owner: | changed from to |
|---|---|
| Summary: | error saving session although restore seems OK → Problem with file-history session save |
comment:2 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed.
Oops. File history changes to remember open options broke remembering file. The saved session file is correct. The error occurs only after the save completes when it tries to add the new session file to the history.