after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def _collect_experiment(repo, branch, stash=False, sha_only=True): from git.exc import GitCommandError res = defaultdict(dict) for rev in repo.brancher(revs=[branch]): if rev == "workspace": res["timestamp"] = None else: commit = _resolve_commit(repo, rev) ...
def _collect_experiment(repo, branch, stash=False, sha_only=True): from git.exc import GitCommandError res = defaultdict(dict) for rev in repo.brancher(revs=[branch]): if rev == "workspace": res["timestamp"] = None else: commit = repo.scm.repo.rev_parse(rev) ...
https://github.com/iterative/dvc/issues/4587
dvc exp show -T -v 2020-09-21 17:33:07,541 DEBUG: Check for update is enabled. 2020-09-21 17:33:07,570 DEBUG: fetched: [(3,)] 2020-09-21 17:33:08,049 DEBUG: fetched: [(75,)] 2020-09-21 17:33:08,058 ERROR: failed to show experiments - unknown Git revision 'f97e3cca64d10c299f7e9e54dd22889c6ee7a1b4, decouple/base' -------...
dvc.scm.base.RevError
def show( repo, all_branches=False, all_tags=False, revs=None, all_commits=False, sha_only=False, ): res = defaultdict(OrderedDict) if revs is None: revs = [repo.scm.get_rev()] revs = OrderedDict( (rev, None) for rev in repo.brancher( revs=revs, ...
def show( repo, all_branches=False, all_tags=False, revs=None, all_commits=False, sha_only=False, ): res = defaultdict(OrderedDict) if revs is None: revs = [repo.scm.get_rev()] revs = OrderedDict( (rev, None) for rev in repo.brancher( revs=revs, ...
https://github.com/iterative/dvc/issues/4587
dvc exp show -T -v 2020-09-21 17:33:07,541 DEBUG: Check for update is enabled. 2020-09-21 17:33:07,570 DEBUG: fetched: [(3,)] 2020-09-21 17:33:08,049 DEBUG: fetched: [(75,)] 2020-09-21 17:33:08,058 ERROR: failed to show experiments - unknown Git revision 'f97e3cca64d10c299f7e9e54dd22889c6ee7a1b4, decouple/base' -------...
dvc.scm.base.RevError
def _checkout_default_branch(self): from git.refs.symbolic import SymbolicReference # switch to default branch git_repo = self.scm.repo origin_refs = git_repo.remotes["origin"].refs # origin/HEAD will point to tip of the default branch unless we # initially cloned a repo that was in a detached...
def _checkout_default_branch(self): # switch to default branch git_repo = self.scm.repo origin_refs = git_repo.remotes["origin"].refs ref = origin_refs["HEAD"].reference branch_name = ref.name.split("/")[-1] if branch_name in git_repo.heads: branch = git_repo.heads[branch_name] else:...
https://github.com/iterative/dvc/issues/4585
2020-09-21 16:46:48,685 DEBUG: Check for update is enabled. 2020-09-21 16:46:48,686 DEBUG: assuming default target 'dvc.yaml'. 2020-09-21 16:46:48,687 DEBUG: fetched: [(3,)] 2020-09-21 16:46:48,720 DEBUG: fetched: [(68,)] 2020-09-21 16:46:48,728 ERROR: unexpected error - No item found with id 'origin/HEAD': 'IterableLi...
AttributeError
def get_url(path, repo=None, rev=None, remote=None): """ Returns the URL to the storage location of a data file or directory tracked in a DVC repo. For Git repos, HEAD is used unless a rev argument is supplied. The default remote is tried unless a remote argument is supplied. Raises OutputNotFoundE...
def get_url(path, repo=None, rev=None, remote=None): """ Returns the URL to the storage location of a data file or directory tracked in a DVC repo. For Git repos, HEAD is used unless a rev argument is supplied. The default remote is tried unless a remote argument is supplied. Raises OutputNotFoundE...
https://github.com/iterative/dvc/issues/4575
Traceback (most recent call last): File "x.py", line 6, in <module> print(dvc.api.get_url("some_dir")) File "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/api.py", line 37, in get_url hash_info = _repo.repo_tree.get_hash(path_info) File "/Users/matthieu/conda/lib/python3.6/site-packages/dvc/tree/base.py", line ...
AttributeError
def save_dir_info(self, dir_info, hash_info=None): if ( hash_info and hash_info.name == self.tree.PARAM_CHECKSUM and not self.changed_cache_file(hash_info) ): return hash_info hi, tmp_info = self._get_dir_info_hash(dir_info) new_info = self.tree.hash_to_path_info(hi.valu...
def save_dir_info(self, dir_info, hash_info=None): if hash_info and not self.changed_cache_file(hash_info): return hash_info hi, tmp_info = self._get_dir_info_hash(dir_info) if hash_info: assert hi == hash_info new_info = self.tree.hash_to_path_info(hi.value) if self.changed_cache_...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_dir_hash(self, path_info, **kwargs): dir_info = self._collect_dir(path_info, **kwargs) return self.repo.cache.local.save_dir_info(dir_info)
def get_dir_hash(self, path_info, **kwargs): if not self.cache: raise RemoteCacheRequiredError(path_info) dir_info = self._collect_dir(path_info, **kwargs) return self.cache.save_dir_info(dir_info)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def checksum(self): return self.info.get(self.tree.PARAM_CHECKSUM)
def checksum(self, checksum): self.info[self.tree.PARAM_CHECKSUM] = checksum
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def fill_from_lock(stage, lock_data=None): """Fill values for params, checksums for outs and deps from lock.""" if not lock_data: return assert isinstance(lock_data, dict) items = chain( ((StageParams.PARAM_DEPS, dep) for dep in stage.deps), ((StageParams.PARAM_OUTS, out) for ou...
def fill_from_lock(stage, lock_data=None): """Fill values for params, checksums for outs and deps from lock.""" if not lock_data: return assert isinstance(lock_data, dict) items = chain( ((StageParams.PARAM_DEPS, dep) for dep in stage.deps), ((StageParams.PARAM_OUTS, out) for ou...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def to_single_stage_lockfile(stage: "Stage") -> dict: assert stage.cmd res = OrderedDict([("cmd", stage.cmd)]) params, deps = split_params_deps(stage) deps, outs = [ [ OrderedDict([(PARAM_PATH, item.def_path), *item.info.items()]) for item in sort_by_path(items) ...
def to_single_stage_lockfile(stage: "Stage") -> dict: assert stage.cmd res = OrderedDict([("cmd", stage.cmd)]) params, deps = split_params_deps(stage) deps, outs = [ [ OrderedDict( [ (PARAM_PATH, item.def_path), (item.checksum_...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def changed(self, path_info, hash_info): """Checks if data has changed. A file is considered changed if: - It doesn't exist on the working directory (was unlinked) - Hash value is not computed (saving a new file) - The hash value stored is different from the given one - There's ...
def changed(self, path_info, hash_info): """Checks if data has changed. A file is considered changed if: - It doesn't exist on the working directory (was unlinked) - Hash value is not computed (saving a new file) - The hash value stored is different from the given one - There's ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def changed_cache_file(self, hash_): """Compare the given hash with the (corresponding) actual one. - Use `State` as a cache for computed hashes + The entries are invalidated by taking into account the following: * mtime * inode * size * hash - Remov...
def changed_cache_file(self, hash_): """Compare the given hash with the (corresponding) actual one. - Use `State` as a cache for computed hashes + The entries are invalidated by taking into account the following: * mtime * inode * size * hash - Remov...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def merge(self, ancestor_info, our_info, their_info): assert our_info assert their_info if ancestor_info: ancestor_hash = ancestor_info[self.tree.PARAM_CHECKSUM] ancestor = self.get_dir_cache(ancestor_hash) else: ancestor = [] our_hash = our_info[self.tree.PARAM_CHECKSUM] ...
def merge(self, ancestor_info, our_info, their_info): assert our_info assert their_info if ancestor_info: ancestor_hash = ancestor_info[self.tree.PARAM_CHECKSUM] ancestor = self.get_dir_cache(ancestor_hash) else: ancestor = [] our_hash = our_info[self.tree.PARAM_CHECKSUM] ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def already_cached(self, path_info): assert path_info.scheme in ["", "local"] current = self.tree.get_hash(path_info) assert current.name == "md5" if not current: return False return not self.changed_cache(current.value)
def already_cached(self, path_info): assert path_info.scheme in ["", "local"] typ, current_md5 = self.tree.get_hash(path_info) assert typ == "md5" if not current_md5: return False return not self.changed_cache(current_md5)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _get_checksum(self, locked=True): from dvc.tree.repo import RepoTree with self._make_repo(locked=locked) as repo: try: return repo.find_out_by_relpath(self.def_path).info["md5"] except OutputNotFoundError: path = PathInfo(os.path.join(repo.root_dir, self.def_path)) ...
def _get_checksum(self, locked=True): from dvc.tree.repo import RepoTree with self._make_repo(locked=locked) as repo: try: return repo.find_out_by_relpath(self.def_path).info["md5"] except OutputNotFoundError: path = PathInfo(os.path.join(repo.root_dir, self.def_path)) ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_checksum(self): return self.tree.get_hash(self.path_info).value
def get_checksum(self): return self.tree.get_hash(self.path_info)[1]
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def diff(self, a_rev="HEAD", b_rev=None): """ By default, it compares the workspace with the last commit's tree. This implementation differs from `git diff` since DVC doesn't have the concept of `index`, but it keeps the same interface, thus, `dvc diff` would be the same as `dvc diff HEAD`. """...
def diff(self, a_rev="HEAD", b_rev=None): """ By default, it compares the workspace with the last commit's tree. This implementation differs from `git diff` since DVC doesn't have the concept of `index`, but it keeps the same interface, thus, `dvc diff` would be the same as `dvc diff HEAD`. """...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _paths_checksums(): """ A dictionary of checksums addressed by relpaths collected from the current tree outputs. To help distinguish between a directory and a file output, the former one will come with a trailing slash in the path: directory: "data/" file: "data" """ ...
def _paths_checksums(): """ A dictionary of checksums addressed by relpaths collected from the current tree outputs. To help distinguish between a directory and a file output, the former one will come with a trailing slash in the path: directory: "data/" file: "data" """ ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _to_checksum(output): if on_working_tree: return self.cache.local.tree.get_hash(output.path_info).value return output.checksum
def _to_checksum(output): if on_working_tree: return self.cache.local.tree.get_hash(output.path_info)[1] return output.checksum
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): return HashInfo(self.PARAM_CHECKSUM, self.get_etag(path_info))
def get_file_hash(self, path_info): return self.PARAM_CHECKSUM, self.get_etag(path_info)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_hash(self, path_info, **kwargs): assert path_info and (isinstance(path_info, str) or path_info.scheme == self.scheme) if not self.exists(path_info): return None # pylint: disable=assignment-from-none hash_ = self.state.get(path_info) # If we have dir hash in state db, but dir cach...
def get_hash(self, path_info, **kwargs): assert path_info and (isinstance(path_info, str) or path_info.scheme == self.scheme) if not self.exists(path_info): return self.PARAM_CHECKSUM, None # pylint: disable=assignment-from-none hash_ = self.state.get(path_info) # If we have dir hash in s...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def save_info(self, path_info, **kwargs): hash_info = self.get_hash(path_info, **kwargs) return {hash_info.name: hash_info.value}
def save_info(self, path_info, **kwargs): typ, hash_ = self.get_hash(path_info, **kwargs) return {typ: hash_}
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _calculate_hashes(self, file_infos): file_infos = list(file_infos) with Tqdm( total=len(file_infos), unit="md5", desc="Computing file/dir hashes (only done once)", ) as pbar: worker = pbar.wrap_fn(self.get_file_hash) with ThreadPoolExecutor(max_workers=self.hash_j...
def _calculate_hashes(self, file_infos): file_infos = list(file_infos) with Tqdm( total=len(file_infos), unit="md5", desc="Computing file/dir hashes (only done once)", ) as pbar: worker = pbar.wrap_fn(self.get_file_hash) with ThreadPoolExecutor(max_workers=self.hash_j...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def save_dir_info(self, dir_info): hash_info, tmp_info = self._get_dir_info_hash(dir_info) new_info = self.cache.tree.hash_to_path_info(hash_info.value) if self.cache.changed_cache_file(hash_info.value): self.cache.tree.makedirs(new_info.parent) self.cache.tree.move(tmp_info, new_info, mode=...
def save_dir_info(self, dir_info): typ, hash_, tmp_info = self._get_dir_info_hash(dir_info) new_info = self.cache.tree.hash_to_path_info(hash_) if self.cache.changed_cache_file(hash_): self.cache.tree.makedirs(new_info.parent) self.cache.tree.move(tmp_info, new_info, mode=self.cache.CACHE_MO...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _get_dir_info_hash(self, dir_info): # Sorting the list by path to ensure reproducibility dir_info = sorted(dir_info, key=itemgetter(self.PARAM_RELPATH)) tmp = tempfile.NamedTemporaryFile(delete=False).name with open(tmp, "w+") as fobj: json.dump(dir_info, fobj, sort_keys=True) tree = s...
def _get_dir_info_hash(self, dir_info): # Sorting the list by path to ensure reproducibility dir_info = sorted(dir_info, key=itemgetter(self.PARAM_RELPATH)) tmp = tempfile.NamedTemporaryFile(delete=False).name with open(tmp, "w+") as fobj: json.dump(dir_info, fobj, sort_keys=True) tree = s...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_dir_hash(self, path_info, **kwargs): try: outs = self._find_outs(path_info, strict=True) if len(outs) == 1 and outs[0].is_dir_checksum: out = outs[0] # other code expects us to fetch the dir at this point self._fetch_dir(out, **kwargs) return H...
def get_dir_hash(self, path_info, **kwargs): try: outs = self._find_outs(path_info, strict=True) if len(outs) == 1 and outs[0].is_dir_checksum: out = outs[0] # other code expects us to fetch the dir at this point self._fetch_dir(out, **kwargs) return o...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): outs = self._find_outs(path_info, strict=False) if len(outs) != 1: raise OutputNotFoundError out = outs[0] if out.is_dir_checksum: return HashInfo( out.tree.PARAM_CHECKSUM, self._get_granular_checksum(path_info, out), ) ...
def get_file_hash(self, path_info): outs = self._find_outs(path_info, strict=False) if len(outs) != 1: raise OutputNotFoundError out = outs[0] if out.is_dir_checksum: return ( out.tree.PARAM_CHECKSUM, self._get_granular_checksum(path_info, out), ) retu...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): import base64 import codecs bucket = path_info.bucket path = path_info.path blob = self.gs.bucket(bucket).get_blob(path) if not blob: return HashInfo(self.PARAM_CHECKSUM, None) b64_md5 = blob.md5_hash md5 = base64.b64decode(b64_md5) retur...
def get_file_hash(self, path_info): import base64 import codecs bucket = path_info.bucket path = path_info.path blob = self.gs.bucket(bucket).get_blob(path) if not blob: return self.PARAM_CHECKSUM, None b64_md5 = blob.md5_hash md5 = base64.b64decode(b64_md5) return ( ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): # NOTE: pyarrow doesn't support checksum, so we need to use hadoop regex = r".*\t.*\t(?P<checksum>.*)" stdout = self.hadoop_fs(f"checksum {path_info.url}", user=path_info.user) return HashInfo(self.PARAM_CHECKSUM, self._group(regex, stdout, "checksum"))
def get_file_hash(self, path_info): # NOTE: pyarrow doesn't support checksum, so we need to use hadoop regex = r".*\t.*\t(?P<checksum>.*)" stdout = self.hadoop_fs(f"checksum {path_info.url}", user=path_info.user) return self.PARAM_CHECKSUM, self._group(regex, stdout, "checksum")
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): url = path_info.url headers = self._head(url).headers etag = headers.get("ETag") or headers.get("Content-MD5") if not etag: raise DvcException( "could not find an ETag or Content-MD5 header for '{url}'".format(url=url) ) return Hash...
def get_file_hash(self, path_info): url = path_info.url headers = self._head(url).headers etag = headers.get("ETag") or headers.get("Content-MD5") if not etag: raise DvcException( "could not find an ETag or Content-MD5 header for '{url}'".format(url=url) ) return self...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): return HashInfo(self.PARAM_CHECKSUM, file_md5(path_info)[0])
def get_file_hash(self, path_info): return self.PARAM_CHECKSUM, file_md5(path_info)[0]
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): """Return file checksum for specified path. If path_info is a DVC out, the pre-computed checksum for the file will be used. If path_info is a git file, MD5 will be computed for the git object. """ if not self.exists(path_info): raise FileNotFoundError...
def get_file_hash(self, path_info): """Return file checksum for specified path. If path_info is a DVC out, the pre-computed checksum for the file will be used. If path_info is a git file, MD5 will be computed for the git object. """ if not self.exists(path_info): raise FileNotFoundError...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): with self._get_obj(path_info) as obj: return HashInfo(self.PARAM_CHECKSUM, obj.e_tag.strip('"'))
def get_file_hash(self, path_info): with self._get_obj(path_info) as obj: return ( self.PARAM_CHECKSUM, obj.e_tag.strip('"'), )
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): if path_info.scheme != self.scheme: raise NotImplementedError with self.ssh(path_info) as ssh: return HashInfo(self.PARAM_CHECKSUM, ssh.md5(path_info.path))
def get_file_hash(self, path_info): if path_info.scheme != self.scheme: raise NotImplementedError with self.ssh(path_info) as ssh: return self.PARAM_CHECKSUM, ssh.md5(path_info.path)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_file_hash(self, path_info): # Use webdav client info method to get etag etag = self._client.info(path_info.path)["etag"].strip('"') # From HTTPTree if not etag: raise DvcException( "could not find an ETag or Content-MD5 header for '{url}'".format( url=path_in...
def get_file_hash(self, path_info): # Use webdav client info method to get etag etag = self._client.info(path_info.path)["etag"].strip('"') # From HTTPTree if not etag: raise DvcException( "could not find an ETag or Content-MD5 header for '{url}'".format( url=path_in...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def merge(self, ancestor_info, our_info, their_info): assert our_info assert their_info if ancestor_info: ancestor_hash = ancestor_info.value ancestor = self.get_dir_cache(ancestor_hash) else: ancestor = [] our_hash = our_info.value our = self.get_dir_cache(our_hash) ...
def merge(self, ancestor_info, our_info, their_info): assert our_info assert their_info if ancestor_info: ancestor_hash = ancestor_info[self.tree.PARAM_CHECKSUM] ancestor = self.get_dir_cache(ancestor_hash) else: ancestor = [] our_hash = our_info[self.tree.PARAM_CHECKSUM] ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def __init__(self, stage, path, params): info = {} self.params = [] if params: if isinstance(params, list): self.params = params else: assert isinstance(params, dict) self.params = list(params.keys()) info = {self.PARAM_PARAMS: params} sup...
def __init__(self, stage, path, params): info = {} self.params = [] if params: if isinstance(params, list): self.params = params else: assert isinstance(params, dict) self.params = list(params.keys()) info = params super().__init__( ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def dumpd(self): ret = super().dumpd() if not self.hash_info: ret[self.PARAM_PARAMS] = self.params return ret
def dumpd(self): return { self.PARAM_PATH: self.def_path, self.PARAM_PARAMS: self.info or self.params, }
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def fill_values(self, values=None): """Load params values dynamically.""" if not values: return info = {} for param in self.params: if param in values: info[param] = values[param] self.hash_info = HashInfo(self.PARAM_PARAMS, info)
def fill_values(self, values=None): """Load params values dynamically.""" if not values: return for param in self.params: if param in values: self.info[param] = values[param]
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def status(self): return self.workspace_status()
def status(self): status = super().status() if status[str(self)] == "deleted": return status status = defaultdict(dict) info = self.read_params() for param in self.params: if param not in info.keys(): st = "deleted" elif param not in self.info: st = ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def workspace_status(self): current = self._get_hash(locked=True) updated = self._get_hash(locked=False) if current != updated: return {str(self): "update available"} return {}
def workspace_status(self): current_checksum = self._get_checksum(locked=True) updated_checksum = self._get_checksum(locked=False) if current_checksum != updated_checksum: return {str(self): "update available"} return {}
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def fetch_external(self, paths: Iterable, **kwargs): """Fetch specified external repo paths into cache. Returns 3-tuple in the form (downloaded, failed, list(cache_infos)) where cache_infos can be used as checkout targets for the fetched paths. """ download_results = [] failed = 0 ...
def fetch_external(self, paths: Iterable, **kwargs): """Fetch specified external repo paths into cache. Returns 3-tuple in the form (downloaded, failed, list(cache_infos)) where cache_infos can be used as checkout targets for the fetched paths. """ download_results = [] failed = 0 ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def __init__( self, stage, path, info=None, tree=None, cache=True, metric=False, plot=False, persist=False, ): self._validate_output_path(path, stage) # This output (and dependency) objects have too many paths/urls # here is a list and comments: # # .def_path - ...
def __init__( self, stage, path, info=None, tree=None, cache=True, metric=False, plot=False, persist=False, ): self._validate_output_path(path, stage) # This output (and dependency) objects have too many paths/urls # here is a list and comments: # # .def_path - ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def checksum(self): return self.hash_info.value
def checksum(self): return self.info.get(self.tree.PARAM_CHECKSUM)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_checksum(self): return self.get_hash().value
def get_checksum(self): return self.tree.get_hash(self.path_info).value
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def save(self): if not self.exists: raise self.DoesNotExistError(self) if not self.isfile and not self.isdir: raise self.IsNotFileOrDirError(self) if self.is_empty: logger.warning(f"'{self}' is empty.") self.ignore() if self.metric or self.plot: self.verify_metric...
def save(self): if not self.exists: raise self.DoesNotExistError(self) if not self.isfile and not self.isdir: raise self.IsNotFileOrDirError(self) if self.is_empty: logger.warning(f"'{self}' is empty.") self.ignore() if self.metric or self.plot: self.verify_metric...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def commit(self): assert self.hash_info if self.use_cache: self.cache.save(self.path_info, self.cache.tree, self.hash_info.to_dict())
def commit(self): assert self.info if self.use_cache: self.cache.save(self.path_info, self.cache.tree, self.info)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def dumpd(self): ret = copy(self.hash_info.to_dict()) ret[self.PARAM_PATH] = self.def_path if self.IS_DEPENDENCY: return ret if not self.use_cache: ret[self.PARAM_CACHE] = self.use_cache if isinstance(self.metric, dict): if ( self.PARAM_METRIC_XPATH in self.met...
def dumpd(self): ret = copy(self.info) ret[self.PARAM_PATH] = self.def_path if self.IS_DEPENDENCY: return ret if not self.use_cache: ret[self.PARAM_CACHE] = self.use_cache if isinstance(self.metric, dict): if ( self.PARAM_METRIC_XPATH in self.metric ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def checkout( self, force=False, progress_callback=None, relink=False, filter_info=None, ): if not self.use_cache: if progress_callback: progress_callback(str(self.path_info), self.get_files_number(filter_info)) return None return self.cache.checkout( sel...
def checkout( self, force=False, progress_callback=None, relink=False, filter_info=None, ): if not self.use_cache: if progress_callback: progress_callback(str(self.path_info), self.get_files_number(filter_info)) return None return self.cache.checkout( sel...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def merge(self, ancestor, other): assert other if ancestor: self._check_can_merge(ancestor) ancestor_info = ancestor.hash_info else: ancestor_info = None self._check_can_merge(self) self._check_can_merge(other) self.hash_info = self.cache.merge(ancestor_info, self.hash...
def merge(self, ancestor, other): assert other if ancestor: self._check_can_merge(ancestor) ancestor_info = ancestor.info else: ancestor_info = None self._check_can_merge(self) self._check_can_merge(other) self.info = self.cache.merge(ancestor_info, self.info, other.in...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def fill_from_lock(stage, lock_data=None): """Fill values for params, checksums for outs and deps from lock.""" if not lock_data: return assert isinstance(lock_data, dict) items = chain( ((StageParams.PARAM_DEPS, dep) for dep in stage.deps), ((StageParams.PARAM_OUTS, out) for ou...
def fill_from_lock(stage, lock_data=None): """Fill values for params, checksums for outs and deps from lock.""" if not lock_data: return assert isinstance(lock_data, dict) items = chain( ((StageParams.PARAM_DEPS, dep) for dep in stage.deps), ((StageParams.PARAM_OUTS, out) for ou...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def to_single_stage_lockfile(stage: "Stage") -> dict: assert stage.cmd res = OrderedDict([("cmd", stage.cmd)]) params, deps = split_params_deps(stage) deps, outs = [ [ OrderedDict( [ (PARAM_PATH, item.def_path), *item.hash_info...
def to_single_stage_lockfile(stage: "Stage") -> dict: assert stage.cmd res = OrderedDict([("cmd", stage.cmd)]) params, deps = split_params_deps(stage) deps, outs = [ [ OrderedDict([(PARAM_PATH, item.def_path), *item.info.items()]) for item in sort_by_path(items) ...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _save_dir(self, path_info, tree, hash_info, save_link=True, **kwargs): if not hash_info.dir_info: hash_info.dir_info = tree.cache.get_dir_cache(hash_info) hi = self.save_dir_info(hash_info.dir_info, hash_info) for entry in Tqdm(hi.dir_info, desc="Saving " + path_info.name, unit="file"): ...
def _save_dir(self, path_info, tree, hash_info, save_link=True, **kwargs): dir_info = self.get_dir_cache(hash_info) for entry in Tqdm(dir_info, desc="Saving " + path_info.name, unit="file"): entry_info = path_info / entry[self.tree.PARAM_RELPATH] entry_hash = HashInfo(self.tree.PARAM_CHECKSUM, e...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _merge_dirs(self, ancestor_info, our_info, their_info): from dictdiffer import patch ancestor = self._to_dict(ancestor_info) our = self._to_dict(our_info) their = self._to_dict(their_info) our_diff = self._diff(ancestor, our) if not our_diff: return self._from_dict(their) thei...
def _merge_dirs(self, ancestor_info, our_info, their_info): from operator import itemgetter from dictdiffer import patch ancestor = self._to_dict(ancestor_info) our = self._to_dict(our_info) their = self._to_dict(their_info) our_diff = self._diff(ancestor, our) if not our_diff: re...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def merge(self, ancestor_info, our_info, their_info): assert our_info assert their_info if ancestor_info: ancestor = self.get_dir_cache(ancestor_info) else: ancestor = [] our = self.get_dir_cache(our_info) their = self.get_dir_cache(their_info) merged = self._merge_dirs(an...
def merge(self, ancestor_info, our_info, their_info): assert our_info assert their_info if ancestor_info: ancestor = self.get_dir_cache(ancestor_info) else: ancestor = [] our = self.get_dir_cache(our_info) their = self.get_dir_cache(their_info) merged = self._merge_dirs(an...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_hash(self): if not self.use_cache: return self.tree.get_hash(self.path_info) return self.cache.get_hash(self.tree, self.path_info)
def get_hash(self): return self.tree.get_hash(self.path_info)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_hash(self, path_info, **kwargs): assert path_info and (isinstance(path_info, str) or path_info.scheme == self.scheme) if not self.exists(path_info): return None # pylint: disable=assignment-from-none hash_ = self.state.get(path_info) # If we have dir hash in state db, but dir cach...
def get_hash(self, path_info, **kwargs): assert path_info and (isinstance(path_info, str) or path_info.scheme == self.scheme) if not self.exists(path_info): return None # pylint: disable=assignment-from-none hash_ = self.state.get(path_info) # If we have dir hash in state db, but dir cach...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _collect_dir(self, path_info, **kwargs): file_infos = set() for fname in self.walk_files(path_info, **kwargs): if DvcIgnore.DVCIGNORE_FILE == fname.name: raise DvcIgnoreInCollectedDirError(fname.parent) file_infos.add(fname) hashes = {fi: self.state.get(fi) for fi in file_...
def _collect_dir(self, path_info, **kwargs): file_infos = set() for fname in self.walk_files(path_info, **kwargs): if DvcIgnore.DVCIGNORE_FILE == fname.name: raise DvcIgnoreInCollectedDirError(fname.parent) file_infos.add(fname) hashes = {fi: self.state.get(fi) for fi in file_...
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def get_dir_hash(self, path_info, **kwargs): if not self.cache: raise RemoteCacheRequiredError(path_info) dir_info = self._collect_dir(path_info, **kwargs) return self.cache.save_dir_info(dir_info)
def get_dir_hash(self, path_info, **kwargs): if not self.cache: raise RemoteCacheRequiredError(path_info) dir_info = self._collect_dir(path_info, **kwargs) return self.save_dir_info(dir_info)
https://github.com/iterative/dvc/issues/4144
2020-07-01 17:14:02,947 DEBUG: fetched: [(3,)] 2020-07-01 17:14:03,123 DEBUG: Removing output 'some_target' of stage: 'some_target.dvc'. Importing 's3://some_bucket/some_target' -> 'some_target' 2020-07-01 17:14:03,123 DEBUG: Computed stage: 'some_target.dvc' md5: '2f8b87d3b22efd1638f414c3b3f65614' 2020-07-01 17:14:03,...
dvc.exceptions.RemoteCacheRequiredError
def _update_names(names, items): for name, item in items: if isinstance(item, dict): item = flatten(item) names.update(item.keys()) else: names.add(name)
def _update_names(names, items): from flatten_json import flatten for name, item in items: if isinstance(item, dict): item = flatten(item, ".") names.update(item.keys()) else: names.add(name)
https://github.com/iterative/dvc/issues/4499
2020-08-30 08:57:43,226 DEBUG: fetched: [(3,)] 2020-08-30 08:57:43,228 DEBUG: fetched: [(21770,)] 2020-08-30 08:57:43,246 ERROR: unexpected error - cannot import name 'check_if_numbers_are_consecutive' ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/p...
ImportError
def _extend_row(row, names, items, precision): def _round(val): if isinstance(val, float): return round(val, precision) return val if not items: row.extend(["-"] * len(names)) return for fname, item in items: if isinstance(item, dict): item ...
def _extend_row(row, names, items, precision): from flatten_json import flatten def _round(val): if isinstance(val, float): return round(val, precision) return val if not items: row.extend(["-"] * len(names)) return for fname, item in items: if isi...
https://github.com/iterative/dvc/issues/4499
2020-08-30 08:57:43,226 DEBUG: fetched: [(3,)] 2020-08-30 08:57:43,228 DEBUG: fetched: [(21770,)] 2020-08-30 08:57:43,246 ERROR: unexpected error - cannot import name 'check_if_numbers_are_consecutive' ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/p...
ImportError
def show_metrics(metrics, all_branches=False, all_tags=False, all_commits=False): from dvc.utils.diff import format_dict from dvc.utils.flatten import flatten # When `metrics` contains a `None` key, it means that some files # specified as `targets` in `repo.metrics.show` didn't contain any metrics. ...
def show_metrics(metrics, all_branches=False, all_tags=False, all_commits=False): from flatten_json import flatten from dvc.utils.diff import format_dict # When `metrics` contains a `None` key, it means that some files # specified as `targets` in `repo.metrics.show` didn't contain any metrics. mis...
https://github.com/iterative/dvc/issues/4499
2020-08-30 08:57:43,226 DEBUG: fetched: [(3,)] 2020-08-30 08:57:43,228 DEBUG: fetched: [(21770,)] 2020-08-30 08:57:43,246 ERROR: unexpected error - cannot import name 'check_if_numbers_are_consecutive' ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/p...
ImportError
def _parse_params(path_params): from ruamel.yaml import YAMLError from dvc.dependency.param import ParamsDependency from dvc.utils.flatten import unflatten from dvc.utils.serialize import loads_yaml ret = {} for path_param in path_params: path, _, params_str = path_param.rpartition(":"...
def _parse_params(path_params): from flatten_json import unflatten from ruamel.yaml import YAMLError from dvc.dependency.param import ParamsDependency from dvc.utils.serialize import loads_yaml ret = {} for path_param in path_params: path, _, params_str = path_param.rpartition(":") ...
https://github.com/iterative/dvc/issues/4499
2020-08-30 08:57:43,226 DEBUG: fetched: [(3,)] 2020-08-30 08:57:43,228 DEBUG: fetched: [(21770,)] 2020-08-30 08:57:43,246 ERROR: unexpected error - cannot import name 'check_if_numbers_are_consecutive' ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/p...
ImportError
def _flatten(d): if not d: return defaultdict(lambda: None) if isinstance(d, dict): return defaultdict(lambda: None, flatten(d)) return defaultdict(lambda: "unable to parse")
def _flatten(d): if not d: return defaultdict(lambda: None) if isinstance(d, dict): from flatten_json import flatten as fltn return defaultdict(lambda: None, fltn(d, ".")) return defaultdict(lambda: "unable to parse")
https://github.com/iterative/dvc/issues/4499
2020-08-30 08:57:43,226 DEBUG: fetched: [(3,)] 2020-08-30 08:57:43,228 DEBUG: fetched: [(21770,)] 2020-08-30 08:57:43,246 ERROR: unexpected error - cannot import name 'check_if_numbers_are_consecutive' ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/p...
ImportError
def _stash_exp(self, *args, params: Optional[dict] = None, **kwargs): """Stash changes from the current (parent) workspace as an experiment. Args: params: Optional dictionary of parameter values to be used. Values take priority over any parameters specified in the user's workspa...
def _stash_exp(self, *args, params: Optional[dict] = None, **kwargs): """Stash changes from the current (parent) workspace as an experiment. Args: params: Optional dictionary of parameter values to be used. Values take priority over any parameters specified in the user's workspa...
https://github.com/iterative/dvc/issues/4451
2020-08-24 12:56:57,888 ERROR: failed to apply experiment changes. ------------------------------------------------------------ Traceback (most recent call last): File "/Users/pmrowla/git/dvc/dvc/repo/experiments/__init__.py", line 529, in checkout_exp self.repo.scm.repo.git.apply(tmp, reverse=True) File "/Users/pmrowl...
git.exc.GitCommandError
def checkout_exp(self, rev): """Checkout an experiment to the user's workspace.""" from git.exc import GitCommandError from dvc.repo.checkout import _checkout as dvc_checkout self._check_baseline(rev) self._scm_checkout(rev) tmp = tempfile.NamedTemporaryFile(delete=False).name self.scm.re...
def checkout_exp(self, rev): """Checkout an experiment to the user's workspace.""" from git.exc import GitCommandError from dvc.repo.checkout import _checkout as dvc_checkout self._check_baseline(rev) self._scm_checkout(rev) tmp = tempfile.NamedTemporaryFile(delete=False).name self.scm.re...
https://github.com/iterative/dvc/issues/4451
2020-08-24 12:56:57,888 ERROR: failed to apply experiment changes. ------------------------------------------------------------ Traceback (most recent call last): File "/Users/pmrowla/git/dvc/dvc/repo/experiments/__init__.py", line 529, in checkout_exp self.repo.scm.repo.git.apply(tmp, reverse=True) File "/Users/pmrowl...
git.exc.GitCommandError
def get_hash(self, path_info, tree=None, **kwargs): assert path_info and (isinstance(path_info, str) or path_info.scheme == self.scheme) if not tree: tree = self if not tree.exists(path_info): return None if tree == self: # pylint: disable=assignment-from-none hash_ = ...
def get_hash(self, path_info, tree=None, **kwargs): assert isinstance(path_info, str) or path_info.scheme == self.scheme if not tree: tree = self if not tree.exists(path_info): return None if tree == self: # pylint: disable=assignment-from-none hash_ = self.state.get(p...
https://github.com/iterative/dvc/issues/4205
2020-07-14 18:50:54,511 ERROR: unexpected error - 'NoneType' object has no attribute 'scheme' ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/Cellar/dvc/1.1.10/libexec/lib/python3.8/site-packages/dvc/main.py", line 53, in main ret = cmd.run() File "/usr/l...
AttributeError
def _get_checksum(self, locked=True): from dvc.repo.tree import RepoTree with self._make_repo(locked=locked) as repo: try: return repo.find_out_by_relpath(self.def_path).info["md5"] except OutputNotFoundError: path = PathInfo(os.path.join(repo.root_dir, self.def_path)) ...
def _get_checksum(self, locked=True): from dvc.repo.tree import RepoTree with self._make_repo(locked=locked) as repo: try: return repo.find_out_by_relpath(self.def_path).info["md5"] except OutputNotFoundError: path = PathInfo(os.path.join(repo.root_dir, self.def_path)) ...
https://github.com/iterative/dvc/issues/4150
$$ dvc status -v 2020-06-29 13:54:52,056 DEBUG: fetched: [(3,)] 2020-06-29 13:54:52,059 DEBUG: Creating external repo https://...@bitbucket.org/.../raw_data_reg.git@43fb50fb519d58415bba4903b480f44811fefec1 2020-06-29 13:54:52,059 DEBUG: erepo: git clone https://...@bitbucket.org/.../raw_data_reg.git to a temporary dir...
dvc.exceptions.OutputNotFoundError
def __init__(self, ignore_file_path, tree): assert os.path.isabs(ignore_file_path) self.ignore_file_path = ignore_file_path self.dirname = os.path.normpath(os.path.dirname(ignore_file_path)) with tree.open(ignore_file_path, encoding="utf-8") as fobj: path_spec_lines = fobj.readlines() ...
def __init__(self, ignore_file_path, tree): assert os.path.isabs(ignore_file_path) self.ignore_file_path = ignore_file_path self.dirname = os.path.normpath(os.path.dirname(ignore_file_path)) with tree.open(ignore_file_path, encoding="utf-8") as fobj: path_spec_lines = fobj.readlines() ...
https://github.com/iterative/dvc/issues/4064
2020-06-17 21:57:10,649 TRACE: Namespace(all_branches=False, all_commits=False, all_tags=False, cloud=False, cmd='status', func=<class 'dvc.command.status.CmdDataStatus'>, jobs=None, quiet=False, recursive=False, remote=None, show_json=False, targets=[], verbose=3, version=None, with_deps=False) 2020-06-17 21:57:10,904...
TypeError
def upload(self, from_info, to_info, name=None, no_progress_bar=False): if not hasattr(self, "_upload"): raise RemoteActionNotImplemented("upload", self.scheme) if to_info.scheme != self.scheme: raise NotImplementedError if from_info.scheme != "local": raise NotImplementedError ...
def upload(self, from_info, to_info, name=None, no_progress_bar=False): if not hasattr(self, "_upload"): raise RemoteActionNotImplemented("upload", self.scheme) if to_info.scheme != self.scheme: raise NotImplementedError if from_info.scheme != "local": raise NotImplementedError ...
https://github.com/iterative/dvc/issues/3897
Traceback (most recent call last): File "d:\miniconda3\lib\site-packages\dvc\main.py", line 49, in main ret = cmd.run() File "d:\miniconda3\lib\site-packages\dvc\command\get_url.py", line 17, in run Repo.get_url(self.args.url, out=self.args.out) File "d:\miniconda3\lib\site-packages\dvc\repo\get_url.py", line 17, in ge...
AttributeError
def _download_dir(self, from_info, to_info, name, no_progress_bar, file_mode, dir_mode): from_infos = list(self.walk_files(from_info)) to_infos = (to_info / info.relative_to(from_info) for info in from_infos) with Tqdm( total=len(from_infos), desc="Downloading directory", unit="File...
def _download_dir(self, from_info, to_info, name, no_progress_bar, file_mode, dir_mode): from_infos = list(self.walk_files(from_info)) to_infos = (to_info / info.relative_to(from_info) for info in from_infos) with Tqdm( total=len(from_infos), desc="Downloading directory", unit="File...
https://github.com/iterative/dvc/issues/3897
Traceback (most recent call last): File "d:\miniconda3\lib\site-packages\dvc\main.py", line 49, in main ret = cmd.run() File "d:\miniconda3\lib\site-packages\dvc\command\get_url.py", line 17, in run Repo.get_url(self.args.url, out=self.args.out) File "d:\miniconda3\lib\site-packages\dvc\repo\get_url.py", line 17, in ge...
AttributeError
def _download_file( self, from_info, to_info, name, no_progress_bar, file_mode, dir_mode ): makedirs(to_info.parent, exist_ok=True, mode=dir_mode) logger.debug("Downloading '%s' to '%s'", from_info, to_info) name = name or to_info.name tmp_file = tmp_fname(to_info) self._download(from_info, t...
def _download_file( self, from_info, to_info, name, no_progress_bar, file_mode, dir_mode ): makedirs(to_info.parent, exist_ok=True, mode=dir_mode) logger.debug("Downloading '%s' to '%s'", from_info, to_info) name = name or to_info.name tmp_file = tmp_fname(to_info) try: self._download...
https://github.com/iterative/dvc/issues/3897
Traceback (most recent call last): File "d:\miniconda3\lib\site-packages\dvc\main.py", line 49, in main ret = cmd.run() File "d:\miniconda3\lib\site-packages\dvc\command\get_url.py", line 17, in run Repo.get_url(self.args.url, out=self.args.out) File "d:\miniconda3\lib\site-packages\dvc\repo\get_url.py", line 17, in ge...
AttributeError
def _process( self, named_cache, remote, jobs=None, show_checksums=False, download=False, ): logger.debug( "Preparing to {} '{}'".format( "download data from" if download else "upload data to", remote.path_info, ) ) if download: func =...
def _process( self, named_cache, remote, jobs=None, show_checksums=False, download=False, ): logger.debug( "Preparing to {} '{}'".format( "download data from" if download else "upload data to", remote.path_info, ) ) if download: func =...
https://github.com/iterative/dvc/issues/3897
Traceback (most recent call last): File "d:\miniconda3\lib\site-packages\dvc\main.py", line 49, in main ret = cmd.run() File "d:\miniconda3\lib\site-packages\dvc\command\get_url.py", line 17, in run Repo.get_url(self.args.url, out=self.args.out) File "d:\miniconda3\lib\site-packages\dvc\repo\get_url.py", line 17, in ge...
AttributeError
def __init__(self, tree, tree_root=None): self.tree = tree if tree_root: self._tree_root = tree_root else: self._tree_root = self.tree.tree_root
def __init__(self, tree): self.tree = tree
https://github.com/iterative/dvc/issues/3821
NT> dvc metrics show -T ERROR: unexpected error - [Errno 2] No such file Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help! NT> dvc metrics show -T -v 2020-05-18 08:19:19,707 DEBUG: Trying to spawn '['c:\\program files\\python36\\python.exe', 'C:\\Program Files\\Python36 \\Scripts\...
FileNotFoundError
def tree_root(self): return self._tree_root
def tree_root(self): return self.tree.tree_root
https://github.com/iterative/dvc/issues/3821
NT> dvc metrics show -T ERROR: unexpected error - [Errno 2] No such file Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help! NT> dvc metrics show -T -v 2020-05-18 08:19:19,707 DEBUG: Trying to spawn '['c:\\program files\\python36\\python.exe', 'C:\\Program Files\\Python36 \\Scripts\...
FileNotFoundError
def _valid_dirname(self, path): path = os.path.abspath(path) if path == self.tree_root: return True dirname, basename = os.path.split(path) dirs, _ = self.dvcignore(dirname, [basename], []) if dirs: return True return False
def _valid_dirname(self, path): dirname, basename = os.path.split(os.path.normpath(path)) dirs, _ = self.dvcignore(os.path.abspath(dirname), [basename], []) if dirs: return True return False
https://github.com/iterative/dvc/issues/3821
NT> dvc metrics show -T ERROR: unexpected error - [Errno 2] No such file Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help! NT> dvc metrics show -T -v 2020-05-18 08:19:19,707 DEBUG: Trying to spawn '['c:\\program files\\python36\\python.exe', 'C:\\Program Files\\Python36 \\Scripts\...
FileNotFoundError
def tree(self, tree): if is_working_tree(tree) or tree.tree_root == self.root_dir: root = None else: root = self.root_dir self._tree = tree if isinstance(tree, CleanTree) else CleanTree(tree, root) # Our graph cache is no longer valid, as it was based on the previous # tree. self...
def tree(self, tree): self._tree = tree if isinstance(tree, CleanTree) else CleanTree(tree) # Our graph cache is no longer valid, as it was based on the previous # tree. self._reset()
https://github.com/iterative/dvc/issues/3821
NT> dvc metrics show -T ERROR: unexpected error - [Errno 2] No such file Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help! NT> dvc metrics show -T -v 2020-05-18 08:19:19,707 DEBUG: Trying to spawn '['c:\\program files\\python36\\python.exe', 'C:\\Program Files\\Python36 \\Scripts\...
FileNotFoundError
def brancher( # noqa: E302 self, revs=None, all_branches=False, all_tags=False, all_commits=False ): """Generator that iterates over specified revisions. Args: revs (list): a list of revisions to iterate over. all_branches (bool): iterate over all available branches. all_commits (b...
def brancher( # noqa: E302 self, revs=None, all_branches=False, all_tags=False, all_commits=False ): """Generator that iterates over specified revisions. Args: revs (list): a list of revisions to iterate over. all_branches (bool): iterate over all available branches. all_commits (b...
https://github.com/iterative/dvc/issues/3821
NT> dvc metrics show -T ERROR: unexpected error - [Errno 2] No such file Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help! NT> dvc metrics show -T -v 2020-05-18 08:19:19,707 DEBUG: Trying to spawn '['c:\\program files\\python36\\python.exe', 'C:\\Program Files\\Python36 \\Scripts\...
FileNotFoundError
def __init__(self, repo): self.repo = repo self.root_dir = repo.root_dir self.tree = WorkingTree(self.root_dir) state_config = repo.config.get("state", {}) self.row_limit = state_config.get("row_limit", self.STATE_ROW_LIMIT) self.row_cleanup_quota = state_config.get( "row_cleanup_quota"...
def __init__(self, repo): self.repo = repo self.root_dir = repo.root_dir state_config = repo.config.get("state", {}) self.row_limit = state_config.get("row_limit", self.STATE_ROW_LIMIT) self.row_cleanup_quota = state_config.get( "row_cleanup_quota", self.STATE_ROW_CLEANUP_QUOTA ) i...
https://github.com/iterative/dvc/issues/3857
$ dvc fetch -aT -v 2020-05-22 23:02:45,092 DEBUG: PRAGMA user_version; 2020-05-22 23:02:45,092 DEBUG: fetched: [(3,)] 2020-05-22 23:02:45,092 DEBUG: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, size TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT NULL) 2020-05-22 23:02:45,093 D...
AssertionError
def save(self, path_info, checksum): """Save checksum for the specified path info. Args: path_info (dict): path_info to save checksum for. checksum (str): checksum to save. """ assert isinstance(path_info, str) or path_info.scheme == "local" assert checksum is not None assert os...
def save(self, path_info, checksum): """Save checksum for the specified path info. Args: path_info (dict): path_info to save checksum for. checksum (str): checksum to save. """ assert isinstance(path_info, str) or path_info.scheme == "local" assert checksum is not None assert os...
https://github.com/iterative/dvc/issues/3857
$ dvc fetch -aT -v 2020-05-22 23:02:45,092 DEBUG: PRAGMA user_version; 2020-05-22 23:02:45,092 DEBUG: fetched: [(3,)] 2020-05-22 23:02:45,092 DEBUG: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, size TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT NULL) 2020-05-22 23:02:45,093 D...
AssertionError
def get(self, path_info): """Gets the checksum for the specified path info. Checksum will be retrieved from the state database if available. Args: path_info (dict): path info to get the checksum for. Returns: str or None: checksum for the specified path info or None if it doesn...
def get(self, path_info): """Gets the checksum for the specified path info. Checksum will be retrieved from the state database if available. Args: path_info (dict): path info to get the checksum for. Returns: str or None: checksum for the specified path info or None if it doesn...
https://github.com/iterative/dvc/issues/3857
$ dvc fetch -aT -v 2020-05-22 23:02:45,092 DEBUG: PRAGMA user_version; 2020-05-22 23:02:45,092 DEBUG: fetched: [(3,)] 2020-05-22 23:02:45,092 DEBUG: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, size TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT NULL) 2020-05-22 23:02:45,093 D...
AssertionError
def save_link(self, path_info): """Adds the specified path to the list of links created by dvc. This list is later used on `dvc checkout` to cleanup old links. Args: path_info (dict): path info to add to the list of links. """ assert isinstance(path_info, str) or path_info.scheme == "local"...
def save_link(self, path_info): """Adds the specified path to the list of links created by dvc. This list is later used on `dvc checkout` to cleanup old links. Args: path_info (dict): path info to add to the list of links. """ assert isinstance(path_info, str) or path_info.scheme == "local"...
https://github.com/iterative/dvc/issues/3857
$ dvc fetch -aT -v 2020-05-22 23:02:45,092 DEBUG: PRAGMA user_version; 2020-05-22 23:02:45,092 DEBUG: fetched: [(3,)] 2020-05-22 23:02:45,092 DEBUG: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, size TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT NULL) 2020-05-22 23:02:45,093 D...
AssertionError
def get_unused_links(self, used): """Removes all saved links except the ones that are used. Args: used (list): list of used links that should not be removed. """ unused = [] self._execute(f"SELECT * FROM {self.LINK_STATE_TABLE}") for row in self.cursor: relpath, inode, mtime = ...
def get_unused_links(self, used): """Removes all saved links except the ones that are used. Args: used (list): list of used links that should not be removed. """ unused = [] self._execute(f"SELECT * FROM {self.LINK_STATE_TABLE}") for row in self.cursor: relpath, inode, mtime = ...
https://github.com/iterative/dvc/issues/3857
$ dvc fetch -aT -v 2020-05-22 23:02:45,092 DEBUG: PRAGMA user_version; 2020-05-22 23:02:45,092 DEBUG: fetched: [(3,)] 2020-05-22 23:02:45,092 DEBUG: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, size TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT NULL) 2020-05-22 23:02:45,093 D...
AssertionError
def _is_tree_and_contains(obj, path): if obj.mode != GIT_MODE_DIR: return False # see https://github.com/gitpython-developers/GitPython/issues/851 # `return (i in tree)` doesn't work so here is a workaround: for item in obj: if _item_basename(item) == path: return True re...
def _is_tree_and_contains(obj, path): if obj.mode != GIT_MODE_DIR: return False # see https://github.com/gitpython-developers/GitPython/issues/851 # `return (i in tree)` doesn't work so here is a workaround: for i in _iter_tree(obj): if i.name == path: return True return ...
https://github.com/iterative/dvc/issues/3481
2020-03-16 09:53:37,900 ERROR: unexpected error - 'be23d78966ad0171e87879e051edf6eb3f446e12' ------------------------------------------------------------ Traceback (most recent call last): File "/home/my_user/data/env/my_project/lib/python3.6/site-packages/dvc/main.py", line 50, in main ret = cmd.run() File "/home/my_u...
KeyError
def _walk(self, tree, topdown=True): dirs, nondirs = [], [] for item in tree: name = _item_basename(item) if item.mode == GIT_MODE_DIR: dirs.append(name) else: nondirs.append(name) if topdown: yield os.path.normpath(tree.abspath), dirs, nondirs f...
def _walk(self, tree, topdown=True): dirs, nondirs = [], [] for i in _iter_tree(tree): if i.mode == GIT_MODE_DIR: dirs.append(i.name) else: nondirs.append(i.name) if topdown: yield os.path.normpath(tree.abspath), dirs, nondirs for i in dirs: yiel...
https://github.com/iterative/dvc/issues/3481
2020-03-16 09:53:37,900 ERROR: unexpected error - 'be23d78966ad0171e87879e051edf6eb3f446e12' ------------------------------------------------------------ Traceback (most recent call last): File "/home/my_user/data/env/my_project/lib/python3.6/site-packages/dvc/main.py", line 50, in main ret = cmd.run() File "/home/my_u...
KeyError
def __init__(self, url): p = urlparse(url) stripped = p._replace(params=None, query=None, fragment=None) super().__init__(stripped.geturl()) self.params = p.params self.query = p.query self.fragment = p.fragment
def __init__(self, url): p = urlparse(url) assert not p.query and not p.params and not p.fragment assert p.password is None self.fill_parts(p.scheme, p.hostname, p.username, p.port, p.path)
https://github.com/iterative/dvc/issues/3424
2020-02-29 21:01:49,849 ERROR: unexpected error ------------------------------------------------------------ Traceback (most recent call last): File "/Users/ivan/Projects/dvc/dvc/main.py", line 49, in main ret = cmd.run() File "/Users/ivan/Projects/dvc/dvc/command/imp_url.py", line 16, in run self.args.url, out=self.ar...
AssertionError
def from_parts( cls, scheme=None, host=None, user=None, port=None, path="", netloc=None, params=None, query=None, fragment=None, ): assert bool(host) ^ bool(netloc) if netloc is not None: return cls( "{}://{}{}{}{}{}".format( scheme, ...
def from_parts(cls, scheme=None, host=None, user=None, port=None, path="", netloc=None): assert bool(host) ^ bool(netloc) if netloc is not None: return cls("{}://{}{}".format(scheme, netloc, path)) obj = cls.__new__(cls) obj.fill_parts(scheme, host, user, port, path) return obj
https://github.com/iterative/dvc/issues/3424
2020-02-29 21:01:49,849 ERROR: unexpected error ------------------------------------------------------------ Traceback (most recent call last): File "/Users/ivan/Projects/dvc/dvc/main.py", line 49, in main ret = cmd.run() File "/Users/ivan/Projects/dvc/dvc/command/imp_url.py", line 16, in run self.args.url, out=self.ar...
AssertionError
def parts(self): return self._base_parts + self._path.parts + self._extra_parts
def parts(self): return self._base_parts + self._path.parts
https://github.com/iterative/dvc/issues/3424
2020-02-29 21:01:49,849 ERROR: unexpected error ------------------------------------------------------------ Traceback (most recent call last): File "/Users/ivan/Projects/dvc/dvc/main.py", line 49, in main ret = cmd.run() File "/Users/ivan/Projects/dvc/dvc/command/imp_url.py", line 16, in run self.args.url, out=self.ar...
AssertionError
def url(self): return "{}://{}{}{}{}{}".format( self.scheme, self.netloc, self._spath, (";" + self.params) if self.params else "", ("?" + self.query) if self.query else "", ("#" + self.fragment) if self.fragment else "", )
def url(self): return "{}://{}{}".format(self.scheme, self.netloc, self._spath)
https://github.com/iterative/dvc/issues/3424
2020-02-29 21:01:49,849 ERROR: unexpected error ------------------------------------------------------------ Traceback (most recent call last): File "/Users/ivan/Projects/dvc/dvc/main.py", line 49, in main ret = cmd.run() File "/Users/ivan/Projects/dvc/dvc/command/imp_url.py", line 16, in run self.args.url, out=self.ar...
AssertionError
def __eq__(self, other): if isinstance(other, (str, bytes)): other = self.__class__(other) return ( self.__class__ == other.__class__ and self._base_parts == other._base_parts and self._path == other._path and self._extra_parts == other._extra_parts )
def __eq__(self, other): if isinstance(other, (str, bytes)): other = self.__class__(other) return ( self.__class__ == other.__class__ and self._base_parts == other._base_parts and self._path == other._path )
https://github.com/iterative/dvc/issues/3424
2020-02-29 21:01:49,849 ERROR: unexpected error ------------------------------------------------------------ Traceback (most recent call last): File "/Users/ivan/Projects/dvc/dvc/main.py", line 49, in main ret = cmd.run() File "/Users/ivan/Projects/dvc/dvc/command/imp_url.py", line 16, in run self.args.url, out=self.ar...
AssertionError
def _make_repo(repo_url, rev=None): if not repo_url or os.path.exists(repo_url): assert rev is None, "Custom revision is not supported for local repo" yield Repo(repo_url) else: with external_repo(url=repo_url, rev=rev) as repo: yield repo
def _make_repo(repo_url, rev=None): if not repo_url or urlparse(repo_url).scheme == "": assert rev is None, "Custom revision is not supported for local repo" yield Repo(repo_url) else: with external_repo(url=repo_url, rev=rev) as repo: yield repo
https://github.com/iterative/dvc/issues/3111
Traceback (most recent call last): File "tests/open-test.py", line 6, in <module> repo="git@github.com:iterative/df_sea_ice_no_header.git" File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/Users/drbidibombom/...
dvc.exceptions.NotDvcRepoError
def append_doc_link(help_message, path): from dvc.utils import format_link if not path: return help_message doc_base = "https://man.dvc.org/" return "{message}\nDocumentation: {link}".format( message=help_message, link=format_link(doc_base + path) )
def append_doc_link(help_message, path): if not path: return help_message doc_base = "https://man.dvc.org/" return "{message}\nDocumentation: <{blue}{base}{path}{nc}>".format( message=help_message, base=doc_base, path=path, blue=colorama.Fore.CYAN, nc=colorama...
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def __init__(self, args): from dvc.repo import Repo from dvc.updater import Updater self.repo = Repo() self.config = self.repo.config self.args = args hardlink_lock = self.config.config["core"].get("hardlink_lock", False) updater = Updater(self.repo.dvc_dir, hardlink_lock=hardlink_lock) ...
def __init__(self, args): from dvc.repo import Repo from dvc.updater import Updater self.repo = Repo() self.config = self.repo.config self.args = args updater = Updater(self.repo.dvc_dir) updater.check()
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def run(self): import os from dvc.repo import Repo from dvc.config import Config from dvc.updater import Updater root_dir = Repo.find_root() dvc_dir = os.path.join(root_dir, Repo.DVC_DIR) config = Config(dvc_dir, verify=False) hardlink_lock = config.config.get("core", {}).get("hardlink_...
def run(self): import os from dvc.repo import Repo from dvc.updater import Updater root_dir = Repo.find_root() dvc_dir = os.path.join(root_dir, Repo.DVC_DIR) updater = Updater(dvc_dir) updater.fetch(detach=False) return 0
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def __init__(self, lockfile, friendly=False, **kwargs): self._friendly = friendly self.lockfile = lockfile self._lock = None
def __init__(self, lockfile, tmp_dir=None): self.lockfile = lockfile self._lock = None
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def _do_lock(self): try: with Tqdm( bar_format="{desc}", disable=not self._friendly, desc=( "If DVC froze, see `hardlink_lock` in {}".format( format_link("man.dvc.org/config#core") ) ), ): ...
def _do_lock(self): try: self._lock = zc.lockfile.LockFile(self.lockfile) except zc.lockfile.LockError: raise LockError(FAILED_TO_LOCK_MESSAGE)
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def files(self): return lkeep([self._lockfile, self._tmp_dir])
def files(self): return [self.lockfile]
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def lock(self): try: super(Lock, self).lock(timedelta(seconds=DEFAULT_TIMEOUT)) except flufl.lock.TimeOutError: raise LockError(FAILED_TO_LOCK_MESSAGE)
def lock(self): try: self._do_lock() return except LockError: time.sleep(DEFAULT_TIMEOUT) self._do_lock()
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def __init__(self, root_dir=None): from dvc.state import State from dvc.lock import make_lock from dvc.scm import SCM from dvc.cache import Cache from dvc.data_cloud import DataCloud from dvc.repo.metrics import Metrics from dvc.scm.tree import WorkingTree from dvc.repo.tag import Tag ...
def __init__(self, root_dir=None): from dvc.state import State from dvc.lock import Lock from dvc.scm import SCM from dvc.cache import Cache from dvc.data_cloud import DataCloud from dvc.repo.metrics import Metrics from dvc.scm.tree import WorkingTree from dvc.repo.tag import Tag ro...
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def __init__(self, dvc_dir, friendly=False, hardlink_lock=False): self.dvc_dir = dvc_dir self.updater_file = os.path.join(dvc_dir, self.UPDATER_FILE) self.lock = make_lock( self.updater_file + ".lock", tmp_dir=os.path.join(dvc_dir, "tmp"), friendly=friendly, hardlink_lock=har...
def __init__(self, dvc_dir): self.dvc_dir = dvc_dir self.updater_file = os.path.join(dvc_dir, self.UPDATER_FILE) self.lock = Lock(self.updater_file + ".lock", tmp_dir=os.path.join(dvc_dir, "tmp")) self.current = version.parse(__version__).base_version
https://github.com/iterative/dvc/issues/2831
dvc add -v -R model DEBUG: Trying to spawn '['c:\\users\\luisfelipe_melo_mora\\appdata\\local\\programs\\python\\python37-32\\python.exe', 'C:\\Users\\luisfelipe_melo_mora\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\dvc', 'daemon', '-q', 'updater']' DEBUG: Spawned '['c:\\users\\luisfelipe_melo_mora\\appdat...
flufl.lock._lockfile.NotLockedError
def _build_sqlite_uri(filename, options): # In the doc mentioned below we only need to replace ? -> %3f and # # -> %23, but, if present, we also need to replace % -> %25 first # (happens when we are on a weird FS that shows urlencoded filenames # instead of proper ones) to not confuse sqlite. uri_pa...
def _build_sqlite_uri(filename, options): # Convert filename to uri according to https://www.sqlite.org/uri.html, 3.1 uri_path = filename.replace("?", "%3f").replace("#", "%23") if os.name == "nt": uri_path = uri_path.replace("\\", "/") uri_path = re.sub(r"^([a-z]:)", "/\\1", uri_path, flags...
https://github.com/iterative/dvc/issues/2885
dvc add Empty\ Document -v /home/mlburk/anaconda3/envs/tf-gpu/lib/python3.7/site-packages/git/repo/base.py:129: UserWarning: The use of environment variables in paths is deprecated for security reasons and may be removed in the future!! warnings.warn("The use of environment variables in paths is deprecated" + ERROR: un...
sqlite3.OperationalError