Dvc: summon api: caching during interactive sessions

Created on 5 Jan 2020  路  2Comments  路  Source: iterative/dvc

$ 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.

c8-full-day enhancement p1-important product

Most helpful comment

But you generally want caching during interactive sessions. I.e. you don't want to type in password each time. So we should somehow provide both.

UPDATE. Simply running git pull each time might fix this.

All 2 comments

FYI: If you try to reproduce - in dmpetrov/dvc-pretrained-resnet repo I merged the test_summon branch to master and transfered the repo to iterative/dvc-pretrained-resnet.

But you generally want caching during interactive sessions. I.e. you don't want to type in password each time. So we should somehow provide both.

UPDATE. Simply running git pull each time might fix this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevin-hanselman picture kevin-hanselman  路  37Comments

JoeyCarson picture JoeyCarson  路  53Comments

jorgeorpinel picture jorgeorpinel  路  45Comments

mdekstrand picture mdekstrand  路  43Comments

drorata picture drorata  路  46Comments