Opened 9 years ago

Closed 9 years ago

#350 closed defect (fixed)

command save-session traceback (but menu works)

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: blocker Milestone:
Component: Platform Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

I could save the attached session with the menu, but trying to save it with a command like

save ~/Desktop/test.cxs

gave a traceback:
Traceback (most recent call last):
File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/cmd_line/gui.py", line 167, in execute
cmd.run(cmd_text)
File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 2200, in run
results.append(ci.function(session, kw_args))
File "/Users/meng/Desktop/ChimeraX.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/meng/Desktop/ChimeraX.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/meng/Desktop/ChimeraX.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)

Attachments (1)

image3.png (184.3 KB ) - added by Tom Goddard 9 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Elaine Meng, 9 years ago

However, I can't restore the attached session (saved from the menu) anyway. Maybe that is a separate bug.

comment:2 by Eric Pettersen, 9 years ago

Component: UnassignedPlatform
Owner: set to Tom Goddard
Status: newassigned

The mac icon code seems to be a Tom Goddard special. Reassigning.

comment:3 by Tom Goddard, 9 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

The code that makes the session file Mac icon show a thumbnail image was broken because changes for the ChimeraX Windows port caused the module initialization function not to be exported.

by Tom Goddard, 9 years ago

Attachment: image3.png added
Note: See TracTickets for help on using tickets.