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 __contains__(self, path): if super().__contains__(path): return True return path in self.passthroughdict
def __contains__(self, path): # if already in inventory, always return True. return self.cache.in_inventory(path) or super().__contains__(path)
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def inventory(self, cache: snakemake.io.IOCache): """Using client.list_blobs(), we want to iterate over the objects in the "folder" of a bucket and store information about the IOFiles in the provided cache (snakemake.io.IOCache) indexed by bucket/blob name. This will be called by the first mention of a ...
def inventory(self, cache: snakemake.io.IOCache): """Using client.list_blobs(), we want to iterate over the objects in the "folder" of a bucket and store information about the IOFiles in the provided cache (snakemake.io.IOCache) indexed by bucket/blob name. This will be called by the first mention of a ...
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def inventory(self, cache: snakemake.io.IOCache): """From this file, try to find as much existence and modification date information as possible for files in the same folder. """ # If this is implemented in a remote object, results have to be stored in # the given IOCache object. pass
def inventory(self, cache: snakemake.io.IOCache): """From this file, try to find as much existence and modification date information as possible. """ # If this is implemented in a remote object, results have to be stored in # the given IOCache object. pass
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def init(self, progress=False): """Initialise the DAG.""" for job in map(self.rule2job, self.targetrules): job = self.update([job], progress=progress, create_inventory=True) self.targetjobs.add(job) for file in self.targetfiles: job = self.update( self.file2jobs(file), ...
def init(self, progress=False): """Initialise the DAG.""" for job in map(self.rule2job, self.targetrules): job = self.update([job], progress=progress) self.targetjobs.add(job) for file in self.targetfiles: job = self.update(self.file2jobs(file), file=file, progress=progress) ...
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def handle_remote(self, job, upload=True): """Remove local files if they are no longer needed and upload.""" if upload: # handle output files files = list(job.expanded_output) if job.benchmark: files.append(job.benchmark) for f in files: if f.is_remote and...
def handle_remote(self, job, upload=True): """Remove local files if they are no longer needed and upload.""" if upload: # handle output files files = list(job.expanded_output) if job.benchmark: files.append(job.benchmark) for f in files: if f.is_remote and...
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def update( self, jobs, file=None, visited=None, skip_until_dynamic=False, progress=False, create_inventory=False, ): """Update the DAG by adding given jobs and their dependencies.""" if visited is None: visited = set() producer = None exceptions = list() jobs = s...
def update( self, jobs, file=None, visited=None, skip_until_dynamic=False, progress=False ): """Update the DAG by adding given jobs and their dependencies.""" if visited is None: visited = set() producer = None exceptions = list() jobs = sorted(jobs, reverse=not self.ignore_ambiguity) ...
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def update_( self, job, visited=None, skip_until_dynamic=False, progress=False, create_inventory=False, ): """Update the DAG by adding the given job and its dependencies.""" if job in self.dependencies: return if visited is None: visited = set() visited.add(job) ...
def update_(self, job, visited=None, skip_until_dynamic=False, progress=False): """Update the DAG by adding the given job and its dependencies.""" if job in self.dependencies: return if visited is None: visited = set() visited.add(job) dependencies = self.dependencies[job] potent...
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def summary(self, detailed=False): if detailed: yield "output_file\tdate\trule\tversion\tlog-file(s)\tinput-file(s)\tshellcmd\tstatus\tplan" else: yield "output_file\tdate\trule\tversion\tlog-file(s)\tstatus\tplan" for job in self.jobs: output = job.rule.output if self.dynamic(job) ...
def summary(self, detailed=False): if detailed: yield "output_file\tdate\trule\tversion\tlog-file(s)\tinput-file(s)\tshellcmd\tstatus\tplan" else: yield "output_file\tdate\trule\tversion\tlog-file(s)\tstatus\tplan" for job in self.jobs: output = job.rule.output if self.dynamic(job) ...
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def __init__(self, cache): super().__init__() self.cache = cache self.has_inventory = set()
def __init__(self, cache): super().__init__() self.cache = cache
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def mtime(self): return self.mtime_uncached
def mtime(self): return self.mtime_local
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def local(self, follow_symlinks=False): if follow_symlinks and self._local_target is not None: return self._local_target return self._local
def local(value): """Mark a file as local file. This disables application of a default remote provider. """ if is_flagged(value, "remote"): raise SyntaxError("Remote and local flags are mutually exclusive.") return flag(value, "local")
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def output_mintime(self): """Return oldest output file.""" try: mintime = min( f.mtime.local_or_remote() for f in self.expanded_output if f.exists ) except ValueError: # no existing output mintime = None if self.benchmark and self.benchmark.exists: mi...
def output_mintime(self): """Return oldest output file.""" existing = [f.mtime for f in self.expanded_output if f.exists] if self.benchmark and self.benchmark.exists: existing.append(self.benchmark.mtime) if existing: return min(existing) return None
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def remote_input_newer_than_local(self): files = set() for f in self.remote_input: if (f.exists_remote and f.exists_local) and ( f.mtime.remote() > f.mtime.local(follow_symlinks=True) ): files.add(f) return files
def remote_input_newer_than_local(self): files = set() for f in self.remote_input: if (f.exists_remote and f.exists_local) and (f.mtime > f.mtime_local): files.add(f) return files
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def remote_input_older_than_local(self): files = set() for f in self.remote_input: if (f.exists_remote and f.exists_local) and ( f.mtime.remote() < f.mtime.local(follow_symlinks=True) ): files.add(f) return files
def remote_input_older_than_local(self): files = set() for f in self.remote_input: if (f.exists_remote and f.exists_local) and (f.mtime < f.mtime_local): files.add(f) return files
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def remote_output_newer_than_local(self): files = set() for f in self.remote_output: if (f.exists_remote and f.exists_local) and ( f.mtime.remote() > f.mtime.local(follow_symlinks=True) ): files.add(f) return files
def remote_output_newer_than_local(self): files = set() for f in self.remote_output: if (f.exists_remote and f.exists_local) and (f.mtime > f.mtime_local): files.add(f) return files
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def remote_output_older_than_local(self): files = set() for f in self.remote_output: if (f.exists_remote and f.exists_local) and ( f.mtime.remote() < f.mtime.local(follow_symlinks=True) ): files.add(f) return files
def remote_output_older_than_local(self): files = set() for f in self.remote_output: if (f.exists_remote and f.exists_local) and (f.mtime < f.mtime_local): files.add(f) return files
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def finished(self, job, keep_metadata=True): if not keep_metadata: for f in job.expanded_output: self._delete_record(self._incomplete_path, f) return version = str(job.rule.version) if job.rule.version is not None else None code = self._code(job.rule) input = self._input(job...
def finished(self, job, keep_metadata=True): if not keep_metadata: for f in job.expanded_output: self._delete_record(self._incomplete_path, f) return version = str(job.rule.version) if job.rule.version is not None else None code = self._code(job.rule) input = self._input(job...
https://github.com/snakemake/snakemake/issues/611
Building DAG of jobs... Traceback (most recent call last): File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake keepincomplete=keep_incomplete, File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py"...
FileNotFoundError
def inventory(self, cache: snakemake.io.IOCache): """Using client.list_blobs(), we want to iterate over the objects in the "folder" of a bucket and store information about the IOFiles in the provided cache (snakemake.io.IOCache) indexed by bucket/blob name. This will be called by the first mention of a ...
def inventory(self, cache: snakemake.io.IOCache): """Using client.list_blobs(), we want to iterate over the objects in the "folder" of a bucket and store information about the IOFiles in the provided cache (snakemake.io.IOCache) indexed by bucket/blob name. This will be called by the first mention of a ...
https://github.com/snakemake/snakemake/issues/572
Traceback (most recent call last): File "/home/hannes/miniconda3/envs/target-id/lib/python3.6/site-packages/snakemake/__init__.py", line 704, in snakemake keepincomplete=keep_incomplete, File "/home/hannes/miniconda3/envs/target-id/lib/python3.6/site-packages/snakemake/workflow.py", line 667, in execute dag.init() File...
TypeError
def execute( self, targets=None, dryrun=False, touch=False, local_cores=1, forcetargets=False, forceall=False, forcerun=None, until=[], omit_from=[], prioritytargets=None, quiet=False, keepgoing=False, printshellcmds=False, printreason=False, printdag=Fals...
def execute( self, targets=None, dryrun=False, touch=False, local_cores=1, forcetargets=False, forceall=False, forcerun=None, until=[], omit_from=[], prioritytargets=None, quiet=False, keepgoing=False, printshellcmds=False, printreason=False, printdag=Fals...
https://github.com/snakemake/snakemake/issues/24
Traceback (most recent call last): File "/mypath/miniconda/envs/mydef/lib/python3.7/site-packages/snakemake/__init__.py", line 611, in snakemake export_cwl=export_cwl, File "/mypath/miniconda/envs/mydef/lib/python3.7/site-packages/snakemake/workflow.py", line 558, in execute updated_files=updated, File "/mypath/minicon...
TypeError
def _get_provenance_hash(self, job: Job): """ Recursively calculate hash for the output of the given job and all upstream jobs in a blockchain fashion. This is based on an idea of Sven Nahnsen. Fails if job has more than one output file. The reason is that there is no way to generate a per-outp...
def _get_provenance_hash(self, job: Job): """ Recursively calculate hash for the output of the given job and all upstream jobs in a blockchain fashion. This is based on an idea of Sven Nahnsen. Fails if job has more than one output file. The reason is that there is no way to generate a per-outp...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def job_to_cwl(job, dag, outputs, inputs): """Convert a job with its dependencies to a CWL workflow step.""" if job.dynamic_output: raise WorkflowError("Dynamic output is not supported by CWL conversion.") for f in job.output: if os.path.isabs(f): raise WorkflowError( ...
def job_to_cwl(job, dag, outputs, inputs): """Convert a job with its dependencies to a CWL workflow step.""" if job.dynamic_output: raise WorkflowError("Dynamic output is not supported by CWL conversion.") for f in job.output: if os.path.isabs(f): raise WorkflowError( ...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def sleep(): # do not sleep on CI. In that case we just want to quickly test everything. if os.environ.get("CI") != "true": time.sleep(10)
def sleep(): # do not sleep on CI. In that case we just want to quickly test everything. if os.environ.get("CIRCLECI") != "true": time.sleep(10)
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def job_args_and_prepare(self, job): job.prepare() conda_env = job.conda_env_path singularity_img = job.singularity_img_path benchmark = None benchmark_repeats = job.benchmark_repeats or 1 if job.benchmark is not None: benchmark = str(job.benchmark) return ( job.rule, ...
def job_args_and_prepare(self, job): job.prepare() conda_env = job.conda_env_path singularity_img = job.singularity_img_path benchmark = None benchmark_repeats = job.benchmark_repeats or 1 if job.benchmark is not None: benchmark = str(job.benchmark) return ( job.rule, ...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def __init__( self, toclone=None, fromdict=None, plainstr=False, strip_constraints=False, custom_map=None, ): """ Create the object. Arguments toclone -- another Namedlist that shall be cloned fromdict -- a dict that shall be converted to a Namedlist (keys become na...
def __init__( self, toclone=None, fromdict=None, plainstr=False, strip_constraints=False, custom_map=None, ): """ Create the object. Arguments toclone -- another Namedlist that shall be cloned fromdict -- a dict that shall be converted to a Namedlist (keys become na...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def keys(self): return self._names.keys()
def keys(self): return self._names
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def format_dict(dict_like, omit_keys=[], omit_values=[]): from snakemake.io import Namedlist if isinstance(dict_like, Namedlist): items = dict_like.items() elif isinstance(dict_like, dict): items = dict_like.items() else: raise ValueError( "bug: format_dict applied t...
def format_dict(dict, omit_keys=[], omit_values=[]): return ", ".join( "{}={}".format(name, str(value)) for name, value in dict.items() if name not in omit_keys and value not in omit_values )
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def dynamic_branch(self, wildcards, input=True): def get_io(rule): return ( (rule.input, rule.dynamic_input) if input else (rule.output, rule.dynamic_output) ) def partially_expand(f, wildcards): """Expand the wildcards in f from the ones present in w...
def dynamic_branch(self, wildcards, input=True): def get_io(rule): return ( (rule.input, rule.dynamic_input) if input else (rule.output, rule.dynamic_output) ) def partially_expand(f, wildcards): """Expand the wildcards in f from the ones present in w...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def check_output_duplicates(self): """Check ``Namedlist`` for duplicate entries and raise a ``WorkflowError`` on problems. """ seen = dict() idx = None for name, value in self.output._allitems(): if name is None: if idx is None: idx = 0 else: ...
def check_output_duplicates(self): """Check ``Namedlist`` for duplicate entries and raise a ``WorkflowError`` on problems. """ seen = dict() idx = None for name, value in self.output.allitems(): if name is None: if idx is None: idx = 0 else: ...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def _set_inoutput_item(self, item, output=False, name=None): """ Set an item to be input or output. Arguments item -- the item inoutput -- a Namedlist of either input or output items name -- an optional name for the item """ inoutput = self.output if output else self.input #...
def _set_inoutput_item(self, item, output=False, name=None): """ Set an item to be input or output. Arguments item -- the item inoutput -- a Namedlist of either input or output items name -- an optional name for the item """ inoutput = self.output if output else self.input #...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def _set_params_item(self, item, name=None): self.params.append(item) if name: self.params._add_name(name)
def _set_params_item(self, item, name=None): self.params.append(item) if name: self.params.add_name(name)
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def _set_log_item(self, item, name=None): # Pathlib compatibility if isinstance(item, Path): item = str(item) if isinstance(item, str) or callable(item): if not callable(item): item = self.apply_default_remote(item) item = self._update_item_wildcard_constraints(item) ...
def _set_log_item(self, item, name=None): # Pathlib compatibility if isinstance(item, Path): item = str(item) if isinstance(item, str) or callable(item): if not callable(item): item = self.apply_default_remote(item) item = self._update_item_wildcard_constraints(item) ...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def _apply_wildcards( self, newitems, olditems, wildcards, concretize=None, check_return_type=True, omit_callable=False, mapping=None, no_flattening=False, aux_params=None, apply_default_remote=True, incomplete_checkpoint_func=lambda e: None, allow_unpack=True, ): ...
def _apply_wildcards( self, newitems, olditems, wildcards, concretize=None, check_return_type=True, omit_callable=False, mapping=None, no_flattening=False, aux_params=None, apply_default_remote=True, incomplete_checkpoint_func=lambda e: None, allow_unpack=True, ): ...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def expand_params(self, wildcards, input, output, resources, omit_callable=False): def concretize_param(p, wildcards, is_from_callable): if not is_from_callable: if isinstance(p, str): return apply_wildcards(p, wildcards) if isinstance(p, list): return...
def expand_params(self, wildcards, input, output, resources, omit_callable=False): def concretize_param(p, wildcards, is_from_callable): if not is_from_callable: if isinstance(p, str): return apply_wildcards(p, wildcards) if isinstance(p, list): return...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def expand_output(self, wildcards): output = OutputFiles(o.apply_wildcards(wildcards) for o in self.output) output._take_names(self.output._get_names()) mapping = {f: f_ for f, f_ in zip(output, self.output)} for f in output: f.check() # Note that we do not need to check for duplicate file...
def expand_output(self, wildcards): output = OutputFiles(o.apply_wildcards(wildcards) for o in self.output) output.take_names(self.output.get_names()) mapping = {f: f_ for f, f_ in zip(output, self.output)} for f in output: f.check() # Note that we do not need to check for duplicate file n...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def input(self): return self.rule.input._stripped_constraints()
def input(self): return self.rule.input.stripped_constraints()
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def params(self): return self.rule.params._clone()
def params(self): return self.rule.params.clone()
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def __init__( self, input, output, params, wildcards, threads, resources, log, config, rulename, bench_iteration, scriptdir=None, ): # convert input and output to plain strings as some remote objects cannot # be pickled self.input = input._plainstrings() s...
def __init__( self, input, output, params, wildcards, threads, resources, log, config, rulename, bench_iteration, scriptdir=None, ): # convert input and output to plain strings as some remote objects cannot # be pickled self.input = input.plainstrings() se...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def script( path, basedir, input, output, params, wildcards, threads, resources, log, config, rulename, conda_env, singularity_img, singularity_args, bench_record, jobid, bench_iteration, cleanup_scripts, shadow_dir, ): """ Load a scrip...
def script( path, basedir, input, output, params, wildcards, threads, resources, log, config, rulename, conda_env, singularity_img, singularity_args, bench_record, jobid, bench_iteration, cleanup_scripts, shadow_dir, ): """ Load a scrip...
https://github.com/snakemake/snakemake/issues/143
snakemake --report Building DAG of jobs... Creating report... Adding foo.rst (0 MB). Could not detect mimetype for foo.rst, assuming text/plain. Traceback (most recent call last): File "/mnt/work/Qc.py375.venv/lib/python3.7/site-packages/snakemake/__init__.py", line 618, in snakemake batch=batch, File "/mnt/work/Qc.py...
TypeError
def __init__( self, *args, keep_local=False, stay_on_remote=False, is_default=False, **kwargs ): super(RemoteProvider, self).__init__( *args, keep_local=keep_local, stay_on_remote=stay_on_remote, is_default=is_default, **kwargs, ) self._as = AzureStorageHelper(*a...
def __init__(self, *args, stay_on_remote=False, **kwargs): super(RemoteProvider, self).__init__(*args, stay_on_remote=stay_on_remote, **kwargs) self._as = AzureStorageHelper(*args, **kwargs)
https://github.com/snakemake/snakemake/issues/30
snakemake --tibanna --default-remote-prefix=tibanna/run_1 Traceback (most recent call last): File "/tmp/tmp.1BY3tqvG9v/venv/lib/python3.6/site-packages/snakemake/__init__.py", line 421, in snakemake keep_local=True, is_default=True File "/tmp/tmp.1BY3tqvG9v/venv/lib/python3.6/site-packages/snakemake/remote/S3.py", line...
TypeError
def __init__( self, *args, keep_local=False, stay_on_remote=False, is_default=False, **kwargs ): super(RemoteProvider, self).__init__( *args, keep_local=keep_local, stay_on_remote=stay_on_remote, is_default=is_default, **kwargs, ) # in addition to methods provided by...
def __init__( self, *args, stay_on_remote=False, **kwargs ): # this method is evaluated when instantiating this class super(RemoteProvider, self).__init__( *args, stay_on_remote=stay_on_remote, **kwargs ) # in addition to methods provided by AbstractRemoteProvider, we add these in self._s3c =...
https://github.com/snakemake/snakemake/issues/30
snakemake --tibanna --default-remote-prefix=tibanna/run_1 Traceback (most recent call last): File "/tmp/tmp.1BY3tqvG9v/venv/lib/python3.6/site-packages/snakemake/__init__.py", line 421, in snakemake keep_local=True, is_default=True File "/tmp/tmp.1BY3tqvG9v/venv/lib/python3.6/site-packages/snakemake/remote/S3.py", line...
TypeError
def createuser(email, password, superuser, no_password, no_input, force_update): "Create a new user." if not no_input: if not email: email = _get_email() if not (password or no_password): password = _get_password() if superuser is None: superuser = _...
def createuser(email, password, superuser, no_password, no_input, force_update): "Create a new user." if not no_input: if not email: email = _get_email() if not (password or no_password): password = _get_password() if superuser is None: superuser = _...
https://github.com/getsentry/sentry/issues/19139
$ sudo docker-compose run --rm web sentry --version sentry, version 10.1.0.dev0 (0bf9ffa08ff2) $ sudo docker-compose run --rm web sentry createuser --email testuser@test.com --password pass1 --no-superuser --no-input --force-update 21:32:17 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured. 21:32:21 [...
ValueError
def put(self, request): # TODO(dcramer): this should validate options before saving them for k, v in six.iteritems(request.data): if v and isinstance(v, six.string_types): v = v.strip() try: option = options.lookup_key(k) except options.UnknownOption: ...
def put(self, request): # TODO(dcramer): this should validate options before saving them for k, v in six.iteritems(request.data): if v and isinstance(v, six.string_types): v = v.strip() try: option = options.lookup_key(k) except options.UnknownOption: ...
https://github.com/getsentry/sentry/issues/21159
Oct 6 07:18:49 jsentry sentry[4128]: 10.100.33.5 - - [06/Oct/2020:04:18:49 +0000] "GET /api/0/internal/options/ HTTP/1.1" 200 20407 "https://sentry.findmykids.org/manage/settings/" "Mozilla/5.0 (X11; FreeBSD amd64; rv:76.0) Gecko/20100101 Firefox/76.0" Oct 6 07:19:09 jsentry sentry[4128]: Traceback (most recent call ...
AssertionError
def wrap_index(typingctx, idx, size): """ Calculate index value "idx" relative to a size "size" value as (idx % size), where "size" is known to be positive. Note that we use the mod(%) operation here instead of (idx < 0 ? idx + size : idx) because we may have situations where idx > size due to t...
def wrap_index(typingctx, idx, size): """ Calculate index value "idx" relative to a size "size" value as (idx % size), where "size" is known to be positive. Note that we use the mod(%) operation here instead of (idx < 0 ? idx + size : idx) because we may have situations where idx > size due to t...
https://github.com/numba/numba/issues/6774
Traceback (most recent call last): File "/home/auderson/miniconda3/lib/python3.8/site-packages/numba/core/errors.py", line 744, in new_error_context yield File "/home/auderson/miniconda3/lib/python3.8/site-packages/numba/core/lowering.py", line 230, in lower_block self.lower_inst(inst) File "/home/auderson/miniconda3/l...
RuntimeError
def _match_array_expr(self, instr, expr, target_name): """ Find whether the given assignment (*instr*) of an expression (*expr*) to variable *target_name* is an array expression. """ # We've matched a subexpression assignment to an # array variable. Now see if the expression is an # array e...
def _match_array_expr(self, instr, expr, target_name): """ Find whether the given assignment (*instr*) of an expression (*expr*) to variable *target_name* is an array expression. """ # We've matched a subexpression assignment to an # array variable. Now see if the expression is an # array e...
https://github.com/numba/numba/issues/5157
numba.errors.TypingError: Failed in nopython mode pipeline (step: nopython mode backend) Failed in nopython mode pipeline (step: nopython frontend) No conversion from array(int64, 1d, C) to int64 for '$8return_value.3', defined at None File "array_expr_issue.py", line 68: def foo(x, y): return Dummy(x) + Dummy(y) ^ [...
numba.errors.TypingError
def _create_empty_module(self, name): ir_module = lc.Module(name) ir_module.triple = CUDA_TRIPLE[utils.MACHINE_BITS] if self._data_layout: ir_module.data_layout = self._data_layout nvvm.add_ir_version(ir_module) return ir_module
def _create_empty_module(self, name): ir_module = lc.Module(name) ir_module.triple = CUDA_TRIPLE[utils.MACHINE_BITS] if self._data_layout: ir_module.data_layout = self._data_layout return ir_module
https://github.com/numba/numba/issues/6719
Traceback (most recent call last): File "repro.py", line 6, in <module> cuda.compile_ptx_for_current_device(f, [], device=True, debug=True) File "/home/gmarkall/numbadev/numba/numba/cuda/compiler.py", line 124, in compile_ptx_for_current_device return compile_ptx(pyfunc, args, debug=-debug, device=device, File "/home/g...
numba.cuda.cudadrv.error.NvvmError
def compile_cuda(pyfunc, return_type, args, debug=False, inline=False): from .descriptor import cuda_target typingctx = cuda_target.typingctx targetctx = cuda_target.targetctx flags = compiler.Flags() # Do not compile (generate native code), just lower (to LLVM) flags.set("no_compile") fla...
def compile_cuda(pyfunc, return_type, args, debug=False, inline=False): # First compilation will trigger the initialization of the CUDA backend. from .descriptor import CUDATargetDesc typingctx = CUDATargetDesc.typingctx targetctx = CUDATargetDesc.targetctx # TODO handle debug flag flags = comp...
https://github.com/numba/numba/issues/6719
Traceback (most recent call last): File "repro.py", line 6, in <module> cuda.compile_ptx_for_current_device(f, [], device=True, debug=True) File "/home/gmarkall/numbadev/numba/numba/cuda/compiler.py", line 124, in compile_ptx_for_current_device return compile_ptx(pyfunc, args, debug=-debug, device=device, File "/home/g...
numba.cuda.cudadrv.error.NvvmError
def compile_device_template(pyfunc, debug=False, inline=False, opt=True): """Create a DeviceFunctionTemplate object and register the object to the CUDA typing context. """ from .descriptor import cuda_target dft = DeviceFunctionTemplate(pyfunc, debug=debug, inline=inline, opt=opt) class device...
def compile_device_template(pyfunc, debug=False, inline=False, opt=True): """Create a DeviceFunctionTemplate object and register the object to the CUDA typing context. """ from .descriptor import CUDATargetDesc dft = DeviceFunctionTemplate(pyfunc, debug=debug, inline=inline, opt=opt) class dev...
https://github.com/numba/numba/issues/6719
Traceback (most recent call last): File "repro.py", line 6, in <module> cuda.compile_ptx_for_current_device(f, [], device=True, debug=True) File "/home/gmarkall/numbadev/numba/numba/cuda/compiler.py", line 124, in compile_ptx_for_current_device return compile_ptx(pyfunc, args, debug=-debug, device=device, File "/home/g...
numba.cuda.cudadrv.error.NvvmError
def declare_device_function(name, restype, argtypes): from .descriptor import cuda_target typingctx = cuda_target.typingctx targetctx = cuda_target.targetctx sig = typing.signature(restype, *argtypes) extfn = ExternFunction(name, sig) class device_function_template(ConcreteTemplate): k...
def declare_device_function(name, restype, argtypes): from .descriptor import CUDATargetDesc typingctx = CUDATargetDesc.typingctx targetctx = CUDATargetDesc.targetctx sig = typing.signature(restype, *argtypes) extfn = ExternFunction(name, sig) class device_function_template(ConcreteTemplate): ...
https://github.com/numba/numba/issues/6719
Traceback (most recent call last): File "repro.py", line 6, in <module> cuda.compile_ptx_for_current_device(f, [], device=True, debug=True) File "/home/gmarkall/numbadev/numba/numba/cuda/compiler.py", line 124, in compile_ptx_for_current_device return compile_ptx(pyfunc, args, debug=-debug, device=device, File "/home/g...
numba.cuda.cudadrv.error.NvvmError
def __init__(self, py_func, sigs, targetoptions): self.py_func = py_func self.sigs = [] self.link = targetoptions.pop( "link", (), ) self._can_compile = True # Specializations for given sets of argument types self.specializations = {} # A mapping of signatures to compil...
def __init__(self, py_func, sigs, targetoptions): self.py_func = py_func self.sigs = [] self.link = targetoptions.pop( "link", (), ) self._can_compile = True # Specializations for given sets of argument types self.specializations = {} # A mapping of signatures to compil...
https://github.com/numba/numba/issues/6719
Traceback (most recent call last): File "repro.py", line 6, in <module> cuda.compile_ptx_for_current_device(f, [], device=True, debug=True) File "/home/gmarkall/numbadev/numba/numba/cuda/compiler.py", line 124, in compile_ptx_for_current_device return compile_ptx(pyfunc, args, debug=-debug, device=device, File "/home/g...
numba.cuda.cudadrv.error.NvvmError
def set_cuda_kernel(lfunc): from llvmlite.llvmpy.core import MetaData, MetaDataString, Constant, Type mod = lfunc.module ops = lfunc, MetaDataString.get(mod, "kernel"), Constant.int(Type.int(), 1) md = MetaData.get(mod, ops) nmd = mod.get_or_insert_named_metadata("nvvm.annotations") nmd.add(m...
def set_cuda_kernel(lfunc): from llvmlite.llvmpy.core import MetaData, MetaDataString, Constant, Type m = lfunc.module ops = lfunc, MetaDataString.get(m, "kernel"), Constant.int(Type.int(), 1) md = MetaData.get(m, ops) nmd = m.get_or_insert_named_metadata("nvvm.annotations") nmd.add(md) ...
https://github.com/numba/numba/issues/6719
Traceback (most recent call last): File "repro.py", line 6, in <module> cuda.compile_ptx_for_current_device(f, [], device=True, debug=True) File "/home/gmarkall/numbadev/numba/numba/cuda/compiler.py", line 124, in compile_ptx_for_current_device return compile_ptx(pyfunc, args, debug=-debug, device=device, File "/home/g...
numba.cuda.cudadrv.error.NvvmError
def run_pass(self, state): # Determine whether to even attempt this pass... if there's no # `literal_unroll as a global or as a freevar then just skip. found = False func_ir = state.func_ir for blk in func_ir.blocks.values(): for asgn in blk.find_insts(ir.Assign): if isinstance(a...
def run_pass(self, state): # Determine whether to even attempt this pass... if there's no # `literal_unroll as a global or as a freevar then just skip. found = False func_ir = state.func_ir for blk in func_ir.blocks.values(): for asgn in blk.find_insts(ir.Assign): if isinstance(a...
https://github.com/numba/numba/issues/6634
Using matplotlib backend: Qt5Agg Populating the interactive namespace from numpy and matplotlib 0.26156099390229226 0.4919898206995005 0.363624558244539 --------------------------------------------------------------------------- TypingError Traceback (most recent call last) <ipython-input-...
TypingError
def np_asfarray(a, dtype=np.float64): # convert numba dtype types into NumPy dtype if isinstance(dtype, types.Type): dtype = as_dtype(dtype) if not np.issubdtype(dtype, np.inexact): dx = types.float64 else: dx = dtype def impl(a, dtype=np.float64): return np.asarray(...
def np_asfarray(a, dtype=np.float64): dtype = as_dtype(dtype) if not np.issubdtype(dtype, np.inexact): dx = types.float64 else: dx = dtype def impl(a, dtype=np.float64): return np.asarray(a, dx) return impl
https://github.com/numba/numba/issues/6449
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend) No implementation of function Function(<function asfarray at 0x7ff2ebd55ef0>) found for signature: >>> asfarray(array(float64, 1d, C)) There are 2 candidate implementations: - Of which 2 did not match due to: Overload in functio...
NotImplementedError
def _store_object(self, obj): self._wr = _PickleableWeakRef(obj)
def _store_object(self, obj): self._wr = weakref.ref(obj)
https://github.com/numba/numba/issues/6251
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) c:\users\wiese\repos\ga\numba\numba\core\caching.py in IndexDataCacheFile.save(self, key, data) 482 try: 483 # If key already exists, we will overwrite the file -->...
KeyError
def _analyze_op_build_tuple(self, scope, equiv_set, expr): # For the moment, we can't do anything with tuples that # contain arrays, compared to array dimensions. Return # None to say we won't track this tuple if a part of it # is an array. for x in expr.items: if isinstance(x, ir.Var) and ...
def _analyze_op_build_tuple(self, scope, equiv_set, expr): consts = [] for var in expr.items: x = guard(find_const, self.func_ir, var) if x is not None: consts.append(x) else: break else: out = tuple([ir.Const(x, expr.loc) for x in consts]) ret...
https://github.com/numba/numba/issues/6399
In [1]: @numba.njit(parallel=True) ...: def f(A): ...: S = (A, A) ...: return S[0].sum() ...: In [2]: f(np.ones((3, 3))) --------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-2-c76d1478a056> in <mod...
IndexError
def np_cross(a, b): if not type_can_asarray(a) or not type_can_asarray(b): raise TypingError("Inputs must be array-like.") def impl(a, b): a_ = np.asarray(a) b_ = np.asarray(b) if a_.shape[-1] not in (2, 3) or b_.shape[-1] not in (2, 3): raise ValueError( ...
def np_cross(a, b): if not type_can_asarray(a) or not type_can_asarray(b): raise TypingError("Inputs must be array-like.") def impl(a, b): a_ = np.asarray(a) b_ = np.asarray(b) if a_.shape[-1] not in (2, 3) or b_.shape[-1] not in (2, 3): raise ValueError( ...
https://github.com/numba/numba/issues/6276
is_convex(polygon) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-18-dc4c8f71d7e1> in <module> ----> 1 is_convex(polygon) ~/.local/lib/python3.6/site-packages/numba/np/arraymath.py in impl() 4380 ...
ValueError
def impl(a, b): a_ = np.asarray(a) b_ = np.asarray(b) if a_.shape[-1] not in (2, 3) or b_.shape[-1] not in (2, 3): raise ValueError( ("Incompatible dimensions for cross product\n(dimension must be 2 or 3)") ) if a_.shape[-1] == 3 or b_.shape[-1] == 3: return _cross_i...
def impl(a, b): a_ = np.asarray(a) b_ = np.asarray(b) if a_.shape[-1] not in (2, 3) or b_.shape[-1] not in (2, 3): raise ValueError( ("Incompatible dimensions for cross product\n(dimension must be 2 or 3)") ) if a_.shape[-1] == 3 or b_.shape[-1] == 3: return _cross_i...
https://github.com/numba/numba/issues/6276
is_convex(polygon) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-18-dc4c8f71d7e1> in <module> ----> 1 is_convex(polygon) ~/.local/lib/python3.6/site-packages/numba/np/arraymath.py in impl() 4380 ...
ValueError
def unify(self, typingctx, other): if isinstance(other, List): dtype = typingctx.unify_pairs(self.dtype, other.dtype) reflected = self.reflected or other.reflected if dtype is not None: siv = self.initial_value oiv = other.initial_value if siv is not None ...
def unify(self, typingctx, other): if isinstance(other, List): dtype = typingctx.unify_pairs(self.dtype, other.dtype) reflected = self.reflected or other.reflected if dtype is not None: siv = self.initial_value oiv = other.initial_value if siv is not None ...
https://github.com/numba/numba/issues/6082
In [7]: numba.__version__ Out[7]: '0.51.0dev0+497.g4aceb2727' In [8]: numba.njit(lambda: [[1, 2, 3, 4, 5], [1, 2, 3, 4, 6]])() --------------------------------------------------------------------------- TypingError Traceback (most recent call last) <ipython-input-8-7fdc3277fbc9> in <modul...
TypingError
def _reduce_function(func, globs): """ Reduce a Python function and its globals to picklable components. If there are cell variables (i.e. references to a closure), their values will be frozen. """ if func.__closure__: cells = [cell.cell_contents for cell in func.__closure__] else: ...
def _reduce_function(func, globs): """ Reduce a Python function and its globals to picklable components. If there are cell variables (i.e. references to a closure), their values will be frozen. """ if func.__closure__: cells = [cell.cell_contents for cell in func.__closure__] else: ...
https://github.com/numba/numba/issues/4888
[2, 3, 4] 2 multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/root/.pyenv/versions/3.7.3/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/root/.pyenv/versions/3.7.3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return...
TypeError
def _rebuild_function(code_reduced, globals, name, cell_values, defaults): """ Rebuild a function from its _reduce_function() results. """ if cell_values: cells = tuple(_dummy_closure(v).__closure__[0] for v in cell_values) else: cells = () code = _rebuild_code(*code_reduced) ...
def _rebuild_function(code_reduced, globals, name, cell_values): """ Rebuild a function from its _reduce_function() results. """ if cell_values: cells = tuple(_dummy_closure(v).__closure__[0] for v in cell_values) else: cells = () code = _rebuild_code(*code_reduced) modname =...
https://github.com/numba/numba/issues/4888
[2, 3, 4] 2 multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/root/.pyenv/versions/3.7.3/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/root/.pyenv/versions/3.7.3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return...
TypeError
def generic(self, args, kws): """ Type the overloaded function by compiling the appropriate implementation for the given args. """ disp, new_args = self._get_impl(args, kws) if disp is None: return # Compile and type it for the given types disp_type = types.Dispatcher(disp) #...
def generic(self, args, kws): """ Type the overloaded function by compiling the appropriate implementation for the given args. """ disp, new_args = self._get_impl(args, kws) if disp is None: return # Compile and type it for the given types disp_type = types.Dispatcher(disp) #...
https://github.com/numba/numba/issues/5887
DEBUG: dtype= unicode_type Traceback (most recent call last): File "test_inline_literally.py", line 36, in <module> res = test_impl(data, dtype) File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\numba_master\numba\numba\core\dispatcher.py", line 401, in _compile_for_args error_rewrite(e, 'typing') File "C:\Users...
numba.core.errors.TypingError
def define_nopython_pipeline(state, name="nopython"): """Returns an nopython mode pipeline based PassManager""" # compose pipeline from untyped, typed and lowering parts dpb = DefaultPassBuilder pm = PassManager(name) untyped_passes = dpb.define_untyped_pipeline(state) pm.passes.extend(untyped_p...
def define_nopython_pipeline(state, name="nopython"): """Returns an nopython mode pipeline based PassManager""" pm = PassManager(name) if state.func_ir is None: pm.add_pass(TranslateByteCode, "analyzing bytecode") pm.add_pass(FixupArgs, "fix up args") pm.add_pass(IRProcessing, "processin...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def run(self): """Run inline closure call pass.""" # Analysis relies on ir.Del presence, strip out later pp = postproc.PostProcessor(self.func_ir) pp.run(True) modified = False work_list = list(self.func_ir.blocks.items()) debug_print = _make_debug_print("InlineClosureCallPass") debug_p...
def run(self): """Run inline closure call pass.""" # Analysis relies on ir.Del presence, strip out later pp = postproc.PostProcessor(self.func_ir) pp.run(True) modified = False work_list = list(self.func_ir.blocks.items()) debug_print = _make_debug_print("InlineClosureCallPass") debug_p...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def __str__(self): if self.exc_class is None: return "<static> raise" elif self.exc_args is None: return "<static> raise %s" % (self.exc_class,) else: return "<static> raise %s(%s)" % ( self.exc_class, ", ".join(map(repr, self.exc_args)), )
def __str__(self): if self.exc_class is None: return "raise" elif self.exc_args is None: return "raise %s" % (self.exc_class,) else: return "raise %s(%s)" % (self.exc_class, ", ".join(map(repr, self.exc_args)))
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def run_pass(self, state): """Run inlining of overloads""" if self._DEBUG: print("before overload inline".center(80, "-")) print(state.func_id.unique_name) print(state.func_ir.dump()) print("".center(80, "-")) from numba.core.inline_closurecall import InlineWorker, callee_ir_...
def run_pass(self, state): """Run inlining of overloads""" if self._DEBUG: print("before overload inline".center(80, "-")) print(state.func_ir.dump()) print("".center(80, "-")) modified = False work_list = list(state.func_ir.blocks.items()) # use a work list, look for call si...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def _do_work_getattr(self, state, work_list, block, i, expr, inline_worker): recv_type = state.type_annotation.typemap[expr.value.name] recv_type = types.unliteral(recv_type) matched = state.typingctx.find_matching_getattr_template( recv_type, expr.attr, ) if not matched: ret...
def _do_work_getattr(self, state, work_list, block, i, expr): recv_type = state.type_annotation.typemap[expr.value.name] recv_type = types.unliteral(recv_type) matched = state.typingctx.find_matching_getattr_template( recv_type, expr.attr, ) if not matched: return False t...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def _do_work_call(self, state, work_list, block, i, expr, inline_worker): # try and get a definition for the call, this isn't always possible as # it might be a eval(str)/part generated awaiting update etc. (parfors) to_inline = None try: to_inline = state.func_ir.get_definition(expr.func) e...
def _do_work_call(self, state, work_list, block, i, expr): # try and get a definition for the call, this isn't always possible as # it might be a eval(str)/part generated awaiting update etc. (parfors) to_inline = None try: to_inline = state.func_ir.get_definition(expr.func) except Exception...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def _run_inliner( self, state, inline_type, sig, template, arg_typs, expr, i, impl, block, work_list, is_method, inline_worker, ): do_inline = True if not inline_type.is_always_inline: from numba.core.typing.templates import _inline_info calle...
def _run_inliner( self, state, inline_type, sig, template, arg_typs, expr, i, impl, block, work_list, is_method, ): from numba.core.inline_closurecall import inline_closure_call, callee_ir_validator do_inline = True if not inline_type.is_always_inline: ...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def generic(self, args, kws): """ Type the overloaded function by compiling the appropriate implementation for the given args. """ disp, new_args = self._get_impl(args, kws) if disp is None: return # Compile and type it for the given types disp_type = types.Dispatcher(disp) #...
def generic(self, args, kws): """ Type the overloaded function by compiling the appropriate implementation for the given args. """ disp, new_args = self._get_impl(args, kws) if disp is None: return # Compile and type it for the given types disp_type = types.Dispatcher(disp) #...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def run_pass(self, state): """Run inlining of inlinables""" if self._DEBUG: print("before inline".center(80, "-")) print(state.func_ir.dump()) print("".center(80, "-")) from numba.core.inline_closurecall import InlineWorker, callee_ir_validator inline_worker = InlineWorker( ...
def run_pass(self, state): """Run inlining of inlinables""" if self._DEBUG: print("before inline".center(80, "-")) print(state.func_ir.dump()) print("".center(80, "-")) modified = False # use a work list, look for call sites via `ir.Expr.op == call` and # then pass these to `...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def _do_work(self, state, work_list, block, i, expr, inline_worker): from numba.core.compiler import run_frontend from numba.core.cpu import InlineOptions # try and get a definition for the call, this isn't always possible as # it might be a eval(str)/part generated awaiting update etc. (parfors) t...
def _do_work(self, state, work_list, block, i, expr): from numba.core.inline_closurecall import inline_closure_call, callee_ir_validator from numba.core.compiler import run_frontend from numba.core.cpu import InlineOptions # try and get a definition for the call, this isn't always possible as # it ...
https://github.com/numba/numba/issues/5476
Traceback (most recent call last): File "test_inline.py", line 14, in <module> print(fn()) File "numba\numba\dispatcher.py", line 420, in _compile_for_args raise e File "numba\numba\dispatcher.py", line 353, in _compile_for_args return self.compile(tuple(argtypes)) File "numba\numba\compiler_lock.py", line 32, in _acqu...
ValueError
def parfor_defs(parfor, use_set=None, def_set=None): """list variables written in this parfor by recursively calling compute_use_defs() on body and combining block defs. """ if use_set is None: use_set = set() if def_set is None: def_set = set() blocks = wrap_parfor_blocks(parfor...
def parfor_defs(parfor, use_set=None, def_set=None): """list variables written in this parfor by recursively calling compute_use_defs() on body and combining block defs. """ if use_set is None: use_set = set() if def_set is None: def_set = set() blocks = wrap_parfor_blocks(parfor...
https://github.com/numba/numba/issues/5597
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) ./numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 800 try: --> 801 yield 802 except NumbaError as e: ./numba/core/lowering.py in lower...
AssertionError
def lower_assign(self, ty, inst): value = inst.value # In nopython mode, closure vars are frozen like globals if isinstance(value, (ir.Const, ir.Global, ir.FreeVar)): res = self.context.get_constant_generic(self.builder, ty, value.value) self.incref(ty, res) return res elif isin...
def lower_assign(self, ty, inst): value = inst.value # In nopython mode, closure vars are frozen like globals if isinstance(value, (ir.Const, ir.Global, ir.FreeVar)): res = self.context.get_constant_generic(self.builder, ty, value.value) self.incref(ty, res) return res elif isin...
https://github.com/numba/numba/issues/5471
Traceback (most recent call last): File "./test.py", line 24, in <module> f() File ".../numba/core/dispatcher.py", line 401, in _compile_for_args error_rewrite(e, 'typing') File ".../numba/core/dispatcher.py", line 344, in error_rewrite reraise(type(e), e, None) File ".../numba/core/utils.py", line 79, in reraise raise...
numba.core.errors.TypingError
def __call__(self, typeinfer): with new_error_context("typing of argument at {0}", self.loc): typevars = typeinfer.typevars src = typevars[self.src] if not src.defined: return ty = src.getone() if isinstance(ty, types.Omitted): ty = typeinfer.context.r...
def __call__(self, typeinfer): with new_error_context("typing of argument at {0}", self.loc): typevars = typeinfer.typevars src = typevars[self.src] if not src.defined: return ty = src.getone() if isinstance(ty, types.Omitted): ty = typeinfer.context.r...
https://github.com/numba/numba/issues/5471
Traceback (most recent call last): File "./test.py", line 24, in <module> f() File ".../numba/core/dispatcher.py", line 401, in _compile_for_args error_rewrite(e, 'typing') File ".../numba/core/dispatcher.py", line 344, in error_rewrite reraise(type(e), e, None) File ".../numba/core/utils.py", line 79, in reraise raise...
numba.core.errors.TypingError
def __init__(self, value): self._value = value super(Omitted, self).__init__("omitted(default=%r)" % (value,))
def __init__(self, value): self.value = value super(Omitted, self).__init__("omitted(default=%r)" % (value,))
https://github.com/numba/numba/issues/5471
Traceback (most recent call last): File "./test.py", line 24, in <module> f() File ".../numba/core/dispatcher.py", line 401, in _compile_for_args error_rewrite(e, 'typing') File ".../numba/core/dispatcher.py", line 344, in error_rewrite reraise(type(e), e, None) File ".../numba/core/utils.py", line 79, in reraise raise...
numba.core.errors.TypingError
def key(self): return type(self._value), id(self._value)
def key(self): return type(self.value), id(self.value)
https://github.com/numba/numba/issues/5471
Traceback (most recent call last): File "./test.py", line 24, in <module> f() File ".../numba/core/dispatcher.py", line 401, in _compile_for_args error_rewrite(e, 'typing') File ".../numba/core/dispatcher.py", line 344, in error_rewrite reraise(type(e), e, None) File ".../numba/core/utils.py", line 79, in reraise raise...
numba.core.errors.TypingError
def generic(self, args, kws): assert not kws if len(args) == 1: # One-argument type() -> return the __class__ # Avoid literal types arg = types.unliteral(args[0]) classty = self.context.resolve_getattr(arg, "__class__") if classty is not None: return signature...
def generic(self, args, kws): assert not kws if len(args) == 1: # One-argument type() -> return the __class__ classty = self.context.resolve_getattr(args[0], "__class__") if classty is not None: return signature(classty, *args)
https://github.com/numba/numba/issues/5471
Traceback (most recent call last): File "./test.py", line 24, in <module> f() File ".../numba/core/dispatcher.py", line 401, in _compile_for_args error_rewrite(e, 'typing') File ".../numba/core/dispatcher.py", line 344, in error_rewrite reraise(type(e), e, None) File ".../numba/core/utils.py", line 79, in reraise raise...
numba.core.errors.TypingError
def unified_function_type(numba_types, require_precise=True): """Returns a unified Numba function type if possible. Parameters ---------- numba_types : tuple Numba type instances. require_precise : bool If True, the returned Numba function type must be precise. Returns ------- ...
def unified_function_type(numba_types, require_precise=True): """Returns a unified Numba function type if possible. Parameters ---------- numba_types : tuple Numba type instances. require_precise : bool If True, the returned Numba function type must be precise. Returns ------- ...
https://github.com/numba/numba/issues/5685
Traceback (most recent call last): File "/home/lucio/mypyprojects/numba/numba/core/errors.py", line 726, in new_error_context yield File "/home/lucio/mypyprojects/numba/numba/core/lowering.py", line 267, in lower_block self.lower_inst(inst) File "/home/lucio/mypyprojects/numba/numba/core/lowering.py", line 364, in lowe...
TypeError
def unified_function_type(numba_types, require_precise=True): """Returns a unified Numba function type if possible. Parameters ---------- numba_types : tuple Numba type instances. require_precise : bool If True, the returned Numba function type must be precise. Returns ------- ...
def unified_function_type(numba_types, require_precise=True): """Returns a unified Numba function type if possible. Parameters ---------- numba_types : tuple Numba type instances. require_precise : bool If True, the returned Numba function type must be precise. Returns ------- ...
https://github.com/numba/numba/issues/5615
0.50.0dev0+128.g82c7d37ad <path>/numba/core/utils.py:508: NumbaExperimentalFeatureWarning: First-class function type feature is experimental warnings.warn("First-class function type feature is experimental", gi196.py:22: NumbaExperimentalFeatureWarning: First-class function type feature is experimental for t in literal...
numba.core.errors.LoweringError
def _legalize_parameter_names(var_list): """ Legalize names in the variable list for use as a Python function's parameter names. """ var_map = OrderedDict() for var in var_list: old_name = var.name new_name = var.scope.redefine(old_name, loc=var.loc).name new_name = new_n...
def _legalize_parameter_names(var_list): """ Legalize names in the variable list for use as a Python function's parameter names. """ var_map = OrderedDict() for var in var_list: old_name = var.name new_name = old_name.replace("$", "_").replace(".", "_") # Caller should en...
https://github.com/numba/numba/issues/5599
-------------------------------------------------------------------- AssertionError Traceback (most recent call last) /anaconda3/lib/python3.7/site-packages/numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 800 try: --> 801 yield 802 except NumbaError as e: /anaconda3...
AssertionError
def _lower_array_expr(lowerer, expr): """Lower an array expression built by RewriteArrayExprs.""" expr_name = "__numba_array_expr_%s" % (hex(hash(expr)).replace("-", "_")) expr_filename = expr.loc.filename expr_var_list = expr.list_vars() # The expression may use a given variable several times, but ...
def _lower_array_expr(lowerer, expr): """Lower an array expression built by RewriteArrayExprs.""" expr_name = "__numba_array_expr_%s" % (hex(hash(expr)).replace("-", "_")) expr_filename = expr.loc.filename expr_var_list = expr.list_vars() # The expression may use a given variable several times, but ...
https://github.com/numba/numba/issues/5599
-------------------------------------------------------------------- AssertionError Traceback (most recent call last) /anaconda3/lib/python3.7/site-packages/numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 800 try: --> 801 yield 802 except NumbaError as e: /anaconda3...
AssertionError
def _arrayexpr_tree_to_ir( func_ir, typingctx, typemap, calltypes, equiv_set, init_block, expr_out_var, expr, parfor_index_tuple_var, all_parfor_indices, avail_vars, ): """generate IR from array_expr's expr tree recursively. Assign output to expr_out_var and returns t...
def _arrayexpr_tree_to_ir( func_ir, typingctx, typemap, calltypes, equiv_set, init_block, expr_out_var, expr, parfor_index_tuple_var, all_parfor_indices, avail_vars, ): """generate IR from array_expr's expr tree recursively. Assign output to expr_out_var and returns t...
https://github.com/numba/numba/issues/5575
(SDC_MASTER) C:\Users\akozlov\AppData\Local\Continuum\anaconda3\numba_master\num ba>python -W ignore .\example_script.py DEBUG: typing operator_add: lhs=StringArrayType(), rhs=StringArrayType() DEBUG: typing operator_add: lhs=StringArrayType(), rhs=bool DEBUG: typing: str_arr_operator_eq_overload: left, right StringArr...
numba.core.errors.TypingError
def extend(self, iterable): # Empty iterable, do nothing if len(iterable) == 0: return self if not self._typed: # Need to get the first element of the iterable to initialise the # type of the list. FIXME: this may be a problem if the iterable # can not be sliced. self...
def extend(self, iterable): if not self._typed: # Need to get the first element of the iterable to initialise the # type of the list. FIXME: this may be a problem if the iterable # can not be sliced. self._initialise_list(iterable[0]) self.append(iterable[0]) return _...
https://github.com/numba/numba/issues/5152
Traceback (most recent call last): File "/Users/vhaenel/git/numba/numba/typeinfer.py", line 148, in propagate constraint(typeinfer) File "/Users/vhaenel/git/numba/numba/typeinfer.py", line 486, in __call__ self.resolve(typeinfer, typevars, fnty) File "/Users/vhaenel/git/numba/numba/typeinfer.py", line 506, in resolve s...
numba.errors.TypingError
def generic(self, args, kws): # Redirect resolution to __init__ instance_type = self.key.instance_type ctor = instance_type.jitmethods["__init__"] boundargs = (instance_type.get_reference_type(),) + args disp_type = types.Dispatcher(ctor) sig = disp_type.get_call_type(self.context, boundargs, kw...
def generic(self, args, kws): # Redirect resolution to __init__ instance_type = self.key.instance_type ctor = instance_type.jitmethods["__init__"] boundargs = (instance_type.get_reference_type(),) + args disp_type = types.Dispatcher(ctor) sig = disp_type.get_call_type(self.context, boundargs, kw...
https://github.com/numba/numba/issues/4985
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) c:\program files\python36-64\lib\site-packages\numba\errors.py in new_error_context(fmt_, *args, **kwargs) 716 try: --> 717 yield 718 except NumbaErro...
AssertionError
def match(self, func_ir, block, typemap, calltypes): """ Detect all getitem expressions and find which ones have string literal indexes """ self.getitems = getitems = {} self.block = block self.calltypes = calltypes for expr in block.find_exprs(op="getitem"): if expr.op == "getit...
def match(self, func_ir, block, typemap, calltypes): """ Detect all getitem expressions and find which ones have string literal indexes """ self.getitems = getitems = {} self.block = block for expr in block.find_exprs(op="getitem"): if expr.op == "getitem": index_ty = typ...
https://github.com/numba/numba/issues/5565
Traceback (most recent call last): File "c:\users\akozlov\appdata\local\continuum\anaconda3\numba_master\numba\numba\core\errors.py", line 801, in new_error_context yield File "c:\users\akozlov\appdata\local\continuum\anaconda3\numba_master\numba\numba\core\lowering.py", line 267, in lower_block self.lower_inst(inst) F...
KeyError
def apply(self): """ Rewrite all matching getitems as static_getitems where the index is the literal value of the string. """ new_block = self.block.copy() new_block.clear() for inst in self.block.body: if isinstance(inst, ir.Assign): expr = inst.value if expr...
def apply(self): """ Rewrite all matching getitems as static_getitems where the index is the literal value of the string. """ new_block = self.block.copy() new_block.clear() for inst in self.block.body: if isinstance(inst, ir.Assign): expr = inst.value if expr...
https://github.com/numba/numba/issues/5565
Traceback (most recent call last): File "c:\users\akozlov\appdata\local\continuum\anaconda3\numba_master\numba\numba\core\errors.py", line 801, in new_error_context yield File "c:\users\akozlov\appdata\local\continuum\anaconda3\numba_master\numba\numba\core\lowering.py", line 267, in lower_block self.lower_inst(inst) F...
KeyError
def call(cls, func, args, kws, loc, vararg=None): assert isinstance(func, Var) assert isinstance(loc, Loc) op = "call" return cls(op=op, loc=loc, func=func, args=args, kws=kws, vararg=vararg)
def call(cls, func, args, kws, loc, vararg=None): assert isinstance(func, (Var, Intrinsic)) assert isinstance(loc, Loc) op = "call" return cls(op=op, loc=loc, func=func, args=args, kws=kws, vararg=vararg)
https://github.com/numba/numba/issues/5408
====================================================================== FAIL: test_set_registers_57 (numba.cuda.tests.cudadrv.test_linker.TestLinker) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/gmarkall/numbadev/numba/numba/cuda/cudadrv/devices.py...
AssertionError
def lower_call(self, resty, expr): signature = self.fndesc.calltypes[expr] self.debug_print("# lower_call: expr = {0}".format(expr)) if isinstance(signature.return_type, types.Phantom): return self.context.get_dummy_value() fnty = self.typeof(expr.func.name) if isinstance(fnty, types.ObjMo...
def lower_call(self, resty, expr): signature = self.fndesc.calltypes[expr] self.debug_print("# lower_call: expr = {0}".format(expr)) if isinstance(signature.return_type, types.Phantom): return self.context.get_dummy_value() if isinstance(expr.func, ir.Intrinsic): fnty = expr.func.name ...
https://github.com/numba/numba/issues/5408
====================================================================== FAIL: test_set_registers_57 (numba.cuda.tests.cudadrv.test_linker.TestLinker) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/gmarkall/numbadev/numba/numba/cuda/cudadrv/devices.py...
AssertionError
def _lower_call_normal(self, fnty, expr, signature): # Normal function resolution self.debug_print("# calling normal function: {0}".format(fnty)) self.debug_print("# signature: {0}".format(signature)) if isinstance(fnty, types.ObjModeDispatcher): argvals = expr.func.args else: argval...
def _lower_call_normal(self, fnty, expr, signature): # Normal function resolution self.debug_print("# calling normal function: {0}".format(fnty)) self.debug_print("# signature: {0}".format(signature)) if isinstance(expr.func, ir.Intrinsic) or isinstance(fnty, types.ObjModeDispatcher): argvals = ...
https://github.com/numba/numba/issues/5408
====================================================================== FAIL: test_set_registers_57 (numba.cuda.tests.cudadrv.test_linker.TestLinker) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/gmarkall/numbadev/numba/numba/cuda/cudadrv/devices.py...
AssertionError
def typeof_expr(self, inst, target, expr): if expr.op == "call": self.typeof_call(inst, target, expr) elif expr.op in ("getiter", "iternext"): self.typeof_intrinsic_call(inst, target, expr.op, expr.value) elif expr.op == "exhaust_iter": constraint = ExhaustIterConstraint( ...
def typeof_expr(self, inst, target, expr): if expr.op == "call": if isinstance(expr.func, ir.Intrinsic): sig = expr.func.type self.add_type(target.name, sig.return_type, loc=inst.loc) self.add_calltype(expr, sig) else: self.typeof_call(inst, target, ex...
https://github.com/numba/numba/issues/5408
====================================================================== FAIL: test_set_registers_57 (numba.cuda.tests.cudadrv.test_linker.TestLinker) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/gmarkall/numbadev/numba/numba/cuda/cudadrv/devices.py...
AssertionError
def resolve_array(self, mod): return types.Function(Hsa_shared_array)
def resolve_array(self, mod): return types.Macro(Hsa_shared_array)
https://github.com/numba/numba/issues/5408
====================================================================== FAIL: test_set_registers_57 (numba.cuda.tests.cudadrv.test_linker.TestLinker) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/gmarkall/numbadev/numba/numba/cuda/cudadrv/devices.py...
AssertionError
def process_environ(self, environ): def _readenv(name, ctor, default): value = environ.get(name) if value is None: return default() if callable(default) else default try: return ctor(value) except Exception: warnings.warn( "environ ...
def process_environ(self, environ): def _readenv(name, ctor, default): value = environ.get(name) if value is None: return default() if callable(default) else default try: return ctor(value) except Exception: warnings.warn( "environ ...
https://github.com/numba/numba/issues/5482
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/anaconda3/envs/latest_versions38/lib/python3.8/site-packages/numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 768 try: --> 769 yield 770 ...
KeyError
def lower_expr(self, resty, expr): if expr.op == "binop": return self.lower_binop(resty, expr, expr.fn) elif expr.op == "inplace_binop": lty = self.typeof(expr.lhs.name) if lty.mutable: return self.lower_binop(resty, expr, expr.fn) else: # inplace operator...
def lower_expr(self, resty, expr): if expr.op == "binop": return self.lower_binop(resty, expr, expr.fn) elif expr.op == "inplace_binop": lty = self.typeof(expr.lhs.name) if lty.mutable: return self.lower_binop(resty, expr, expr.fn) else: # inplace operator...
https://github.com/numba/numba/issues/5482
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/anaconda3/envs/latest_versions38/lib/python3.8/site-packages/numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 768 try: --> 769 yield 770 ...
KeyError
def lower_expr(self, expr): if expr.op == "binop": return self.lower_binop(expr, expr.fn, inplace=False) elif expr.op == "inplace_binop": return self.lower_binop(expr, expr.fn, inplace=True) elif expr.op == "unary": value = self.loadvar(expr.value.name) if expr.fn == operator...
def lower_expr(self, expr): if expr.op == "binop": return self.lower_binop(expr, expr.fn, inplace=False) elif expr.op == "inplace_binop": return self.lower_binop(expr, expr.fn, inplace=True) elif expr.op == "unary": value = self.loadvar(expr.value.name) if expr.fn == operator...
https://github.com/numba/numba/issues/5482
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/anaconda3/envs/latest_versions38/lib/python3.8/site-packages/numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 768 try: --> 769 yield 770 ...
KeyError
def _fix_ssa_vars(blocks, varname, defmap): """Rewrite all uses to ``varname`` given the definition map""" states = _make_states(blocks) states["varname"] = varname states["defmap"] = defmap states["phimap"] = phimap = defaultdict(list) states["cfg"] = cfg = compute_cfg_from_blocks(blocks) s...
def _fix_ssa_vars(blocks, varname, defmap): """Rewrite all uses to ``varname`` given the definition map""" states = _make_states(blocks) states["varname"] = varname states["defmap"] = defmap states["phimap"] = phimap = defaultdict(list) states["cfg"] = cfg = compute_cfg_from_blocks(blocks) s...
https://github.com/numba/numba/issues/5482
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/anaconda3/envs/latest_versions38/lib/python3.8/site-packages/numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 768 try: --> 769 yield 770 ...
KeyError
def _strip_phi_nodes(self, func_ir): """Strip Phi nodes from ``func_ir`` For each phi node, put incoming value to their respective incoming basic-block at possibly the latest position (i.e. after the latest assignment to the corresponding variable). """ exporters = defaultdict(list) phis = ...
def _strip_phi_nodes(self, func_ir): """Strip Phi nodes from ``func_ir`` For each phi node, put incoming value to their respective incoming basic-block at possibly the latest position (i.e. after the latest assignment to the corresponding variable). """ exporters = defaultdict(list) phis = ...
https://github.com/numba/numba/issues/5482
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/anaconda3/envs/latest_versions38/lib/python3.8/site-packages/numba/core/errors.py in new_error_context(fmt_, *args, **kwargs) 768 try: --> 769 yield 770 ...
KeyError
def apply_transform(self, state): # compute new CFG func_ir = state.func_ir cfg = compute_cfg_from_blocks(func_ir.blocks) # find loops loops = cfg.loops() # 0. Find the loops containing literal_unroll and store this # information literal_unroll_info = dict() unroll_info = namedtu...
def apply_transform(self, state): # compute new CFG func_ir = state.func_ir cfg = compute_cfg_from_blocks(func_ir.blocks) # find loops loops = cfg.loops() # 0. Find the loops containing literal_unroll and store this # information literal_unroll_info = dict() unroll_info = namedtu...
https://github.com/numba/numba/issues/5477
ERROR: test_numba_literal_unroll_1 (__main__.TestSuite) ---------------------------------------------------------------------- Traceback (most recent call last): File ".\example_test.py", line 40, in test_numba_literal_unroll_1 hpat_func(data, n) File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\numba_master\num...
KeyError
def unroll_loop(self, state, loop_info): # The general idea here is to: # 1. Find *a* getitem that conforms to the literal_unroll semantic, # i.e. one that is targeting a tuple with a loop induced index # 2. Compute a structure from the tuple that describes which # iterations of a loop will ha...
def unroll_loop(self, state, loop_info): # The general idea here is to: # 1. Find *a* getitem that conforms to the literal_unroll semantic, # i.e. one that is targeting a tuple with a loop induced index # 2. Compute a structure from the tuple that describes which # iterations of a loop will ha...
https://github.com/numba/numba/issues/5477
ERROR: test_numba_literal_unroll_1 (__main__.TestSuite) ---------------------------------------------------------------------- Traceback (most recent call last): File ".\example_test.py", line 40, in test_numba_literal_unroll_1 hpat_func(data, n) File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\numba_master\num...
KeyError
def new_list(item, allocated=DEFAULT_ALLOCATED): """Construct a new list. (Not implemented in the interpreter yet) Parameters ---------- item: TypeRef Item type of the new list. allocated: int number of items to pre-allocate """ # With JIT disabled, ignore all arguments and...
def new_list(item, allocated=0): """Construct a new list. (Not implemented in the interpreter yet) Parameters ---------- item: TypeRef Item type of the new list. allocated: int number of items to pre-allocate """ # With JIT disabled, ignore all arguments and return a Python...
https://github.com/numba/numba/issues/5355
====================================================================== ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes...
numba.errors.TypingError
def impl_new_list(item, allocated=DEFAULT_ALLOCATED): """Creates a new list. Parameters ---------- item: Numba type type of the list item. allocated: int number of items to pre-allocate """ if not isinstance(item, Type): raise TypeError("expecting *item* to be a num...
def impl_new_list(item, allocated=0): """Creates a new list. Parameters ---------- item: Numba type type of the list item. allocated: int number of items to pre-allocate """ if not isinstance(item, Type): raise TypeError("expecting *item* to be a numba Type") i...
https://github.com/numba/numba/issues/5355
====================================================================== ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes...
numba.errors.TypingError
def imp(item, allocated=DEFAULT_ALLOCATED): if allocated < 0: raise RuntimeError("expecting *allocated* to be >= 0") lp = _list_new(itemty, allocated) _list_set_method_table(lp, itemty) l = _make_list(itemty, lp) return l
def imp(item, allocated=0): if allocated < 0: raise RuntimeError("expecting *allocated* to be >= 0") lp = _list_new(itemty, allocated) _list_set_method_table(lp, itemty) l = _make_list(itemty, lp) return l
https://github.com/numba/numba/issues/5355
====================================================================== ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes...
numba.errors.TypingError