Opened 9 years ago
Closed 9 years ago
#358 closed defect (fixed)
cannot open session just saved in same version
| Reported by: | Elaine Meng | Owned by: | Greg Couch |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
I first created the session with these commands and then some manual rotation:
open 2gbp
hide cartoons
cartoon :295-299 hide false
hide
show :295-299@n,ca,c,o
hide :299@o
style @ca ball
trans 70 targ r
win 300 150
view; zoom 2
set bg white
set sil t
set silhouettew 1.5
color coil & C cyan
color strand & C yellow
(... some manual manual rotation)
save ~/Desktop/carlink.cxs
close
open ~/Desktop/carlink.cxs.gz
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 167, 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 2194, 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/open.py", line 80, in open
models = session.models.open(paths, format=format, name=name)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/models.py", line 302, in open
format=format, name=name, kw)
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 531, in open_multiple_data
models, status = open_data(session, fspec, format=format, name=name, kw)
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 467, in open_data
filename, dname, stream = _compressed_open(filename, compression, mode, encoding=enc)
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 593, in _compressed_open
stream = stream_type(filename, *args, kw)
TypeError: init() got an unexpected keyword argument 'encoding'
Attachments (1)
Change History (3)
by , 9 years ago
| Attachment: | carlink2.cxs.gz added |
|---|
comment:1 by , 9 years ago
| Component: | Input/Output → Core |
|---|---|
| Owner: | set to |
| Priority: | major → critical |
| Status: | new → assigned |
comment:2 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Change from using gzip.GzipFile to gzip.open so that 'encoding' keyword is recognized. Same for bz2 and lzma.