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 _upload(self, from_file, to_info, **_kwargs):
bucket = self.gs.bucket(to_info.bucket)
_upload_to_bucket(bucket, from_file)
| def _upload(self, from_file, to_info, **_kwargs):
bucket = self.gs.bucket(to_info.bucket)
blob = bucket.blob(to_info.path)
blob.upload_from_filename(from_file)
| https://github.com/iterative/dvc/issues/2572 | DEBUG: PRAGMA user_version;
DEBUG: fetched: [(3,)]
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)
DEBUG: CREATE TABLE IF NOT EXISTS state_info (count INTEGER)
DEBUG: CREATE TABLE IF NOT EXISTS link_state (path TEXT... | dvc.exceptions.UploadError |
def _reproduce(self, target, **kwargs):
import networkx as nx
from dvc.stage import Stage
stage = Stage.load(self, target)
G = self.graph()[1]
stages = nx.get_node_attributes(G, "stage")
node = relpath(stage.path, self.root_dir)
return _reproduce_stages(G, stages, node, **kwargs)
| def _reproduce(self, target, single_item=False, **kwargs):
import networkx as nx
from dvc.stage import Stage
stage = Stage.load(self, target)
G = self.graph()[1]
stages = nx.get_node_attributes(G, "stage")
node = relpath(stage.path, self.root_dir)
if single_item:
ret = _reproduce_s... | https://github.com/iterative/dvc/issues/2354 | (base) ➜ dvc-example git:(master) ✗ dvc repro -sf test.txt.dvc --verbose
DEBUG: Trying to spawn '['/Users/prihodad/anaconda3/bin/python', '-m', 'dvc', 'daemon', '-q', 'updater']'
DEBUG: Spawned '['/Users/prihodad/anaconda3/bin/python', '-m', 'dvc', 'daemon', '-q', 'updater']'
DEBUG: PRAGMA user_version;
DEBUG: fetched... | TypeError |
def _reproduce_stages(
G,
stages,
node,
downstream=False,
ignore_build_cache=False,
single_item=False,
**kwargs,
):
r"""Derive the evaluation of the given node for the given graph.
When you _reproduce a stage_, you want to _evaluate the descendants_
to know if it make sense to _... | def _reproduce_stages(
G, stages, node, downstream=False, ignore_build_cache=False, **kwargs
):
r"""Derive the evaluation of the given node for the given graph.
When you _reproduce a stage_, you want to _evaluate the descendants_
to know if it make sense to _recompute_ it. A post-ordered search
wil... | https://github.com/iterative/dvc/issues/2354 | (base) ➜ dvc-example git:(master) ✗ dvc repro -sf test.txt.dvc --verbose
DEBUG: Trying to spawn '['/Users/prihodad/anaconda3/bin/python', '-m', 'dvc', 'daemon', '-q', 'updater']'
DEBUG: Spawned '['/Users/prihodad/anaconda3/bin/python', '-m', 'dvc', 'daemon', '-q', 'updater']'
DEBUG: PRAGMA user_version;
DEBUG: fetched... | TypeError |
def __getattr__(self, name):
# When deepcopy is called, it creates and object without __init__,
# self.parsed is not initialized and it causes infinite recursion.
# More on this special casing here:
# https://stackoverflow.com/a/47300262/298182
if name.startswith("__"):
raise AttributeError(... | def __getattr__(self, name):
return getattr(self.parsed, name)
| https://github.com/iterative/dvc/issues/2259 | ---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-7-90086e6e0e64> in <module>
----> 1 r.graph()[0].reverse()
~/miniconda3/envs/py36_v11/lib/python3.6/site-packages/networkx/classes/digraph.py in reverse... | RecursionError |
def makedirs(self, path):
self._sftp_connect()
# Single stat call will say whether this is a dir, a file or a link
st_mode = self.st_mode(path)
if stat.S_ISDIR(st_mode):
return
if stat.S_ISREG(st_mode) or stat.S_ISLNK(st_mode):
raise DvcException("a file with the same name '{}' al... | def makedirs(self, path):
self._sftp_connect()
if self.isdir(path):
return
if self.isfile(path) or self.islink(path):
raise DvcException("a file with the same name '{}' already exists".format(path))
head, tail = posixpath.split(path)
if head:
self.makedirs(head)
if t... | https://github.com/iterative/dvc/issues/1862 | DEBUG: SELECT count from state_info WHERE rowid=1
DEBUG: fetched: [(33301,)]
DEBUG: UPDATE state_info SET count = 33301 WHERE rowid = 1
DEBUG: Path /home/rob/fossid/dvc/autoid-dvc/.dvc/cache inode 6554341
DEBUG: INSERT OR REPLACE INTO state(inode, size, mtime, timestamp, md5) VALUES (6554341, "44515650", "1554877442274... | OSError |
def _show(self, target, commands, outs, locked):
import networkx
from dvc.stage import Stage
stage = Stage.load(self.repo, target)
G = self.repo.graph()[0]
stages = networkx.get_node_attributes(G, "stage")
node = relpath(stage.path, self.repo.root_dir)
nodes = networkx.dfs_postorder_nodes(G... | def _show(self, target, commands, outs, locked):
import networkx
from dvc.stage import Stage
stage = Stage.load(self.repo, target)
G = self.repo.graph()[0]
stages = networkx.get_node_attributes(G, "stage")
node = os.path.relpath(stage.path, self.repo.root_dir)
nodes = networkx.dfs_postorder... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def __build_graph(self, target, commands, outs):
import networkx
from dvc.stage import Stage
stage = Stage.load(self.repo, target)
node = relpath(stage.path, self.repo.root_dir)
pipelines = list(filter(lambda g: node in g.nodes(), self.repo.pipelines()))
assert len(pipelines) == 1
G = pip... | def __build_graph(self, target, commands, outs):
import networkx
from dvc.stage import Stage
stage = Stage.load(self.repo, target)
node = os.path.relpath(stage.path, self.repo.root_dir)
pipelines = list(filter(lambda g: node in g.nodes(), self.repo.pipelines()))
assert len(pipelines) == 1
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def run(self):
logger.info(relpath(Repo.find_root()))
return 0
| def run(self):
logger.info(os.path.relpath(Repo.find_root()))
return 0
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def __init__(self, output):
super(OutputNotFoundError, self).__init__(
"unable to find stage file with output '{path}'".format(path=relpath(output))
)
| def __init__(self, output):
super(OutputNotFoundError, self).__init__(
"unable to find stage file with output '{path}'".format(
path=os.path.relpath(output)
)
)
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def __init__(self, path):
super(BadMetricError, self).__init__(
"'{}' does not exist, not a metric or is malformed".format(relpath(path))
)
| def __init__(self, path):
super(BadMetricError, self).__init__(
"'{}' does not exist, not a metric or is malformed".format(
os.path.relpath(path)
)
)
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def __init__(self, path, cause=None):
path = relpath(path)
super(StageFileCorruptedError, self).__init__(
"unable to read stage file: {} YAML file structure is corrupted".format(path),
cause=cause,
)
| def __init__(self, path, cause=None):
path = os.path.relpath(path)
super(StageFileCorruptedError, self).__init__(
"unable to read stage file: {} YAML file structure is corrupted".format(path),
cause=cause,
)
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def get_match(self, abs_path):
relative_path = relpath(abs_path, self.dirname)
if os.name == "nt":
relative_path = relative_path.replace("\\", "/")
relative_path = cast_bytes(relative_path, "utf-8")
for pattern in self.patterns:
if match_pattern(relative_path, pattern) and self._no_nega... | def get_match(self, abs_path):
rel_path = os.path.relpath(abs_path, self.dirname)
if os.name == "nt":
rel_path = rel_path.replace("\\", "/")
rel_path = cast_bytes(rel_path, "utf-8")
for pattern in self.patterns:
if match_pattern(rel_path, pattern) and self._no_negate_pattern_matches(
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def relpath(self, other):
return self.__class__(relpath(self, other))
| def relpath(self, other):
return self.__class__(os.path.relpath(fspath_py35(self), fspath_py35(other)))
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def _collect_dir(self, path_info):
dir_info = []
for root, dirs, files in self.walk(path_info):
if len(files) > LARGE_DIR_SIZE:
msg = "Computing md5 for a large directory {}. This is only done once."
title = str(self.path_cls(root))
logger.info(msg.format(title))
... | def _collect_dir(self, path_info):
dir_info = []
for root, dirs, files in self.walk(path_info):
if len(files) > LARGE_DIR_SIZE:
msg = "Computing md5 for a large directory {}. This is only done once."
title = str(self.path_cls(root))
logger.info(msg.format(title))
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def load_dir_cache(self, checksum):
path_info = self.checksum_to_path_info(checksum)
fobj = tempfile.NamedTemporaryFile(delete=False)
path = fobj.name
to_info = self.path_cls(path)
self.cache.download([path_info], [to_info], no_progress_bar=True)
try:
with open(path, "r") as fobj:
... | def load_dir_cache(self, checksum):
path_info = self.checksum_to_path_info(checksum)
fobj = tempfile.NamedTemporaryFile(delete=False)
path = fobj.name
to_info = self.path_cls(path)
self.cache.download([path_info], [to_info], no_progress_bar=True)
try:
with open(path, "r") as fobj:
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def _checkout_dir(self, path_info, checksum, force, progress_callback=None):
# Create dir separately so that dir is created
# even if there are no files in it
if not self.exists(path_info):
self.makedirs(path_info)
dir_info = self.get_dir_cache(checksum)
logger.debug("Linking directory '{}... | def _checkout_dir(self, path_info, checksum, force, progress_callback=None):
# Create dir separately so that dir is created
# even if there are no files in it
if not self.exists(path_info):
self.makedirs(path_info)
dir_info = self.get_dir_cache(checksum)
logger.debug("Linking directory '{}... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def resolve_path(path, config_file):
"""Resolve path relative to config file location.
Args:
path: Path to be resolved.
config_file: Path to config file, which `path` is specified
relative to.
Returns:
Path relative to the `config_file` location. If `path` is an
... | def resolve_path(path, config_file):
"""Resolve path relative to config file location.
Args:
path: Path to be resolved.
config_file: Path to config file, which `path` is specified
relative to.
Returns:
Path relative to the `config_file` location. If `path` is an
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def _unprotect_file(path):
if System.is_symlink(path) or System.is_hardlink(path):
logger.debug("Unprotecting '{}'".format(path))
tmp = os.path.join(os.path.dirname(path), "." + str(uuid.uuid4()))
# The operations order is important here - if some application
# would access the file... | def _unprotect_file(path):
if System.is_symlink(path) or System.is_hardlink(path):
logger.debug("Unprotecting '{}'".format(path))
tmp = os.path.join(os.path.dirname(path), "." + str(uuid.uuid4()))
# The operations order is important here - if some application
# would access the file... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def _create_unpacked_dir(self, checksum, dir_info, unpacked_dir_info):
self.makedirs(unpacked_dir_info)
for entry in progress(dir_info, name="Created unpacked dir"):
entry_cache_info = self.checksum_to_path_info(entry[self.PARAM_CHECKSUM])
relative_path = entry[self.PARAM_RELPATH]
self.... | def _create_unpacked_dir(self, checksum, dir_info, unpacked_dir_info):
self.makedirs(unpacked_dir_info)
for entry in progress(dir_info, name="Created unpacked dir"):
entry_cache_info = self.checksum_to_path_info(entry[self.PARAM_CHECKSUM])
relpath = entry[self.PARAM_RELPATH]
self.link(e... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def collect(self, target, with_deps=False, recursive=False):
import networkx as nx
from dvc.stage import Stage
if not target or (recursive and os.path.isdir(target)):
return self.active_stages(target)
stage = Stage.load(self, target)
if not with_deps:
return [stage]
node = rel... | def collect(self, target, with_deps=False, recursive=False):
import networkx as nx
from dvc.stage import Stage
if not target or (recursive and os.path.isdir(target)):
return self.active_stages(target)
stage = Stage.load(self, target)
if not with_deps:
return [stage]
node = os.... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def graph(self, stages=None, from_directory=None):
"""Generate a graph by using the given stages on the given directory
The nodes of the graph are the stage's path relative to the root.
Edges are created when the output of one stage is used as a
dependency in other stage.
The direction of the edg... | def graph(self, stages=None, from_directory=None):
"""Generate a graph by using the given stages on the given directory
The nodes of the graph are the stage's path relative to the root.
Edges are created when the output of one stage is used as a
dependency in other stage.
The direction of the edg... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def init(root_dir=os.curdir, no_scm=False, force=False):
"""
Creates an empty repo on the given directory -- basically a
`.dvc` directory with subdirectories for configuration and cache.
It should be tracked by a SCM or use the `--no-scm` flag.
If the given directory is not empty, you must use the... | def init(root_dir=os.curdir, no_scm=False, force=False):
"""
Creates an empty repo on the given directory -- basically a
`.dvc` directory with subdirectories for configuration and cache.
It should be tracked by a SCM or use the `--no-scm` flag.
If the given directory is not empty, you must use the... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def reproduce(
self,
target=None,
single_item=False,
force=False,
dry=False,
interactive=False,
pipeline=False,
all_pipelines=False,
ignore_build_cache=False,
no_commit=False,
downstream=False,
recursive=False,
):
import networkx as nx
from dvc.stage import Stage
... | def reproduce(
self,
target=None,
single_item=False,
force=False,
dry=False,
interactive=False,
pipeline=False,
all_pipelines=False,
ignore_build_cache=False,
no_commit=False,
downstream=False,
recursive=False,
):
import networkx as nx
from dvc.stage import Stage
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def _reproduce(
self,
target,
single_item=False,
force=False,
dry=False,
interactive=False,
ignore_build_cache=False,
no_commit=False,
downstream=False,
):
import networkx as nx
from dvc.stage import Stage
stage = Stage.load(self, target)
G = self.graph()[1]
stag... | def _reproduce(
self,
target,
single_item=False,
force=False,
dry=False,
interactive=False,
ignore_build_cache=False,
no_commit=False,
downstream=False,
):
import networkx as nx
from dvc.stage import Stage
stage = Stage.load(self, target)
G = self.graph()[1]
stag... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def _get_gitignore(self, path, ignore_file_dir=None):
if not ignore_file_dir:
ignore_file_dir = os.path.dirname(os.path.realpath(path))
assert os.path.isabs(path)
assert os.path.isabs(ignore_file_dir)
if not path.startswith(ignore_file_dir):
msg = (
"{} file has to be locat... | def _get_gitignore(self, path, ignore_file_dir=None):
if not ignore_file_dir:
ignore_file_dir = os.path.dirname(os.path.realpath(path))
assert os.path.isabs(path)
assert os.path.isabs(ignore_file_dir)
if not path.startswith(ignore_file_dir):
msg = (
"{} file has to be locat... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def ignore(self, path, in_curr_dir=False):
base_dir = os.path.realpath(os.curdir) if in_curr_dir else os.path.dirname(path)
entry, gitignore = self._get_gitignore(path, base_dir)
if self._ignored(entry, gitignore):
return
msg = "Adding '{}' to '{}'.".format(relpath(path), relpath(gitignore))
... | def ignore(self, path, in_curr_dir=False):
base_dir = os.path.realpath(os.curdir) if in_curr_dir else os.path.dirname(path)
entry, gitignore = self._get_gitignore(path, base_dir)
if self._ignored(entry, gitignore):
return
msg = "Adding '{}' to '{}'.".format(
os.path.relpath(path), os.p... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def ignore_remove(self, path):
entry, gitignore = self._get_gitignore(path)
if not os.path.exists(gitignore):
return
with open(gitignore, "r") as fobj:
lines = fobj.readlines()
filtered = list(filter(lambda x: x.strip() != entry.strip(), lines))
with open(gitignore, "w") as fobj:... | def ignore_remove(self, path):
entry, gitignore = self._get_gitignore(path)
if not os.path.exists(gitignore):
return
with open(gitignore, "r") as fobj:
lines = fobj.readlines()
filtered = list(filter(lambda x: x.strip() != entry.strip(), lines))
with open(gitignore, "w") as fobj:... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def is_tracked(self, path):
# it is equivalent to `bool(self.git.git.ls_files(path))` by
# functionality, but ls_files fails on unicode filenames
path = relpath(path, self.root_dir)
return path in [i[0] for i in self.git.index.entries]
| def is_tracked(self, path):
# it is equivalent to `bool(self.git.git.ls_files(path))` by
# functionality, but ls_files fails on unicode filenames
path = os.path.relpath(path, self.root_dir)
return path in [i[0] for i in self.git.index.entries]
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def open(self, path, binary=False):
relative_path = relpath(path, self.git.working_dir)
obj = self.git_object_by_path(path)
if obj is None:
msg = "No such file in branch '{}'".format(self.rev)
raise IOError(errno.ENOENT, msg, relative_path)
if obj.mode == GIT_MODE_DIR:
raise IOE... | def open(self, path, binary=False):
relpath = os.path.relpath(path, self.git.working_dir)
obj = self.git_object_by_path(path)
if obj is None:
msg = "No such file in branch '{}'".format(self.rev)
raise IOError(errno.ENOENT, msg, relpath)
if obj.mode == GIT_MODE_DIR:
raise IOError... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def git_object_by_path(self, path):
import git
path = relpath(os.path.realpath(path), self.git.working_dir)
assert path.split(os.sep, 1)[0] != ".."
self._try_fetch_from_remote()
try:
tree = self.git.tree(self.rev)
except git.exc.BadName as exc:
raise DvcException(
... | def git_object_by_path(self, path):
import git
path = os.path.relpath(os.path.realpath(path), self.git.working_dir)
assert path.split(os.sep, 1)[0] != ".."
self._try_fetch_from_remote()
try:
tree = self.git.tree(self.rev)
except git.exc.BadName as exc:
raise DvcException(
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def relpath(self):
return relpath(self.path)
| def relpath(self):
return os.path.relpath(self.path)
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def _check_dvc_filename(fname):
if not Stage.is_valid_filename(fname):
raise StageFileBadNameError(
"bad stage filename '{}'. Stage files should be named"
" 'Dvcfile' or have a '.dvc' suffix (e.g. '{}.dvc').".format(
relpath(fname), os.path.basename(fname)
... | def _check_dvc_filename(fname):
if not Stage.is_valid_filename(fname):
raise StageFileBadNameError(
"bad stage filename '{}'. Stage files should be named"
" 'Dvcfile' or have a '.dvc' suffix (e.g. '{}.dvc').".format(
os.path.relpath(fname), os.path.basename(fname)
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def load(repo, fname):
fname, tag = Stage._get_path_tag(fname)
# it raises the proper exceptions by priority:
# 1. when the file doesn't exists
# 2. filename is not a DVC-file
# 3. path doesn't represent a regular file
Stage._check_file_exists(repo, fname)
Stage._check_dvc_filename(fname)
... | def load(repo, fname):
fname, tag = Stage._get_path_tag(fname)
# it raises the proper exceptions by priority:
# 1. when the file doesn't exists
# 2. filename is not a DVC-file
# 3. path doesn't represent a regular file
Stage._check_file_exists(repo, fname)
Stage._check_dvc_filename(fname)
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def dumpd(self):
rel_wdir = relpath(self.wdir, os.path.dirname(self.path))
return {
key: value
for key, value in {
Stage.PARAM_MD5: self.md5,
Stage.PARAM_CMD: self.cmd,
Stage.PARAM_WDIR: pathlib.PurePath(rel_wdir).as_posix(),
Stage.PARAM_LOCKED: se... | def dumpd(self):
rel_wdir = os.path.relpath(self.wdir, os.path.dirname(self.path))
return {
key: value
for key, value in {
Stage.PARAM_MD5: self.md5,
Stage.PARAM_CMD: self.cmd,
Stage.PARAM_WDIR: pathlib.PurePath(rel_wdir).as_posix(),
Stage.PARAM_LO... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def dump(self):
fname = self.path
self._check_dvc_filename(fname)
logger.info("Saving information to '{file}'.".format(file=relpath(fname)))
d = self.dumpd()
apply_diff(d, self._state)
dump_stage_file(fname, self._state)
self.repo.scm.track_file(relpath(fname))
| def dump(self):
fname = self.path
self._check_dvc_filename(fname)
logger.info("Saving information to '{file}'.".format(file=os.path.relpath(fname)))
d = self.dumpd()
apply_diff(d, self._state)
dump_stage_file(fname, self._state)
self.repo.scm.track_file(os.path.relpath(fname))
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
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 path_info.scheme == "local"
path = fspath_py35(path_i... | 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 path_info.scheme == "local"
path = fspath_py35(path_i... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def file_md5(fname):
"""get the (md5 hexdigest, md5 digest) of a file"""
from dvc.progress import progress
from dvc.istextfile import istextfile
if os.path.exists(fname):
hash_md5 = hashlib.md5()
binary = not istextfile(fname)
size = os.path.getsize(fname)
bar = False
... | def file_md5(fname):
"""get the (md5 hexdigest, md5 digest) of a file"""
from dvc.progress import progress
from dvc.istextfile import istextfile
if os.path.exists(fname):
hash_md5 = hashlib.md5()
binary = not istextfile(fname)
size = os.path.getsize(fname)
bar = False
... | https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def remove(path):
logger.debug("Removing '{}'".format(relpath(path)))
try:
if os.path.isdir(path):
shutil.rmtree(path, onerror=_chmod)
else:
_chmod(os.unlink, path, None)
except OSError as exc:
if exc.errno != errno.ENOENT:
raise
| def remove(path):
logger.debug("Removing '{}'".format(os.path.relpath(path)))
try:
if os.path.isdir(path):
shutil.rmtree(path, onerror=_chmod)
else:
_chmod(os.unlink, path, None)
except OSError as exc:
if exc.errno != errno.ENOENT:
raise
| https://github.com/iterative/dvc/issues/2119 | ERROR: failed to pull data from the cloud - path is on mount 'F:', start on mount 'C:'
Traceback (most recent call last):
File "c:\users\srg\appdata\local\continuum\anaconda3\envs\tf-keras\lib\site-packages\dvc\command\data_sync.py", line 46, in
do_run recursive=self.args.recursive,
File "c:\users\srg\appdata\local\con... | ValueError |
def __init__(self, args):
super(CmdCacheDir, self).__init__(args)
self.cache_config = CacheConfig(self.config)
| def __init__(self, args):
super(CmdCacheDir, self).__init__(args)
self.config = CacheConfig(self.config)
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def run(self):
self.cache_config.set_dir(self.args.value, level=self.args.level)
return 0
| def run(self):
self.config.set_dir(self.args.value, level=self.args.level)
return 0
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def __init__(self, args):
super(CmdRemoteConfig, self).__init__(args)
self.remote_config = RemoteConfig(self.config)
| def __init__(self, args):
super(CmdRemoteConfig, self).__init__(args)
self.config = RemoteConfig(self.config)
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def run(self):
self.remote_config.add(
self.args.name,
self.args.url,
force=self.args.force,
default=self.args.default,
level=self.args.level,
)
return 0
| def run(self):
self.config.add(
self.args.name,
self.args.url,
force=self.args.force,
default=self.args.default,
level=self.args.level,
)
return 0
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def run(self):
self.remote_config.remove(self.args.name, level=self.args.level)
return 0
| def run(self):
self.config.remove(self.args.name, level=self.args.level)
return 0
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def run(self):
self.remote_config.modify(
self.args.name,
self.args.option,
self.args.value,
level=self.args.level,
)
return 0
| def run(self):
self.config.modify(
self.args.name,
self.args.option,
self.args.value,
level=self.args.level,
)
return 0
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def run(self):
self.remote_config.set_default(
self.args.name, unset=self.args.unset, level=self.args.level
)
return 0
| def run(self):
self.config.set_default(
self.args.name, unset=self.args.unset, level=self.args.level
)
return 0
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def run(self):
for name, url in self.remote_config.list(level=self.args.level).items():
logger.info("{}\t{}".format(name, url))
return 0
| def run(self):
for name, url in self.config.list(level=self.args.level).items():
logger.info("{}\t{}".format(name, url))
return 0
| https://github.com/iterative/dvc/issues/2110 | Traceback (most recent call last):
File "/home/prd/development/tools/venvs/dvc3.6/bin/dvc", line 11, in <module>
load_entry_point('dvc', 'console_scripts', 'dvc')()
File "/home/prd/development/projects/dvc/dvc/main.py", line 57, in main
Analytics().send_cmd(cmd, args, ret)
File "/home/prd/development/projects/dvc/dvc/a... | dvc.config.ConfigError |
def __init__(self, stage, path, info=None, remote=None):
super(DependencyHTTP, self).__init__(stage, path, info=info, remote=remote)
if path.startswith("remote"):
path = urljoin(self.remote.cache_dir, urlparse(path).path)
self.path_info = PathInfo(self.scheme, url=self.url, path=path)
| def __init__(self, stage, path, info=None, remote=None):
super(DependencyHTTP, self).__init__(stage, path, info=info, remote=remote)
if path.startswith("remote"):
path = urljoin(self.remote.cache_dir, urlparse(path).path)
self.path_info = HTTPPathInfo(url=self.url, path=path)
| https://github.com/iterative/dvc/issues/1988 | (base) ➜ example git:(master) ✗ dvc import -v https://mibig.secondarymetabolites.org/mibig_json_1.4.tar.gz
DEBUG: PRAGMA user_version;
DEBUG: fetched: [(3,)]
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)
DEBUG: C... | AssertionError |
def __init__(self, repo, config):
super(RemoteHTTP, self).__init__(repo, config)
self.cache_dir = config.get(Config.SECTION_REMOTE_URL)
self.url = self.cache_dir
self.path_info = PathInfo(self.scheme)
| def __init__(self, repo, config):
super(RemoteHTTP, self).__init__(repo, config)
self.cache_dir = config.get(Config.SECTION_REMOTE_URL)
self.url = self.cache_dir
self.path_info = HTTPPathInfo()
| https://github.com/iterative/dvc/issues/1988 | (base) ➜ example git:(master) ✗ dvc import -v https://mibig.secondarymetabolites.org/mibig_json_1.4.tar.gz
DEBUG: PRAGMA user_version;
DEBUG: fetched: [(3,)]
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)
DEBUG: C... | AssertionError |
def download(
self,
from_infos,
to_infos,
no_progress_bar=False,
names=None,
resume=False,
):
names = self._verify_path_args(to_infos, from_infos, names)
for to_info, from_info, name in zip(to_infos, from_infos, names):
if from_info.scheme != self.scheme:
raise NotIm... | def download(
self,
from_infos,
to_infos,
no_progress_bar=False,
names=None,
resume=False,
):
names = self._verify_path_args(to_infos, from_infos, names)
for to_info, from_info, name in zip(to_infos, from_infos, names):
if from_info.scheme not in ["http", "https"]:
r... | https://github.com/iterative/dvc/issues/1988 | (base) ➜ example git:(master) ✗ dvc import -v https://mibig.secondarymetabolites.org/mibig_json_1.4.tar.gz
DEBUG: PRAGMA user_version;
DEBUG: fetched: [(3,)]
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)
DEBUG: C... | AssertionError |
def exists(self, path_info):
assert not isinstance(path_info, list)
assert path_info.scheme == self.scheme
return bool(self._request("HEAD", path_info.path))
| def exists(self, path_info):
assert not isinstance(path_info, list)
assert path_info.scheme in ["http", "https"]
return bool(self._request("HEAD", path_info.path))
| https://github.com/iterative/dvc/issues/1988 | (base) ➜ example git:(master) ✗ dvc import -v https://mibig.secondarymetabolites.org/mibig_json_1.4.tar.gz
DEBUG: PRAGMA user_version;
DEBUG: fetched: [(3,)]
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)
DEBUG: C... | AssertionError |
def _walk(
self,
tree,
topdown=True,
ignore_file_handler=None,
dvc_ignore_filter=None,
):
dirs, nondirs = [], []
for i in tree:
if i.mode == GIT_MODE_DIR:
dirs.append(i.name)
else:
nondirs.append(i.name)
if topdown:
if not dvc_ignore_filte... | def _walk(
self,
tree,
topdown=True,
ignore_file_handler=None,
dvc_ignore_filter=None,
):
dirs, nondirs = [], []
for i in tree:
if i.mode == GIT_MODE_DIR:
dirs.append(i.name)
else:
nondirs.append(i.name)
if topdown:
if not dvc_ignore_filte... | https://github.com/iterative/dvc/issues/1891 | dvc metrics show -a -v
ERROR: failed to show metrics - 'data/data-2010-2016.h5.dvc' does not exist.
------------------------------------------------------------
Traceback (most recent call last):
File "/Users/frag/miniconda3/envs/generic-dev/lib/python3.6/site-packages/dvc/command/metrics.py", line 47, in run
recursive... | dvc.stage.StageFileDoesNotExistError |
def walk(self, top, topdown=True, ignore_file_handler=None):
"""Directory tree generator.
See `os.walk` for the docs. Differences:
- no support for symlinks
- it could raise exceptions, there is no onerror argument
"""
def onerror(e):
raise e
for root, dirs, files in dvc_walk(
... | def walk(self, top, topdown=True, ignore_file_handler=None):
"""Directory tree generator.
See `os.walk` for the docs. Differences:
- no support for symlinks
- it could raise exceptions, there is no onerror argument
"""
def onerror(e):
raise e
for root, dirs, files in dvc_walk(
... | https://github.com/iterative/dvc/issues/1891 | dvc metrics show -a -v
ERROR: failed to show metrics - 'data/data-2010-2016.h5.dvc' does not exist.
------------------------------------------------------------
Traceback (most recent call last):
File "/Users/frag/miniconda3/envs/generic-dev/lib/python3.6/site-packages/dvc/command/metrics.py", line 47, in run
recursive... | dvc.stage.StageFileDoesNotExistError |
def __init__(self, root_dir=None):
from dvc.config import Config
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.updater import Updater
from dvc.repo.metrics import Metrics
from dv... | def __init__(self, root_dir=None):
from dvc.config import Config
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.updater import Updater
from dvc.repo.metrics import Metrics
from dv... | https://github.com/iterative/dvc/issues/1769 | python -c "import dvc.scm"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "dvc/scm/__init__.py", line 6, in <module>
from dvc.scm.git import Git
File "dvc/scm/git/__init__.py", line 15, in <module>
from dvc.scm.git.tree import GitTree
File "dvc/scm/git/tree.py", line 6, in <module>
from dv... | ImportError |
def brancher( # noqa: E302
self, branches=None, all_branches=False, tags=None, all_tags=False
):
"""Generator that iterates over specified revisions.
Args:
branches (list): a list of branches to iterate over.
all_branches (bool): iterate over all available branches.
tags (list): a ... | def brancher( # noqa: E302
self, branches=None, all_branches=False, tags=None, all_tags=False
):
"""Generator that iterates over specified revisions.
Args:
branches (list): a list of branches to iterate over.
all_branches (bool): iterate over all available branches.
tags (list): a ... | https://github.com/iterative/dvc/issues/1769 | python -c "import dvc.scm"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "dvc/scm/__init__.py", line 6, in <module>
from dvc.scm.git import Git
File "dvc/scm/git/__init__.py", line 15, in <module>
from dvc.scm.git.tree import GitTree
File "dvc/scm/git/tree.py", line 6, in <module>
from dv... | ImportError |
def get_state_record_for_inode(self, inode):
cmd = "SELECT mtime, size, md5, timestamp from {} WHERE inode={}"
cmd = cmd.format(self.STATE_TABLE, self._to_sqlite(inode))
self._execute(cmd)
results = self._fetchall()
if results:
# uniquness constrain on inode
assert len(results) == 1
... | def get_state_record_for_inode(self, inode):
cmd = "SELECT mtime, size, md5, timestamp from {} WHERE inode={}"
cmd = cmd.format(self.STATE_TABLE, inode)
self._execute(cmd)
results = self._fetchall()
if results:
# uniquness constrain on inode
assert len(results) == 1
return re... | https://github.com/iterative/dvc/issues/1707 | dvc run -f test.dvc -d train "python -c 'print()'"
Debug: PRAGMA user_version;
Debug: fetched: [(3,)]
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)
Debug: CREATE TABLE IF NOT EXISTS state_info (count INTEGER)
Deb... | sqlite3.IntegrityError |
def _do_draw(self, screen): # pragma: no cover
from asciimatics.event import KeyboardEvent
offset_x = 0
offset_y = 0
smaxrow, smaxcol = screen.dimensions
assert smaxrow > 1
assert smaxcol > 1
smaxrow -= 1
smaxcol -= 1
if self.lines + 1 > smaxrow:
max_y = self.lines + 1 - s... | def _do_draw(self, screen): # pragma: no cover
from asciimatics.event import KeyboardEvent
offset_x = 0
offset_y = 0
smaxrow, smaxcol = screen.dimensions
assert smaxrow > 1
assert smaxcol > 1
smaxrow -= 1
smaxcol -= 1
if self.lines + 1 > smaxrow:
max_y = self.lines + 1 - s... | https://github.com/iterative/dvc/issues/1359 | λ dvc pipeline show --ascii -v
Error: Traceback (most recent call last):
File "c:\users\klahrichi\appdata\local\continuum\anaconda3\lib\site-packages\dvc\main.py", line 22, in main
ret = cmd.run_cmd()
File "c:\users\klahrichi\appdata\local\continuum\anaconda3\lib\site-packages\dvc\command\base.py", line 41, in run_cmd
... | OSError |
def _do_draw(self, screen): # pragma: no cover
from dvc.system import System
from asciimatics.event import KeyboardEvent
offset_x = 0
offset_y = 0
smaxrow, smaxcol = screen.dimensions
assert smaxrow > 1
assert smaxcol > 1
smaxrow -= 1
smaxcol -= 1
if self.lines + 1 > smaxrow:
... | def _do_draw(self, screen): # pragma: no cover
from asciimatics.event import KeyboardEvent
offset_x = 0
offset_y = 0
smaxrow, smaxcol = screen.dimensions
assert smaxrow > 1
assert smaxcol > 1
smaxrow -= 1
smaxcol -= 1
if self.lines + 1 > smaxrow:
max_y = self.lines + 1 - s... | https://github.com/iterative/dvc/issues/1359 | λ dvc pipeline show --ascii -v
Error: Traceback (most recent call last):
File "c:\users\klahrichi\appdata\local\continuum\anaconda3\lib\site-packages\dvc\main.py", line 22, in main
ret = cmd.run_cmd()
File "c:\users\klahrichi\appdata\local\continuum\anaconda3\lib\site-packages\dvc\command\base.py", line 41, in run_cmd
... | OSError |
def load(project, fname):
if not os.path.exists(fname):
Stage._check_dvc_file(fname)
raise StageFileDoesNotExistError(fname)
Stage._check_dvc_filename(fname)
if not Stage.is_stage_file(fname):
Stage._check_dvc_file(fname)
raise StageFileIsNotDvcFileError(fname)
with op... | def load(project, fname):
if not os.path.exists(fname):
Stage._check_dvc_file(fname)
raise StageFileDoesNotExistError(fname)
Stage._check_dvc_filename(fname)
if not Stage.is_stage_file(fname):
Stage._check_dvc_file(fname)
raise StageFileIsNotDvcFileError(fname)
with op... | https://github.com/iterative/dvc/issues/1339 | Error: Traceback (most recent call last):
File "/home/efiop/.virtualenvs/dvc/lib/python2.7/site-packages/dvc/command/run.py", line 18, in run
no_exec=self.args.no_exec)
File "/home/efiop/.virtualenvs/dvc/lib/python2.7/site-packages/dvc/project.py", line 319, in run
self._check_output_duplication(stage.outs)
File "/home... | StageFileFormatError |
def hadoop_fs(self, cmd, user=None):
cmd = "hadoop fs -" + cmd
if user:
cmd = "HADOOP_USER_NAME={} ".format(user) + cmd
# NOTE: close_fds doesn't work with redirected stdin/stdout/stderr.
# See https://github.com/iterative/dvc/issues/1197.
close_fds = os.name != "nt"
executable = os.ge... | def hadoop_fs(self, cmd, user=None):
cmd = "hadoop fs -" + cmd
if user:
cmd = "HADOOP_USER_NAME={} ".format(user) + cmd
# NOTE: close_fds doesn't work with redirected stdin/stdout/stderr.
# See https://github.com/iterative/dvc/issues/1197.
close_fds = os.name != "nt"
p = Popen(
... | https://github.com/iterative/dvc/issues/1238 | $ dvc run -v -d data/Posts.xml.tgz -o data/Posts.xml tar zxf data/Posts.xml.tgz -C data/
Debug: updater is not old enough to check for updates
Debug: PRAGMA user_version;
Debug: fetched: [(2,)]
Debug: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT... | StageCmdFailedError |
def run(self, dry=False):
if self.locked:
msg = "Verifying outputs in locked stage '{}'"
self.project.logger.info(msg.format(self.relpath))
if not dry:
self.check_missing_outputs()
elif self.is_import:
msg = "Importing '{}' -> '{}'"
self.project.logger.info(ms... | def run(self, dry=False):
if self.locked:
msg = "Verifying outputs in locked stage '{}'"
self.project.logger.info(msg.format(self.relpath))
if not dry:
self.check_missing_outputs()
elif self.is_import:
msg = "Importing '{}' -> '{}'"
self.project.logger.info(ms... | https://github.com/iterative/dvc/issues/1238 | $ dvc run -v -d data/Posts.xml.tgz -o data/Posts.xml tar zxf data/Posts.xml.tgz -C data/
Debug: updater is not old enough to check for updates
Debug: PRAGMA user_version;
Debug: fetched: [(2,)]
Debug: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT... | StageCmdFailedError |
def hadoop_fs(self, cmd, user=None):
cmd = "hadoop fs -" + cmd
if user:
cmd = "HADOOP_USER_NAME={} ".format(user) + cmd
p = Popen(
cmd,
shell=True,
close_fds=True,
executable=os.getenv("SHELL"),
env=fix_env(os.environ),
stdin=PIPE,
stdout=PIPE,... | def hadoop_fs(self, cmd, user=None):
cmd = "hadoop fs -" + cmd
if user:
cmd = "HADOOP_USER_NAME={} ".format(user) + cmd
p = Popen(
cmd,
shell=True,
close_fds=True,
executable=os.getenv("SHELL"),
stdin=PIPE,
stdout=PIPE,
stderr=PIPE,
)
o... | https://github.com/iterative/dvc/issues/965 | Running command:
python3 test.py
/bin/bash: /tmp/_MEIACeYFM/libtinfo.so.5: no version information available (required by /bin/bash)
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_inter... | ImportError |
def run(self, dry=False):
if self.locked:
msg = "Verifying outputs in locked stage '{}'"
self.project.logger.info(msg.format(self.relpath))
if not dry:
self.check_missing_outputs()
elif self.is_import:
msg = "Importing '{}' -> '{}'"
self.project.logger.info(ms... | def run(self, dry=False):
if self.locked:
msg = "Verifying outputs in locked stage '{}'"
self.project.logger.info(msg.format(self.relpath))
if not dry:
self.check_missing_outputs()
elif self.is_import:
msg = "Importing '{}' -> '{}'"
self.project.logger.info(ms... | https://github.com/iterative/dvc/issues/965 | Running command:
python3 test.py
/bin/bash: /tmp/_MEIACeYFM/libtinfo.so.5: no version information available (required by /bin/bash)
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_inter... | ImportError |
def target_metric_from_git_history(self, hash, symlink_content, target, settings):
cache_rel_to_data = os.path.relpath(
settings.config.cache_dir, settings.config.data_dir
)
common_prefix = os.path.commonprefix([symlink_content, cache_rel_to_data])
cache_file_name = symlink_content[len(common_pr... | def target_metric_from_git_history(self, hash, symlink_content, target, settings):
cache_rel_to_data = os.path.relpath(
settings.config.cache_dir, settings.config.data_dir
)
common_prefix = os.path.commonprefix([symlink_content, cache_rel_to_data])
cache_file_name = symlink_content[len(common_pr... | https://github.com/iterative/dvc/issues/217 | (dvc) ➜ myrepo git:(master) dvc show workflow data/evaluation.txtException caught in CmdShowWorkflow
Traceback (most recent call last):
File "/home/efiop/virtenvs/dvc/lib/python2.7/site-packages/dvc/main.py", line 18, in main
ret = instance.run()
File "/home/efiop/virtenvs/dvc/lib/python2.7/site-packages/dvc/command/s... | ValueError |
def parse_args(argv=None):
# Common args
parent_parser = argparse.ArgumentParser(add_help=False)
parent_parser.add_argument(
"-q", "--quiet", action="store_true", default=False, help="Be quiet."
)
parent_parser.add_argument(
"-v", "--verbose", action="store_true", default=False, help... | def parse_args(argv=None):
# Common args
parent_parser = argparse.ArgumentParser(add_help=False)
parent_parser.add_argument(
"-q", "--quiet", action="store_true", default=False, help="Be quiet."
)
parent_parser.add_argument(
"-v", "--verbose", action="store_true", default=False, help... | https://github.com/iterative/dvc/issues/136 | $ dvc sync
Traceback (most recent call last):
File "/Users/dmitry/src/dvc/dvc.py", line 4, in <module>
main()
File "/Users/dmitry/src/dvc/dvc/main.py", line 11, in main
sys.exit(instance.run())
File "/Users/dmitry/src/dvc/dvc/command/data_sync.py", line 26, in run
raise DataSyncError('Sync target is not specified')
dvc... | dvc.command.data_sync.DataSyncError |
def run(self):
with DvcLock(self.is_locker, self.git):
cmd = [self.parsed_args.command] + self.parsed_args.args
data_items_from_args, not_data_items_from_args = self.argv_files_by_type(cmd)
return self.run_and_commit_if_needed(
cmd,
data_items_from_args,
n... | def run(self):
with DvcLock(self.is_locker, self.git):
data_items_from_args, not_data_items_from_args = self.argv_files_by_type(
self.parsed_args.command
)
return self.run_and_commit_if_needed(
self.parsed_args.command,
data_items_from_args,
no... | https://github.com/iterative/dvc/issues/136 | $ dvc sync
Traceback (most recent call last):
File "/Users/dmitry/src/dvc/dvc.py", line 4, in <module>
main()
File "/Users/dmitry/src/dvc/dvc/main.py", line 11, in main
sys.exit(instance.run())
File "/Users/dmitry/src/dvc/dvc/command/data_sync.py", line 26, in run
raise DataSyncError('Sync target is not specified')
dvc... | dvc.command.data_sync.DataSyncError |
def run(self):
if not self.skip_git_actions and not self.git.is_ready_to_go():
return 1
data_dir_path = self.get_not_existing_dir(self.parsed_args.data_dir)
cache_dir_path = self.get_not_existing_dir(self.parsed_args.cache_dir)
state_dir_path = self.get_not_existing_dir(self.parsed_args.state_d... | def run(self):
if not self.skip_git_actions and not self.git.is_ready_to_go():
return 1
data_dir_path = self.get_not_existing_dir(self.parsed_args.data_dir)
cache_dir_path = self.get_not_existing_dir(self.parsed_args.cache_dir)
state_dir_path = self.get_not_existing_dir(self.parsed_args.state_d... | https://github.com/iterative/dvc/issues/51 | $ dvc data-sync data/summary.txt
Downloading cache file from S3 "nlx-shared/tag_classifier/.cache/summary.txt_6405e23"
Traceback (most recent call last):
File "/Users/dmitry/src/dvc/dvc2.py", line 77, in <module>
Runtime.run(CmdDataSync, args_start_loc=argv_offset)
File "/Users/dmitry/src/dvc/dvc/runtime.py", line 45, ... | OSError |
def cleanup(self):
"""Delete expired meta-data."""
if not self.expires:
return
self.collection.delete_many(
{"date_done": {"$lt": self.app.now() - self.expires_delta}},
)
self.group_collection.delete_many(
{"date_done": {"$lt": self.app.now() - self.expires_delta}},
)
| def cleanup(self):
"""Delete expired meta-data."""
self.collection.delete_many(
{"date_done": {"$lt": self.app.now() - self.expires_delta}},
)
self.group_collection.delete_many(
{"date_done": {"$lt": self.app.now() - self.expires_delta}},
)
| https://github.com/celery/celery/issues/6450 | Task celery.backend_cleanup[75aa0973-534f-4812-a992-1ead4086f58c] raised unexpected: TypeError('unsupported type for timedelta seconds component: NoneType')
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/kombu/utils/objects.py", line 42, in __get__
return obj.__dict__[self.__name__]
Key... | KeyError |
def from_dict(cls, d, app=None):
# We need to mutate the `kwargs` element in place to avoid confusing
# `freeze()` implementations which end up here and expect to be able to
# access elements from that dictionary later and refer to objects
# canonicalized here
orig_tasks = d["kwargs"]["tasks"]
d... | def from_dict(cls, d, app=None):
return _upgrade(
d,
group(d["kwargs"]["tasks"], app=app, **d["options"]),
)
| https://github.com/celery/celery/issues/6341 | [2020-09-08 12:44:05,453: DEBUG/MainProcess] Task accepted: app.replace_with[dcea02fd-23a3-404a-9fdd-b213eb51c0d1] pid:453431
[2020-09-08 12:44:05,457: ERROR/ForkPoolWorker-8] Task app.replace_with[dcea02fd-23a3-404a-9fdd-b213eb51c0d1] raised unexpected: AttributeError("'dict' object has no attribute '_app'")
Traceback... | KeyError |
def convert(self, value, param, ctx):
return text.str_to_list(value)
| def convert(self, value, param, ctx):
return set(text.str_to_list(value))
| https://github.com/celery/celery/issues/6399 | Traceback (most recent call last):
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/bin/celery", line 8, in <module>
sys.exit(main())
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/__ma... | ValueError |
def prepare_models(self, engine):
if not self.prepared:
# SQLAlchemy will check if the items exist before trying to
# create them, which is a race condition. If it raises an error
# in one iteration, the next may pass all the existence checks
# and the call will succeed.
retr... | def prepare_models(self, engine):
if not self.prepared:
ResultModelBase.metadata.create_all(engine)
self.prepared = True
| https://github.com/celery/celery/issues/6296 | Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/redacted.py", line 168, in _redacted
result = async_result.get()
File "/usr/local/lib/python3.7/site-packages/celery/result.py", line 226, in get
self.maybe_throw(callback=callback)
File "/usr/local/lib/python3.7/site-packages/celery/result... | Exception |
def _detect_handler(self, logfile=None):
"""Create handler from filename, an open stream or `None` (stderr)."""
logfile = sys.__stderr__ if logfile is None else logfile
if hasattr(logfile, "write"):
return logging.StreamHandler(logfile)
return WatchedFileHandler(logfile, encoding="utf-8")
| def _detect_handler(self, logfile=None):
"""Create handler from filename, an open stream or `None` (stderr)."""
logfile = sys.__stderr__ if logfile is None else logfile
if hasattr(logfile, "write"):
return logging.StreamHandler(logfile)
return WatchedFileHandler(logfile)
| https://github.com/celery/celery/issues/5144 | [2018-10-24 15:35:00,541: WARNING/ForkPoolWorker-7] --- Logging error ---
[2018-10-24 15:35:00,541: WARNING/ForkPoolWorker-7] Traceback (most recent call last):
[2018-10-24 15:35:00,541: WARNING/ForkPoolWorker-7] File "/usr/lib/python3.6/logging/__init__.py", line 994, in emit
stream.write(msg)
[2018-10-24 15:35:00,541... | UnicodeEncodeError |
def __init__(
self, servers=None, keyspace=None, table=None, entry_ttl=None, port=9042, **kwargs
):
super(CassandraBackend, self).__init__(**kwargs)
if not cassandra:
raise ImproperlyConfigured(E_NO_CASSANDRA)
conf = self.app.conf
self.servers = servers or conf.get("cassandra_servers", Non... | def __init__(
self, servers=None, keyspace=None, table=None, entry_ttl=None, port=9042, **kwargs
):
super(CassandraBackend, self).__init__(**kwargs)
if not cassandra:
raise ImproperlyConfigured(E_NO_CASSANDRA)
conf = self.app.conf
self.servers = servers or conf.get("cassandra_servers", Non... | https://github.com/celery/celery/issues/6143 | [2020-06-02 21:52:19,592: ERROR/MainProcess] Task add[4bd528a0-c1ba-456c-b74e-7dee054616bb] raised unexpected: AttributeError("'NoneType' object has no attribute 'execute'")
Traceback (most recent call last):
File "/home/bx/project/celery/celery/app/trace.py", line 480, in trace_task
uuid, retval, task_request, publish... | AttributeError |
def _get_connection(self, write=False):
"""Prepare the connection for action.
Arguments:
write (bool): are we a writer?
"""
if self._session is not None:
return
self._lock.acquire()
try:
if self._session is not None:
return
self._cluster = cassandra.c... | def _get_connection(self, write=False):
"""Prepare the connection for action.
Arguments:
write (bool): are we a writer?
"""
if self._connection is not None:
return
try:
self._connection = cassandra.cluster.Cluster(
self.servers,
port=self.port,
... | https://github.com/celery/celery/issues/6143 | [2020-06-02 21:52:19,592: ERROR/MainProcess] Task add[4bd528a0-c1ba-456c-b74e-7dee054616bb] raised unexpected: AttributeError("'NoneType' object has no attribute 'execute'")
Traceback (most recent call last):
File "/home/bx/project/celery/celery/app/trace.py", line 480, in trace_task
uuid, retval, task_request, publish... | AttributeError |
def set(self, key, value):
"""Insert a doc with value into task attribute and _key as key."""
try:
logging.debug(
'INSERT {{ task: {task}, _key: "{key}" }} INTO {collection}'.format(
collection=self.collection, key=key, task=value
)
)
self.db.AQLQu... | def set(self, key, value, state):
"""Insert a doc with value into task attribute and _key as key."""
try:
logging.debug(
'INSERT {{ task: {task}, _key: "{key}" }} INTO {collection}'.format(
collection=self.collection, key=key, task=value
)
)
self.d... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
"""Store a value for a given key.
Args:
key: The key at which to store the value.
value: The value to store.
"""
key = bytes_to_str(key)
LOGGER.debug("Creating Azure Block Blob at %s/%s", self._container_name, key)
return self._client.create_blob... | def set(self, key, value, state):
"""Store a value for a given key.
Args:
key: The key at which to store the value.
value: The value to store.
"""
key = bytes_to_str(key)
LOGGER.debug("Creating Azure Block Blob at %s/%s", self._container_name, key)
return self._client.crea... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
raise NotImplementedError("Must implement the set method.")
| def set(self, key, value, state):
raise NotImplementedError("Must implement the set method.")
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def _store_result(self, task_id, result, state, traceback=None, request=None, **kwargs):
meta = self._get_result_meta(
result=result, state=state, traceback=traceback, request=request
)
meta["task_id"] = bytes_to_str(task_id)
# Retrieve metadata from the backend, if the status
# is a succes... | def _store_result(self, task_id, result, state, traceback=None, request=None, **kwargs):
meta = self._get_result_meta(
result=result, state=state, traceback=traceback, request=request
)
meta["task_id"] = bytes_to_str(task_id)
# Retrieve metadata from the backend, if the status
# is a succes... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def _save_group(self, group_id, result):
self._set_with_state(
self.get_key_for_group(group_id),
self.encode({"result": result.as_tuple()}),
states.SUCCESS,
)
return result
| def _save_group(self, group_id, result):
self.set(
self.get_key_for_group(group_id),
self.encode({"result": result.as_tuple()}),
states.SUCCESS,
)
return result
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
return self.client.set(key, value, self.expires)
| def set(self, key, value, state):
return self.client.set(key, value, self.expires)
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
"""Set a key in Consul.
Before creating the key it will create a session inside Consul
where it creates a session with a TTL
The key created afterwards will reference to the session's ID.
If the session expires it will remove the key so that results
can auto expire ... | def set(self, key, value, state):
"""Set a key in Consul.
Before creating the key it will create a session inside Consul
where it creates a session with a TTL
The key created afterwards will reference to the session's ID.
If the session expires it will remove the key so that results
can auto ... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
"""Store a value for a given key.
Args:
key: The key at which to store the value.
value: The value to store.
"""
key = bytes_to_str(key)
LOGGER.debug(
"Creating CosmosDB document %s/%s/%s",
self._database_name,
self._collection... | def set(self, key, value, state):
"""Store a value for a given key.
Args:
key: The key at which to store the value.
value: The value to store.
"""
key = bytes_to_str(key)
LOGGER.debug(
"Creating CosmosDB document %s/%s/%s",
self._database_name,
self._col... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
self.connection.set(key, value, ttl=self.expires, format=FMT_AUTO)
| def set(self, key, value, state):
self.connection.set(key, value, ttl=self.expires, format=FMT_AUTO)
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
key = bytes_to_str(key)
data = {"_id": key, "value": value}
try:
self.connection.save(data)
except pycouchdb.exceptions.Conflict:
# document already exists, update it
data = self.connection.get(key)
data["value"] = value
self.connection.... | def set(self, key, value, state):
key = bytes_to_str(key)
data = {"_id": key, "value": value}
try:
self.connection.save(data)
except pycouchdb.exceptions.Conflict:
# document already exists, update it
data = self.connection.get(key)
data["value"] = value
self.conn... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
key = string(key)
request_parameters = self._prepare_put_request(key, value)
self.client.put_item(**request_parameters)
| def set(self, key, value, state):
key = string(key)
request_parameters = self._prepare_put_request(key, value)
self.client.put_item(**request_parameters)
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
return self._set_with_state(key, value, None)
| def set(self, key, value, state):
body = {
"result": value,
"@timestamp": "{0}Z".format(datetime.utcnow().isoformat()[:-3]),
}
try:
self._index(
id=key,
body=body,
)
except elasticsearch.exceptions.ConflictError:
# document already exists, ... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def _update(self, id, body, state, **kwargs):
"""Update state in a conflict free manner.
If state is defined (not None), this will not update ES server if either:
* existing state is success
* existing state is a ready state and current state in not a ready state
This way, a Retry state cannot ove... | def _update(self, id, body, state, **kwargs):
body = {bytes_to_str(k): v for k, v in items(body)}
try:
res_get = self._get(key=id)
if not res_get.get("found"):
return self._index(id, body, **kwargs)
# document disappeared between index and get calls.
except elasticsearch... | https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
with self.open(self._filename(key), "wb") as outfile:
outfile.write(ensure_bytes(value))
| def set(self, key, value, state):
with self.open(self._filename(key), "wb") as outfile:
outfile.write(ensure_bytes(value))
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value, **retry_policy):
return self.ensure(self._set, (key, value), **retry_policy)
| def set(self, key, value, state, **retry_policy):
return self.ensure(self._set, (key, value), **retry_policy)
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
_key = self.bucket.new(key, data=value)
_key.store()
| def set(self, key, value, state):
_key = self.bucket.new(key, data=value)
_key.store()
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def set(self, key, value):
key = bytes_to_str(key)
s3_object = self._get_s3_object(key)
s3_object.put(Body=value)
| def set(self, key, value, state):
key = bytes_to_str(key)
s3_object = self._get_s3_object(key)
s3_object.put(Body=value)
| https://github.com/celery/celery/issues/6155 | celery_default_1 | [2020-06-04 19:51:47,723: ERROR/MainProcess] Pool callback raised exception: TypeError('set() takes 3 positional arguments but 4 were given',)
celery_default_1 | Traceback (most recent call last):
celery_default_1 | File "/usr/share/dashboard/venv/lib/python3.6/site-packages/billiard... | TypeError |
def _setdefaultopt(self, d, alt, value):
for opt in alt[1:]:
try:
return d[opt]
except KeyError:
pass
value = d.setdefault(alt[0], os.path.normpath(value))
dir_path = os.path.dirname(value)
if not os.path.exists(dir_path):
os.makedirs(dir_path)
return ... | def _setdefaultopt(self, d, alt, value):
for opt in alt[1:]:
try:
return d[opt]
except KeyError:
pass
value = os.path.normpath(value)
dir_path = os.path.dirname(value)
if not os.path.exists(dir_path):
os.makedirs(dir_path)
return d.setdefault(alt[0], v... | https://github.com/celery/celery/issues/6136 | celery multi v4.4.3 (cliffs)
_annotate_with_default_opts: print options
OrderedDict([('--app', 'service.celery:app'),
('--pidfile', '/var/run/demo/celeryd-%n.pid'),
('--logfile', '/var/log/demo/celeryd-%n%I.log'),
('--loglevel', 'INFO'),
('--workdir', '/var/lib/demo-celery'),
('--events', None),
('--heartbeat-interval'... | PermissionError |
def _task_from_fun(self, fun, name=None, base=None, bind=False, **options):
if not self.finalized and not self.autofinalize:
raise RuntimeError("Contract breach: app not finalized")
name = name or self.gen_task_name(fun.__name__, fun.__module__)
base = base or self.Task
if name not in self._tas... | def _task_from_fun(self, fun, name=None, base=None, bind=False, **options):
if not self.finalized and not self.autofinalize:
raise RuntimeError("Contract breach: app not finalized")
name = name or self.gen_task_name(fun.__name__, fun.__module__)
base = base or self.Task
if name not in self._tas... | https://github.com/celery/celery/issues/6135 | [2020-05-31 23:28:34,434: INFO/MainProcess] Connected to amqp://remote_worker:**@127.0.0.1:5672//
[2020-05-31 23:28:34,453: INFO/MainProcess] mingle: searching for neighbors
[2020-05-31 23:28:35,487: INFO/MainProcess] mingle: all alone
[2020-05-31 23:28:35,528: WARNING/MainProcess] /home/ubuntu/.local/lib/python3.7/sit... | Exception |
def run(*args, **kwargs):
try:
return task._orig_run(*args, **kwargs)
except Ignore:
# If Ignore signal occures task shouldn't be retried,
# even if it suits autoretry_for list
raise
except Retry:
raise
except autoretry_for as exc:
if retry_backoff:
... | def run(*args, **kwargs):
try:
return task._orig_run(*args, **kwargs)
except Ignore:
# If Ignore signal occures task shouldn't be retried,
# even if it suits autoretry_for list
raise
except autoretry_for as exc:
if retry_backoff:
retry_kwargs["countdown"] ... | https://github.com/celery/celery/issues/6135 | [2020-05-31 23:28:34,434: INFO/MainProcess] Connected to amqp://remote_worker:**@127.0.0.1:5672//
[2020-05-31 23:28:34,453: INFO/MainProcess] mingle: searching for neighbors
[2020-05-31 23:28:35,487: INFO/MainProcess] mingle: all alone
[2020-05-31 23:28:35,528: WARNING/MainProcess] /home/ubuntu/.local/lib/python3.7/sit... | Exception |
def __or__(self, other):
# These could be implemented in each individual class,
# I'm sure, but for now we have this.
if isinstance(self, group):
# group() | task -> chord
return chord(self, body=other, app=self._app)
elif isinstance(other, group):
# unroll group with one member
... | def __or__(self, other):
# These could be implemented in each individual class,
# I'm sure, but for now we have this.
if isinstance(self, group):
# group() | task -> chord
return chord(self, body=other, app=self._app)
elif isinstance(other, group):
# unroll group with one member
... | https://github.com/celery/celery/issues/5973 | Traceback (most recent call last):
File "test.py", line 30, in <module>
chain([chain(s2)]).apply_async() # issue
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 642, in apply_async
dict(self.options, **options) if options else self.options))
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 660, in run
task_id, g... | RuntimeError |
def unchain_tasks(self):
# Clone chain's tasks assigning signatures from link_error
# to each task
tasks = [t.clone() for t in self.tasks]
for sig in self.options.get("link_error", []):
for task in tasks:
task.link_error(sig)
return tasks
| def unchain_tasks(self):
# Clone chain's tasks assigning sugnatures from link_error
# to each task
tasks = [t.clone() for t in self.tasks]
for sig in self.options.get("link_error", []):
for task in tasks:
task.link_error(sig)
return tasks
| https://github.com/celery/celery/issues/5973 | Traceback (most recent call last):
File "test.py", line 30, in <module>
chain([chain(s2)]).apply_async() # issue
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 642, in apply_async
dict(self.options, **options) if options else self.options))
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 660, in run
task_id, g... | RuntimeError |
def __new__(cls, *tasks, **kwargs):
# This forces `chain(X, Y, Z)` to work the same way as `X | Y | Z`
if not kwargs and tasks:
if len(tasks) != 1 or is_list(tasks[0]):
tasks = tasks[0] if len(tasks) == 1 else tasks
# if is_list(tasks) and len(tasks) == 1:
# retur... | def __new__(cls, *tasks, **kwargs):
# This forces `chain(X, Y, Z)` to work the same way as `X | Y | Z`
if not kwargs and tasks:
if len(tasks) != 1 or is_list(tasks[0]):
tasks = tasks[0] if len(tasks) == 1 else tasks
return reduce(operator.or_, tasks)
return super(chain, cls).... | https://github.com/celery/celery/issues/5973 | Traceback (most recent call last):
File "test.py", line 30, in <module>
chain([chain(s2)]).apply_async() # issue
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 642, in apply_async
dict(self.options, **options) if options else self.options))
File "/bb/bin/dl/celery/4.4/celery/canvas.py", line 660, in run
task_id, g... | RuntimeError |
def __call__(self, *args, **kwargs):
_task_stack.push(self)
self.push_request(args=args, kwargs=kwargs)
try:
return self.run(*args, **kwargs)
finally:
self.pop_request()
_task_stack.pop()
| def __call__(self, *args, **kwargs):
logger = get_logger(__name__)
def handle_sigterm(signum, frame):
logger.info("SIGTERM received, waiting till the task finished")
signal.signal(signal.SIGTERM, handle_sigterm)
_task_stack.push(self)
self.push_request(args=args, kwargs=kwargs)
try:
... | https://github.com/celery/celery/issues/5775 | Traceback (most recent call last):
File "/app/pipelines/serializers.py", line 184, in create
remote_worker=validated_data['with_remote'],
File "/usr/local/lib/python3.7/site-packages/celery/local.py", line 191, in __call__
return self._get_current_object()(*a, **kw)
File "/usr/local/lib/python3.7/site-packages/celery/a... | ValueError |
def remove_if_stale(self):
"""Remove the lock if the process isn't running.
I.e. process does not respons to signal.
"""
try:
pid = self.read_pid()
except ValueError:
print("Broken pidfile found - Removing it.", file=sys.stderr)
self.remove()
return True
if not p... | def remove_if_stale(self):
"""Remove the lock if the process isn't running.
I.e. process does not respons to signal.
"""
try:
pid = self.read_pid()
except ValueError:
print("Broken pidfile found - Removing it.", file=sys.stderr)
self.remove()
return True
if not p... | https://github.com/celery/celery/issues/5409 | os.kill(2646, 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 1] Operation not permitted | OSError |
def join(
self,
timeout=None,
propagate=True,
interval=0.5,
callback=None,
no_ack=True,
on_message=None,
disable_sync_subtasks=True,
on_interval=None,
):
"""Gather the results of all tasks as a list in order.
Note:
This can be an expensive operation for result store
... | def join(
self,
timeout=None,
propagate=True,
interval=0.5,
callback=None,
no_ack=True,
on_message=None,
disable_sync_subtasks=True,
on_interval=None,
):
"""Gather the results of all tasks as a list in order.
Note:
This can be an expensive operation for result store
... | https://github.com/celery/celery/issues/5736 | Traceback (most recent call last):
File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/gsfish/.pyenv/versions/scan_detect/lib/python3.5/site-packages/celery/app/trace.py", line 648, in __protected_call__
r... | RuntimeError |
def prepare_steps(
self,
args,
kwargs,
tasks,
root_id=None,
parent_id=None,
link_error=None,
app=None,
last_task_id=None,
group_id=None,
chord_body=None,
clone=True,
from_dict=Signature.from_dict,
):
app = app or self.app
# use chain message field for protocol... | def prepare_steps(
self,
args,
kwargs,
tasks,
root_id=None,
parent_id=None,
link_error=None,
app=None,
last_task_id=None,
group_id=None,
chord_body=None,
clone=True,
from_dict=Signature.from_dict,
):
app = app or self.app
# use chain message field for protocol... | https://github.com/celery/celery/issues/5467 | Traceback (most recent call last):
File "debug_run.py", line 19, in <module>
res.delay()
File "/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py", line 179, in delay
return self.apply_async(partial_args, partial_kwargs)
File "/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/c... | AttributeError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.