Skip to content

summon api: caching during interactive sessions #3062

@dmpetrov

Description

@dmpetrov
$ dvc -V
0.80.0+7f92cc

In Python session:

>>> import dvc.api
>>> m = dvc.api.summon('resnext101', 'https://github.com/dmpetrov/dvc-pretrained-resnet', 'test_summon', 'resnext101_32x8d.yml')
...
dvc.api.SummonError: extra keys not allowed @ data['objects'][0]['summon']['file'] at 'resnext101_32x8d.yml' in 'https://github.com/dmpetrov/dvc-pretrained-resnet'

I fix the error in the repo without leaving the Python session and summon the object again:

>>> import dvc.api
>>> m = dvc.api.summon('resnext101', 'https://github.com/dmpetrov/dvc-pretrained-resnet', 'test_summon', 'resnext101_32x8d.yml')
...
dvc.api.SummonError: extra keys not allowed @ data['objects'][0]['summon']['file'] at 'resnext101_32x8d.yml' in 'https://github.com/dmpetrov/dvc-pretrained-resnet'

The same error while the issue is fixed.

This issue affects one of the summon scenarios - using data objects from interactive IDEs such as Jupyther Notebooks and RStudio.

Metadata

Metadata

Assignees

Labels

enhancementEnhances DVCp1-importantImportant, aka current backlog of things to doproduct: VSCodeIntegration with VSCode extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions