Opened 7 years ago
Closed 7 years ago
#1397 closed defect (fixed)
All sessions broken
| Reported by: | Eric Pettersen | Owned by: | Greg Couch |
|---|---|---|---|
| Priority: | critical | Milestone: | 0.8 |
| Component: | Sessions | Version: | |
| Keywords: | Cc: | chimera-programmers, Elaine Meng | |
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
The changes to support tinyarray now cause all session restores to fail with:
init() got an unexpected keyword argument 'raw'
Change History (4)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Here's the full traceback:
Traceback (most recent call last):
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/gui.py", line 529, in customEvent
func(*args, kw)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/widgets/htmlview.py", line 278, in defer
cxcmd(session, topic)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/ui/widgets/htmlview.py", line 370, in cxcmd
run(session, cmd)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/run.py", line 31, in run
results = command.run(text, log=log)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2563, in run
result = ci.function(session, kw_args)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 41, in open
from_database=from_database, ignore_cache=ignore_cache, kw))
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 110, in open
models = handle_unknown_kw(session.models.open, paths, format=format, name=name, kw)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 62, in handle_unknown_kw
return f(*args, kw)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/models.py", line 583, in open
session, filenames, format=format, name=name, kw)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/io.py", line 461, in open_multiple_data
models, status = open_data(session, fspec, format=format, name=name, kw)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/io.py", line 416, in open_data
models, status = open_func(*args, kw)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/session.py", line 815, in open
session.restore(stream, path=path, resize_window=resize_window)
File "/Users/pett/src/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/session.py", line 536, in restore
stream = serialize.msgpack_deserialize_stream(stream)
File "_serialize.pyx", line 317, in core._serialize.msgpack_deserialize_stream
unpacker = Unpacker(stream, _unpacker_args)
File "msgpack/_unpacker.pyx", line 327, in msgpack._unpacker.Unpacker.init
TypeError: init() got an unexpected keyword argument 'raw'
comment:3 by , 7 years ago
This is due to both the msgpack-python and msgpack packages being installed. msgpack replaces msgpack-python with a newer. backwards compatible, API. Not sure yet where msgpack-python is coming from.
comment:4 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
msgpack-python was explicitly being installed in prereqs/msgpack, in addition to msgpack being installed in prereq/pips/. Now, only install the one in prereq/pips (from pypi). To fix today's daily build, do "ChimeraX.app/bin/python3.6 -m pip uninstall msgpack msgpack-python" followed by "ChimeraX.app/bin/python3.6 -m pip install msgpack". ChimeraX.app/Contents/bin/python3.6 on macOS.
The session might need to contain a structure.