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)
Change History (4)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
| Component: | Unassigned → Platform |
|---|---|
| Owner: | set to |
| Status: | new → assigned |
The mac icon code seems to be a Tom Goddard special. Reassigning.
comment:3 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
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 , 9 years ago
| Attachment: | image3.png added |
|---|
However, I can't restore the attached session (saved from the menu) anyway. Maybe that is a separate bug.