Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aim runs cp on fresh aim init causes KeyError: No key ('contexts', ...) is presentΒ #2188

@YodaEmbedding

Description

@YodaEmbedding

πŸ› Bug

Aim Runs page is blank and raises error after running aim runs cp on fresh aim init.

To reproduce

mkdir new_repo && cd new_repo
aim init
cd ../old_repo
aim runs cp $(aim runs ls | head -n -1) --destination=../new_repo
cd ../new_repo
aim up

Navigate to Runs page.

Output:

...
  File ".../aim/web/api/runs/utils.py", line 251, in run_search_result_streamer
    'traces': run.collect_sequence_info(sequence_types='metric'),
  File ".../aim/sdk/run.py", line 669, in collect_sequence_info
    ctx_dict = self.idx_to_ctx(idx).to_dict()
  File ".../aim/sdk/run.py", line 353, in idx_to_ctx
    return self._tracker.idx_to_ctx(idx)
  File ".../aim/sdk/tracker.py", line 80, in idx_to_ctx
    ctx = Context(self.meta_tree['contexts', idx])
  File "aim/storage/treeview.py", line 51, in aim.storage.treeview.TreeView.__getitem__
  File "aim/storage/containertreeview.py", line 74, in aim.storage.containertreeview.ContainerTreeView.collect
KeyError: "No key ('contexts', 917550741257467117) is present."

Expected behavior

No error. Non-blank runs page.

Environment

  • Aim Version: 3.13.2
  • Python version: 3.8
  • pip version: 22.1
  • OS: Linux
  • Any other relevant information

Additional context

N/A

Metadata

Metadata

Assignees

Labels

area / SDK-storageIssue area: SDK and storage related issueshelp wantedExtra attention is neededphase / in-progressIssue phase: issue is in the development phasetype / bugIssue type: something isn't working

Type

No type

Projects

Status

Patch-issues

Relationships

None yet

Development

No branches or pull requests

Issue actions