Opened 10 years ago

Closed 9 years ago

#332 closed defect (fixed)

cannot save session

Reported by: Elaine Meng Owned by: Greg Couch
Priority: blocker Milestone:
Component: Input/Output Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

In today's build UCSF ChimeraX version: 0.1 (2016-05-28) I can't save a session. From the dialog gives this error:

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/core/ui/gui.py", line 304, in <lambda>
self.Bind(wx.EVT_MENU, lambda evt, ses=session: self.on_save(evt, ses),
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/ui/gui.py", line 224, in on_save
self.save_dialog.display(self, ses)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/ui/save_dialog.py", line 120, in display
filename = self.file_dialog.get_path()
AttributeError: 'SaveDialog' object has no attribute 'get_path'

...and from the command line gives this error:
save ~/Desktop/carlink2.cxs
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/gui.py", line 166, 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 2184, in run
results.append(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 54, in save
save_session(session, filename)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/session.py", line 553, in save
utils.set_file_icon(filename, image)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/utils.py", line 85, in set_file_icon
from . import _mac_util
ImportError: dynamic module does not define module export function (PyInitmac_util)

Change History (4)

comment:1 by Elaine Meng, 10 years ago

Component: UnassignedInput/Output

looks like the session was created anyway... since it has a gz I think it was from the menu/dialog attempt.

comment:2 by Eric Pettersen, 10 years ago

Owner: set to Greg Couch
Status: newassigned

I fixed the first error, which _should_ have then resulted in the second error -- but it didn't, it worked. This is because the menu-driven session saving uses export.export, which in turn uses io.export. The command-driven version uses save.save. Obviously, we shouldn't have two different versions of session saving, so on top of fixing the second error above, the two session-saving mechanisms should somehow be combined.

--Eric

comment:3 by Elaine Meng, 10 years ago

Oops, it was the command way that worked despite error, whereas the menu way did not produce any file. But perhaps you figured that out already.

comment:4 by Greg Couch, 9 years ago

Resolution: fixed
Status: assignedclosed

menu uses save command.

Note: See TracTickets for help on using tickets.