Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#474 closed defect (fixed)

"save session filename" (no suffix) gives traceback

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: major Milestone:
Component: Sessions Version:
Keywords: Cc: Conrad Huang, Tom Goddard, pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

As I understand it there are 3 ways to specify saving a session:

save session filename
save filename.cxs
save filename format ses

The second two work, the first one gives a traceback:

save session ~/Desktop/test2
Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/cmd_line/tool.py", line 148, in execute
cmd.run(cmd_text)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 2245, in run
result = ci.function(session, kw_args)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/save.py", line 199, in save_no_model
save(session, None, filename,
kw)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/save.py", line 64, in save
fmt, fname, compress = io.deduce_format(filename, open = False, save = True)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/io.py", line 235, in deduce_format
stripped, compression = determine_compression(filename)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/io.py", line 407, in determine_compression
if filename.endswith(compression):
AttributeError: 'NoneType' object has no attribute 'endswith'

Change History (3)

comment:1 by Tom Goddard, 9 years ago

Owner: changed from Greg Couch to Tom Goddard
Status: newassigned

comment:2 by Tom Goddard, 9 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

comment:3 by pett, 8 years ago

Component: UnassignedSessions
Note: See TracTickets for help on using tickets.