| 1 | from chimerax.core.toolshed import NewerVersionQuery
|
|---|
| 2 | NewerVersionQuery.SESSION_SAVE=False
|
|---|
| 3 |
|
|---|
| 4 | from chimerax.core.commands import run
|
|---|
| 5 | run(session, "save /home/dzyla/OneDrive/Code/work/FectoFab_paper/figure_notebooks/F_mabs_session_comparison_linux.cxs")
|
|---|
| 6 | ---------------------------------------------------------------------------
|
|---|
| 7 | RuntimeError Traceback (most recent call last)
|
|---|
| 8 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:262, in _SaveManager.discovery(self, containers)
|
|---|
| 9 | 261 try:
|
|---|
| 10 | --> 262 self.processed[key] = self.process(obj, parents)
|
|---|
| 11 | 263 except UserError:
|
|---|
| 12 |
|
|---|
| 13 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:299, in _SaveManager.process(self, obj, parents)
|
|---|
| 14 | 298 return add_obj(obj, parents)
|
|---|
| 15 | --> 299 return copy_state(data, convert=convert)
|
|---|
| 16 |
|
|---|
| 17 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/state.py:219, in copy_state(data, convert)
|
|---|
| 18 | 217 return convert(data)
|
|---|
| 19 | --> 219 return _copy(data)
|
|---|
| 20 |
|
|---|
| 21 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/state.py:204, in copy_state.<locals>._copy(data)
|
|---|
| 22 | 203 if isinstance(data, Mapping):
|
|---|
| 23 | --> 204 items = [(_copy(k), _copy(v)) for k, v in data.items()]
|
|---|
| 24 | 205 elif isinstance(data, numpy.ndarray):
|
|---|
| 25 |
|
|---|
| 26 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/state.py:204, in <listcomp>(.0)
|
|---|
| 27 | 203 if isinstance(data, Mapping):
|
|---|
| 28 | --> 204 items = [(_copy(k), _copy(v)) for k, v in data.items()]
|
|---|
| 29 | 205 elif isinstance(data, numpy.ndarray):
|
|---|
| 30 |
|
|---|
| 31 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/state.py:204, in copy_state.<locals>._copy(data)
|
|---|
| 32 | 203 if isinstance(data, Mapping):
|
|---|
| 33 | --> 204 items = [(_copy(k), _copy(v)) for k, v in data.items()]
|
|---|
| 34 | 205 elif isinstance(data, numpy.ndarray):
|
|---|
| 35 |
|
|---|
| 36 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/state.py:204, in <listcomp>(.0)
|
|---|
| 37 | 203 if isinstance(data, Mapping):
|
|---|
| 38 | --> 204 items = [(_copy(k), _copy(v)) for k, v in data.items()]
|
|---|
| 39 | 205 elif isinstance(data, numpy.ndarray):
|
|---|
| 40 |
|
|---|
| 41 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/state.py:217, in copy_state.<locals>._copy(data)
|
|---|
| 42 | 215 else:
|
|---|
| 43 | 216 # Use state methods to convert object to primitives
|
|---|
| 44 | --> 217 return convert(data)
|
|---|
| 45 |
|
|---|
| 46 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:298, in _SaveManager.process.<locals>.convert(obj, parents, add_obj)
|
|---|
| 47 | 297 def convert(obj, parents=parents + (obj,), add_obj=self._add_obj):
|
|---|
| 48 | --> 298 return add_obj(obj, parents)
|
|---|
| 49 |
|
|---|
| 50 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:270, in _SaveManager._add_obj(self, obj, parents)
|
|---|
| 51 | 269 def _add_obj(self, obj, parents=()):
|
|---|
| 52 | --> 270 uid = _UniqueName.from_obj(self.session, obj)
|
|---|
| 53 | 271 self._found_objs.append(uid)
|
|---|
| 54 |
|
|---|
| 55 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:143, in _UniqueName.from_obj(cls, session, obj)
|
|---|
| 56 | 142 if obj_cls != bundle_info.get_class(obj_cls.__name__, session.logger):
|
|---|
| 57 | --> 143 raise RuntimeError(
|
|---|
| 58 | 144 'Unable to restore objects of %s class in %s bundle'
|
|---|
| 59 | 145 ' because the class name is not listed in the name to class table'
|
|---|
| 60 | 146 ' for session restore' %
|
|---|
| 61 | 147 (obj_cls.__name__, bundle_info.name))
|
|---|
| 62 | 149 if not known_class and bundle_info != 'builtin':
|
|---|
| 63 |
|
|---|
| 64 | RuntimeError: Unable to restore objects of NewerVersionQuery class in ChimeraX-Core bundle because the class name is not listed in the name to class table for session restore
|
|---|
| 65 |
|
|---|
| 66 | During handling of the above exception, another exception occurred:
|
|---|
| 67 |
|
|---|
| 68 | ValueError Traceback (most recent call last)
|
|---|
| 69 | Cell In[2], line 2
|
|---|
| 70 | 1 from chimerax.core.commands import run
|
|---|
| 71 | ----> 2 run(session, "save /home/dzyla/OneDrive/Code/work/FectoFab_paper/figure_notebooks/F_mabs_session_comparison_linux.cxs")
|
|---|
| 72 |
|
|---|
| 73 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/commands/run.py:38, in run(session, text, log, downgrade_errors, return_json, return_list)
|
|---|
| 74 | 36 command = Command(session)
|
|---|
| 75 | 37 try:
|
|---|
| 76 | ---> 38 results = command.run(text, log=log, return_json=return_json)
|
|---|
| 77 | 39 except UserError as err:
|
|---|
| 78 | 40 if downgrade_errors:
|
|---|
| 79 |
|
|---|
| 80 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/commands/cli.py:2897, in Command.run(self, text, log, log_only, return_json, _used_aliases)
|
|---|
| 81 | 2895 kw_args['log'] = log
|
|---|
| 82 | 2896 try:
|
|---|
| 83 | -> 2897 result = ci.function(session, **kw_args)
|
|---|
| 84 | 2898 except CancelOperation:
|
|---|
| 85 | 2899 if not self._ci.self_logging:
|
|---|
| 86 |
|
|---|
| 87 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/save_command/cmd.py:75, in cmd_save(session, file_name, rest_of_line, log)
|
|---|
| 88 | 73 session.logger.info(more_log_info, is_html=True)
|
|---|
| 89 | 74 raise
|
|---|
| 90 | ---> 75 Command(session, registry=registry).run(provider_cmd_text, log=log)
|
|---|
| 91 |
|
|---|
| 92 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/commands/cli.py:2897, in Command.run(self, text, log, log_only, return_json, _used_aliases)
|
|---|
| 93 | 2895 kw_args['log'] = log
|
|---|
| 94 | 2896 try:
|
|---|
| 95 | -> 2897 result = ci.function(session, **kw_args)
|
|---|
| 96 | 2898 except CancelOperation:
|
|---|
| 97 | 2899 if not self._ci.self_logging:
|
|---|
| 98 |
|
|---|
| 99 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/save_command/cmd.py:90, in provider_save(session, file_name, format, **provider_kw)
|
|---|
| 100 | 88 try:
|
|---|
| 101 | 89 saver_info = provider_info.bundle_info.run_provider(session, provider_info.format_name, mgr)
|
|---|
| 102 | ---> 90 saver_info.save(session, path, **provider_kw)
|
|---|
| 103 | 91 except (IOError, PermissionError, OSError) as e:
|
|---|
| 104 | 92 raise UserError("Cannot save '%s': %s" % (file_name, e))
|
|---|
| 105 |
|
|---|
| 106 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core_formats/__init__.py:84, in _SessionAPI.run_provider.<locals>.Info.save(self, session, path, **kw)
|
|---|
| 107 | 82 def save(self, session, path, **kw):
|
|---|
| 108 | 83 from chimerax.core.session import save as cxs_save
|
|---|
| 109 | ---> 84 return cxs_save(session, path, **kw)
|
|---|
| 110 |
|
|---|
| 111 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:901, in save(session, path, version, compress, include_maps)
|
|---|
| 112 | 899 session.session_file_path = path
|
|---|
| 113 | 900 try:
|
|---|
| 114 | --> 901 session.save(output, version=version, include_maps=include_maps)
|
|---|
| 115 | 902 except Exception:
|
|---|
| 116 | 903 if open_func is not None:
|
|---|
| 117 |
|
|---|
| 118 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:625, in Session.save(self, stream, version, include_maps)
|
|---|
| 119 | 621 fserialize(stream, metadata)
|
|---|
| 120 | 622 # guarantee that bundles are serialized first, so on restoration,
|
|---|
| 121 | 623 # all of the related code will be loaded before the rest of the
|
|---|
| 122 | 624 # session is restored
|
|---|
| 123 | --> 625 mgr.discovery(self._state_containers)
|
|---|
| 124 | 626 fserialize(stream, mgr.bundle_infos())
|
|---|
| 125 | 627 # TODO: collect OrderDAGError exceptions from walk and analyze
|
|---|
| 126 |
|
|---|
| 127 | File /usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/session.py:266, in _SaveManager.discovery(self, containers)
|
|---|
| 128 | 264 raise # For example map size is larger than 4 Gbyte msgpack limit.
|
|---|
| 129 | 265 except Exception as e:
|
|---|
| 130 | --> 266 raise ValueError("error processing: %s: %s" % (_obj_stack(parents, obj), e))
|
|---|
| 131 | 267 self.graph[key] = self._found_objs
|
|---|
| 132 |
|
|---|
| 133 | ValueError: error processing: 'tasks' -> <chimerax.core.tasks.Tasks object at 0x7f71a2b0a690>: Unable to restore objects of NewerVersionQuery class in ChimeraX-Core bundle because the class name is not listed in the name to class table for session restore
|
|---|