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 _hook_get_(hook_self, torch_type): def get_(self, reduce=lambda x: x[0]): """ Gets a Torch object from its current owners. Args: reduce: (EXPERIMENTAL) How to reduce tensors that come from multiple workers """ # TODO: fully generalize this to multiple...
def _hook_get_(hook_self, torch_type): def get_(self, reduce=lambda x: x[0]): """ Gets a Torch object from its current owners. Args: reduce: (EXPERIMENTAL) How to reduce tensors that come from multiple workers """ # TODO: fully generalize this to multiple...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def get_(self, reduce=lambda x: x[0]): """ Gets a Torch object from its current owners. Args: reduce: (EXPERIMENTAL) How to reduce tensors that come from multiple workers """ # TODO: fully generalize this to multiple workers; consider # adding arguments for other tensor ids, e...
def get_(self, reduce=lambda x: x[0]): """ Gets a Torch object from its current owners. Args: reduce: (EXPERIMENTAL) How to reduce tensors that come from multiple workers """ # TODO: fully generalize this to multiple workers; consider # adding arguments for other tensor ids, e...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def _hook_variable(self): # Overload 'special' methods here self._hook_var___new__() self._hook_var_contents() self._hook_var_owners() for attr in dir(torch.autograd.variable.Variable): # Conditions for inclusion/exclusion if attr in self.exclude + self.var_exclude: cont...
def _hook_variable(self): # Overload 'special' methods here self._hook_var___new__() self._hook_var_contents() for attr in dir(torch.autograd.variable.Variable): # Conditions for inclusion/exclusion if attr in self.exclude + self.var_exclude: continue lit = getattr(t...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def _hook_new_grad(hook_self): @property def new_grad(self): if not hasattr(self, "grad_registered"): if self.old_grad is not None: if hasattr(self.old_grad, "id"): grad_id = self.old_grad.id else: grad_id = None ...
def _hook_new_grad(hook_self): @property def new_grad(self): if not hasattr(self, "grad_registered"): if self.old_grad is not None: if hasattr(self.old_grad, "id"): grad_id = self.old_grad.id else: grad_id = None ...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def _hook_var_send_(hook_self): def send_(self, workers): """ Sends a Variable object to a (sequence of) Grid workers. Args: workers: string (or sequence) containing IPFS address(es) of worker node(s). """ # makes singleton if needed workers = ho...
def _hook_var_send_(hook_self): def send_(self, workers): """ Sends a Variable object to a (sequence of) Grid workers. Args: workers: string (or sequence) containing IPFS address(es) of worker node(s). """ # makes singleton if needed workers = ho...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def send_(self, workers): """ Sends a Variable object to a (sequence of) Grid workers. Args: workers: string (or sequence) containing IPFS address(es) of worker node(s). """ # makes singleton if needed workers = hook_self.local_worker._check_workers(self, workers) # NEW OWNERS...
def send_(self, workers): """ Sends a Variable object to a (sequence of) Grid workers. Args: workers: string (or sequence) containing IPFS address(es) of worker node(s). """ # makes singleton if needed workers = hook_self.local_worker._check_workers(self, workers) self = hook_s...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def _hook_var_ser(hook_self): def ser(self, include_data=True): """Serializes a variable into a JSON object""" var_msg = {} var_msg["torch_type"] = re.search("<class '(.*)'>", str(self.__class__)).group( 1 ) var_msg["requires_grad"] = self.requires_grad v...
def _hook_var_ser(hook_self): def ser(self, include_data=True): var_msg = {} var_msg["torch_type"] = re.search("<class '(.*)'>", str(self.__class__)).group( 1 ) var_msg["requires_grad"] = self.requires_grad var_msg["volatile"] = self.volatile var_msg["data...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def ser(self, include_data=True): """Serializes a variable into a JSON object""" var_msg = {} var_msg["torch_type"] = re.search("<class '(.*)'>", str(self.__class__)).group(1) var_msg["requires_grad"] = self.requires_grad var_msg["volatile"] = self.volatile var_msg["data"] = self.data.ser(inclu...
def ser(self, include_data=True): var_msg = {} var_msg["torch_type"] = re.search("<class '(.*)'>", str(self.__class__)).group(1) var_msg["requires_grad"] = self.requires_grad var_msg["volatile"] = self.volatile var_msg["data"] = self.data.ser(include_data) if self.grad is not None: var_m...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def deser(self, obj_msg): """Deserializes a JSON object into a variable""" if "data" in obj_msg.keys(): data_msg = json.loads(obj_msg["data"]) tensor_type = hook_self.types_guard(data_msg["torch_type"]) data_obj = tensor_type.deser(tensor_type, data_msg) # data_obj = hook_self.b...
def deser(self, obj_msg): if "data" in obj_msg.keys(): data_msg = json.loads(obj_msg["data"]) tensor_type = hook_self.types_guard(data_msg["torch_type"]) data_obj = tensor_type.deser(tensor_type, data_msg) # data_obj = hook_self.build_tensor(data_msg, tensor_type) data = hook...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def _var_to_pointer(self, var, hook_self): # recursively calls var_to_pointer in a depth first fashion # only recursive through variables (ignores .data) if var.grad is not None: self._var_to_pointer(var.grad, hook_self) # deletes local data (because now it's a pointer to remote data) var.d...
def _var_to_pointer(self, var, hook_self): if var.grad is not None: self._var_to_pointer(var.grad, hook_self) var.data.old_set_(var.data.__class__(0)) self.local_worker.register_object( hook_self.local_worker, obj=var.data, id=var.data.id, owners=var.owners, ...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def register_object( self, worker, obj, force_attach_to_worker=False, temporary=False, **kwargs ): """ Registers an object with the current worker node. Selects an id for the object, assigns a list of owners, and establishes whether it's a pointer or not. This method is generally not used by the...
def register_object( self, worker, obj, force_attach_to_worker=False, temporary=False, **kwargs ): """ Registers an object with the current worker node. Selects an id for the object, assigns a list of owners, and establishes whether it's a pointer or not. This method is generally not used by the...
https://github.com/OpenMined/PySyft/issues/1350
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-14-4207de4e45fd> in <module>() 10 loss.backward() 11 ---> 12 model.send_(remote) /Users/atrask/anaconda/lib/python3.6/site-packages/syft-0.1.0-py3.6.egg...
RuntimeError
def gather_elements(self, client, node, style): # Take the style from the parent "table" node # because sometimes it's not passed down. if node.parent["classes"]: style = client.styles.combinedStyle(["table"] + node.parent["classes"]) else: style = client.styles["table"] rows = [] ...
def gather_elements(self, client, node, style): # Take the style from the parent "table" node # because sometimes it's not passed down. if node.parent["classes"]: style = client.styles.combinedStyle(["table"] + node.parent["classes"]) else: style = client.styles["table"] rows = [] ...
https://github.com/rst2pdf/rst2pdf/issues/967
Traceback (most recent call last): File "/usr/bin/rst2pdf", line 8, in <module> sys.exit(main()) File "/usr/lib/python3.9/site-packages/rst2pdf/createpdf.py", line 1683, in main RstToPdf( File "/usr/lib/python3.9/site-packages/rst2pdf/createpdf.py", line 659, in createPdf pdfdoc.multiBuild(elements) File "/usr/lib/pyth...
reportlab.platypus.doctemplate.LayoutError
def add_extensions(options): extensions = [] for ext in options.extensions: if not ext.startswith("!"): extensions.append(ext) continue ext = ext[1:] try: extensions.remove(ext) except ValueError: log.warning( "Could...
def add_extensions(options): extensions = [] for ext in options.extensions: if not ext.startswith("!"): extensions.append(ext) continue ext = ext[1:] try: extensions.remove(ext) except ValueError: log.warning( "Could...
https://github.com/rst2pdf/rst2pdf/issues/920
[ERROR] pdfbuilder.py:149 local variable 'module' referenced before assignment Traceback (most recent call last): File "/home/dk/.local/lib/python3.7/site-packages/rst2pdf/pdfbuilder.py", line 107, in write createpdf.add_extensions(dummy()) File "/home/dk/.local/lib/python3.7/site-packages/rst2pdf/createpdf.py", line 1...
UnboundLocalError
def get_pre_post(self, client, node, replaceEnt): pre = "" if node["ids"]: if node["ids"][0] not in client.targets: pre = '<a name="%s"/>' % node["ids"][0] client.targets.append(node["ids"][0]) else: name = node["names"][0] if name: pre = '<a name=...
def get_pre_post(self, client, node, replaceEnt): pre = "" if node["ids"]: if node["ids"][0] not in client.targets: pre = '<a name="%s"/>' % node["ids"][0] client.targets.append(node["ids"][0]) else: for attr in ["refid", "refuri"]: value = node.get(attr) ...
https://github.com/rst2pdf/rst2pdf/issues/820
Traceback (most recent call last): File "/usr/local/bin/rst2pdf", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/rst2pdf/createpdf.py", line 1511, in main compressed=options.compressed) File "/usr/local/lib/python2.7/dist-packages/rst2pdf/createpdf.py", line 570, in createPdf element...
KeyError
def get_pre_post(self, client, node, replaceEnt): pre = "" if node["ids"]: if node["ids"][0] not in client.targets: pre = '<a name="%s"/>' % node["ids"][0] client.targets.append(node["ids"][0]) else: for attr in ["refid", "refuri"]: value = node.get(attr) ...
def get_pre_post(self, client, node, replaceEnt): pre = "" if node["ids"]: if node["ids"][0] not in client.targets: pre = '<a name="%s"/>' % node["ids"][0] client.targets.append(node["ids"][0]) else: pre = '<a name="%s"/>' % node["refuri"] client.targets.appen...
https://github.com/rst2pdf/rst2pdf/issues/820
Traceback (most recent call last): File "/usr/local/bin/rst2pdf", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/rst2pdf/createpdf.py", line 1511, in main compressed=options.compressed) File "/usr/local/lib/python2.7/dist-packages/rst2pdf/createpdf.py", line 570, in createPdf element...
KeyError
def read(self): return self._str
def read(self): return self
https://github.com/rst2pdf/rst2pdf/issues/785
$ rst2pdf test.rst -e preprocess -v [INFO] createpdf.py:1578 Importing extension module 'vectorpdf' [INFO] createpdf.py:1578 Importing extension module 'preprocess' Traceback (most recent call last): File "/Users/rob/.pyenv/versions/rst2pdf-2/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scrip...
UnicodeEncodeError
def __init__(self, sourcef, incfile=False, widthcount=0): """Process a file and decorate the resultant Preprocess instance with self.result (the preprocessed file) and self.styles (extracted stylesheet information) for the caller. """ # fix keywords dict for use by the parser. self.keywords = d...
def __init__(self, sourcef, incfile=False, widthcount=0): """Process a file and decorate the resultant Preprocess instance with self.result (the preprocessed file) and self.styles (extracted stylesheet information) for the caller. """ # fix keywords dict for use by the parser. self.keywords = d...
https://github.com/rst2pdf/rst2pdf/issues/785
$ rst2pdf test.rst -e preprocess -v [INFO] createpdf.py:1578 Importing extension module 'vectorpdf' [INFO] createpdf.py:1578 Importing extension module 'preprocess' Traceback (most recent call last): File "/Users/rob/.pyenv/versions/rst2pdf-2/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scrip...
UnicodeEncodeError
def __init__( self, filename, width=None, height=None, kind="direct", mask="auto", lazy=1, client=None, target=None, ): # Client is mandatory. Perhaps move it farther up if we refactor assert client is not None self.__kind = kind if filename.split("://")[0].lower() ...
def __init__( self, filename, width=None, height=None, kind="direct", mask="auto", lazy=1, client=None, target=None, ): # Client is mandatory. Perhaps move it farther up if we refactor assert client is not None self.__kind = kind if filename.split("://")[0].lower() ...
https://github.com/rst2pdf/rst2pdf/issues/780
Traceback (most recent call last): File "/home/sroeca/.pyenv/versions/test-rst-mzrgg/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scripts', 'rst2pdf')() File "/home/sroeca/src/sandbox/test-rst/rst2pdf/rst2pdf/createpdf.py", line 1496, in main compressed=options.compressed) File "/home/sroeca/...
AttributeError
def size_for_node(self, node, client): """Given a docutils image node, returns the size the image should have in the PDF document, and what 'kind' of size that is. That involves lots of guesswork""" uri = str(node.get("uri")) if uri.split("://")[0].lower() not in ("http", "ftp", "https"): u...
def size_for_node(self, node, client): """Given a docutils image node, returns the size the image should have in the PDF document, and what 'kind' of size that is. That involves lots of guesswork""" uri = str(node.get("uri")) if uri.split("://")[0].lower() not in ("http", "ftp", "https"): u...
https://github.com/rst2pdf/rst2pdf/issues/780
Traceback (most recent call last): File "/home/sroeca/.pyenv/versions/test-rst-mzrgg/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scripts', 'rst2pdf')() File "/home/sroeca/src/sandbox/test-rst/rst2pdf/rst2pdf/createpdf.py", line 1496, in main compressed=options.compressed) File "/home/sroeca/...
AttributeError
def size_for_node(self, node, client): """Given a docutils image node, returns the size the image should have in the PDF document, and what 'kind' of size that is. That involves lots of guesswork""" uri = str(node.get("uri")) if uri.split("://")[0].lower() not in ("http", "ftp", "https"): u...
def size_for_node(self, node, client): """Given a docutils image node, returns the size the image should have in the PDF document, and what 'kind' of size that is. That involves lots of guesswork""" uri = str(node.get("uri")) if uri.split("://")[0].lower() not in ("http", "ftp", "https"): u...
https://github.com/rst2pdf/rst2pdf/issues/780
Traceback (most recent call last): File "/home/sroeca/.pyenv/versions/test-rst-mzrgg/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scripts', 'rst2pdf')() File "/home/sroeca/src/sandbox/test-rst/rst2pdf/rst2pdf/createpdf.py", line 1496, in main compressed=options.compressed) File "/home/sroeca/...
AttributeError
def findTTFont(fname): def get_family(query): data = subprocess.check_output(["fc-match", query]) if six.PY2: data = data.decode("UTF-8") for line in data.splitlines(): line = line.strip() if not line: continue fname, family, _,...
def findTTFont(fname): def get_family(query): data = os.popen('fc-match "%s"' % query, "r").read() for line in data.splitlines(): line = line.strip() if not line: continue fname, family, _, variant = line.split('"')[:4] family = family....
https://github.com/rst2pdf/rst2pdf/issues/757
$ cd doc $ rst2pdf manual.rst --custom-cover=assets/cover.tmpl -o output/pdf/manual.pdf -s assets/manual.style -b1 Traceback (most recent call last): File "/Users/rob/.pyenv/versions/rst2pdf/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scripts', 'rst2pdf')() File "/Users/rob/Projects/python/r...
UnicodeDecodeError
def get_family(query): data = subprocess.check_output(["fc-match", query]) if six.PY2: data = data.decode("UTF-8") for line in data.splitlines(): line = line.strip() if not line: continue fname, family, _, variant = line.split('"')[:4] family = family.repl...
def get_family(query): data = os.popen('fc-match "%s"' % query, "r").read() for line in data.splitlines(): line = line.strip() if not line: continue fname, family, _, variant = line.split('"')[:4] family = family.replace('"', "") if family: return ...
https://github.com/rst2pdf/rst2pdf/issues/757
$ cd doc $ rst2pdf manual.rst --custom-cover=assets/cover.tmpl -o output/pdf/manual.pdf -s assets/manual.style -b1 Traceback (most recent call last): File "/Users/rob/.pyenv/versions/rst2pdf/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scripts', 'rst2pdf')() File "/Users/rob/Projects/python/r...
UnicodeDecodeError
def get_fname(query): data = subprocess.check_output(["fc-match", "-v", query]) if six.PY2: data = data.decode("UTF-8") for line in data.splitlines(): line = line.strip() if line.startswith("file: "): return line.split('"')[1] return None
def get_fname(query): data = os.popen('fc-match -v "%s"' % query, "r").read() for line in data.splitlines(): line = line.strip() if line.startswith("file: "): return line.split('"')[1] return None
https://github.com/rst2pdf/rst2pdf/issues/757
$ cd doc $ rst2pdf manual.rst --custom-cover=assets/cover.tmpl -o output/pdf/manual.pdf -s assets/manual.style -b1 Traceback (most recent call last): File "/Users/rob/.pyenv/versions/rst2pdf/bin/rst2pdf", line 11, in <module> load_entry_point('rst2pdf', 'console_scripts', 'rst2pdf')() File "/Users/rob/Projects/python/r...
UnicodeDecodeError
def get_pre_post(self, client, node, replaceEnt): pre = "" if node["ids"]: if node["ids"][0] not in client.targets: pre = '<a name="%s"/>' % node["ids"][0] client.targets.append(node["ids"][0]) else: pre = '<a name="%s"/>' % node["refuri"] client.targets.appen...
def get_pre_post(self, client, node, replaceEnt): pre = "" if node["ids"][0] not in client.targets: pre = '<a name="%s"/>' % node["ids"][0] client.targets.append(node["ids"][0]) return pre, ""
https://github.com/rst2pdf/rst2pdf/issues/569
Traceback (most recent call last): File "/usr/bin/rst2pdf", line 9, in <module> load_entry_point('rst2pdf===0.93.dev-r0', 'console_scripts', 'rst2pdf')() File "/usr/lib/python2.7/site-packages/rst2pdf/createpdf.py", line 1495, in main compressed=options.compressed) File "/usr/lib/python2.7/site-packages/rst2pdf/createp...
IndexError
def get_text(self, client, node, replaceEnt): # get style for current node sty = client.styles.styleForNode(node) node_fontsize = sty.fontSize node_color = "#" + sty.textColor.hexval()[2:] mf = math_flowable.Math( node.math_data, label=node.label, fontsize=node_fontsize, color=node_color ...
def get_text(self, client, node, replaceEnt): # get style for current node sty = client.styles.styleForNode(node) node_fontsize = sty.fontSize node_color = "#" + sty.textColor.hexval()[2:] mf = math_flowable.Math( node.math_data, label=node.label, fontsize=node_fontsize, color=node_color ...
https://github.com/rst2pdf/rst2pdf/issues/517
What steps will reproduce the problem? 1. echo "This is :math:\`\\pi\`" > test.rst 2. rst2pdf test.rst -o test.pdf What is the expected output? I expect a pdf with the symbol pi What do you see instead? a python "ValueError" (see the stack below) Please answer the following questions, they are *very* important: *...
ValueError
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ) -> None: """TensorFlow Transform executor entrypoint. This implements BaseExecutor.Do() and is invoked by orchestration systems. This is not inteded...
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ) -> None: """TensorFlow Transform executor entrypoint. This implements BaseExecutor.Do() and is invoked by orchestration systems. This is not inteded...
https://github.com/tensorflow/tfx/issues/1665
RuntimeError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py", line 312, in get processor = self.cached_bundle_processors[bundle_descriptor_id].pop() IndexError: pop from empty list During handling of the above exception, another exception occur...
IndexError
def __init__( self, input_cache_dir: Text, output_cache_dir: Text, analyze_data_list: List[_Dataset], typespecs: Mapping[Text, tf.TypeSpec], preprocessing_fn: Any, cache_source: beam.PTransform, force_tf_compat_v1: bool, ): # pyformat: enable self._input_cache_dir = input_cache_d...
def __init__( self, input_cache_dir: Text, output_cache_dir: Text, analyze_data_list: List[_Dataset], typespecs: Mapping[Text, tf.TypeSpec], preprocessing_fn: Any, cache_source: beam.PTransform, ): # pyformat: enable self._input_cache_dir = input_cache_dir self._output_cache_dir ...
https://github.com/tensorflow/tfx/issues/1665
RuntimeError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py", line 312, in get processor = self.cached_bundle_processors[bundle_descriptor_id].pop() IndexError: pop from empty list During handling of the above exception, another exception occur...
IndexError
def expand( self, pipeline ) -> Tuple[ Dict[Text, Optional[_Dataset]], Optional[Dict[Text, Dict[Text, beam.pvalue.PCollection]]], ]: dataset_keys_list = [dataset.dataset_key for dataset in self._analyze_data_list] # TODO(b/37788560): Remove this restriction when a greater number of # stages can ...
def expand( self, pipeline ) -> Tuple[ Dict[Text, Optional[_Dataset]], Optional[Dict[Text, Dict[Text, beam.pvalue.PCollection]]], ]: dataset_keys_list = [dataset.dataset_key for dataset in self._analyze_data_list] # TODO(b/37788560): Remove this restriction when a greater number of # stages can ...
https://github.com/tensorflow/tfx/issues/1665
RuntimeError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py", line 312, in get processor = self.cached_bundle_processors[bundle_descriptor_id].pop() IndexError: pop from empty list During handling of the above exception, another exception occur...
IndexError
def Transform( self, inputs: Mapping[Text, Any], outputs: Mapping[Text, Any], status_file: Text ) -> None: """Executes on request. This is the implementation part of transform executor. This is intended for using or extending the executor without artifact dependency. Args: inputs: A dictiona...
def Transform( self, inputs: Mapping[Text, Any], outputs: Mapping[Text, Any], status_file: Text ) -> None: """Executes on request. This is the implementation part of transform executor. This is intended for using or extending the executor without artifact dependency. Args: inputs: A dictiona...
https://github.com/tensorflow/tfx/issues/1665
RuntimeError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py", line 312, in get processor = self.cached_bundle_processors[bundle_descriptor_id].pop() IndexError: pop from empty list During handling of the above exception, another exception occur...
IndexError
def _RunBeamImpl( self, analyze_data_list: List[_Dataset], transform_data_list: List[_Dataset], preprocessing_fn: Any, force_tf_compat_v1: bool, input_dataset_metadata: dataset_metadata.DatasetMetadata, transform_output_path: Text, raw_examples_data_format: int, temp_path: Text, ...
def _RunBeamImpl( self, analyze_data_list: List[_Dataset], transform_data_list: List[_Dataset], preprocessing_fn: Any, input_dataset_metadata: dataset_metadata.DatasetMetadata, transform_output_path: Text, raw_examples_data_format: int, temp_path: Text, input_cache_dir: Optional[Text...
https://github.com/tensorflow/tfx/issues/1665
RuntimeError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py", line 312, in get processor = self.cached_bundle_processors[bundle_descriptor_id].pop() IndexError: pop from empty list During handling of the above exception, another exception occur...
IndexError
def _RunInPlaceImpl( self, preprocessing_fn: Any, force_tf_compat_v1: bool, metadata: dataset_metadata.DatasetMetadata, typespecs: Dict[Text, tf.TypeSpec], transform_output_path: Text, ) -> _Status: """Runs a transformation iteration in-place without looking at the data. Args: pre...
def _RunInPlaceImpl( self, preprocessing_fn: Any, metadata: dataset_metadata.DatasetMetadata, typespecs: Dict[Text, tf.TypeSpec], transform_output_path: Text, ) -> _Status: """Runs a transformation iteration in-place without looking at the data. Args: preprocessing_fn: The tf.Transfor...
https://github.com/tensorflow/tfx/issues/1665
RuntimeError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py", line 312, in get processor = self.cached_bundle_processors[bundle_descriptor_id].pop() IndexError: pop from empty list During handling of the above exception, another exception occur...
IndexError
def import_func_from_source(source_path: Text, fn_name: Text) -> Callable: # pylint: disable=g-bare-generic """Imports a function from a module provided as source file.""" # If module path is not local, download to local file-system first, # because importlib can't import from GCS source_path = io_uti...
def import_func_from_source(source_path: Text, fn_name: Text) -> Callable: # pylint: disable=g-bare-generic """Imports a function from a module provided as source file.""" # If module path is not local, download to local file-system first, # because importlib can't import from GCS source_path = io_uti...
https://github.com/tensorflow/tfx/issues/1665
RuntimeError: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py", line 312, in get processor = self.cached_bundle_processors[bundle_descriptor_id].pop() IndexError: pop from empty list During handling of the above exception, another exception occur...
IndexError
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ) -> None: """Push model to target directory if blessed. Args: input_dict: Input dict from input key to a list of artifacts, including: - mo...
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ) -> None: """Push model to target directory if blessed. Args: input_dict: Input dict from input key to a list of artifacts, including: - mo...
https://github.com/tensorflow/tfx/issues/1553
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-38-f67dc69712f4> in <module> ----> 1 context.run(pusher) ~/XXX/tfx/tfx/tfx/orchestration/experimental/interactive/interactive_context.py in run_if_ipyth...
KeyError
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ): """Overrides the tfx_pusher_executor. Args: input_dict: Input dict from input key to a list of artifacts, including: - model_export: expo...
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ): """Overrides the tfx_pusher_executor. Args: input_dict: Input dict from input key to a list of artifacts, including: - model_export: expo...
https://github.com/tensorflow/tfx/issues/1553
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-38-f67dc69712f4> in <module> ----> 1 context.run(pusher) ~/XXX/tfx/tfx/tfx/orchestration/experimental/interactive/interactive_context.py in run_if_ipyth...
KeyError
def deploy_model_for_aip_prediction( serving_path: Text, model_version: Text, ai_platform_serving_args: Dict[Text, Any], executor_class_path: Text, ): """Deploys a model for serving with AI Platform. Args: serving_path: The path to the model. Must be a GCS URI. model_version: Versio...
def deploy_model_for_aip_prediction( serving_path: Text, model_version: Text, ai_platform_serving_args: Dict[Text, Any], executor_class_path: Text, ): """Deploys a model for serving with AI Platform. Args: serving_path: The path to the model. Must be a GCS URI. model_version: Versio...
https://github.com/tensorflow/tfx/issues/1553
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-38-f67dc69712f4> in <module> ----> 1 context.run(pusher) ~/XXX/tfx/tfx/tfx/orchestration/experimental/interactive/interactive_context.py in run_if_ipyth...
KeyError
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ): """Overrides the tfx_pusher_executor. Args: input_dict: Input dict from input key to a list of artifacts, including: - model_export: expo...
def Do( self, input_dict: Dict[Text, List[types.Artifact]], output_dict: Dict[Text, List[types.Artifact]], exec_properties: Dict[Text, Any], ): """Overrides the tfx_pusher_executor. Args: input_dict: Input dict from input key to a list of artifacts, including: - model_export: expo...
https://github.com/tensorflow/tfx/issues/1553
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-38-f67dc69712f4> in <module> ----> 1 context.run(pusher) ~/XXX/tfx/tfx/tfx/orchestration/experimental/interactive/interactive_context.py in run_if_ipyth...
KeyError
def deploy_model_for_cmle_serving( serving_path: Text, model_version: Text, cmle_serving_args: Dict[Text, Any] ): """Deploys a model for serving with CMLE. Args: serving_path: The path to the model. Must be a GCS URI. model_version: Version of the model being deployed. Must be different from ...
def deploy_model_for_cmle_serving( serving_path: Text, model_version: Text, cmle_serving_args: Dict[Text, Any] ): """Deploys a model for serving with CMLE. Args: serving_path: The path to the model. Must be a GCS URI. model_version: Version of the model being deployed. Must be different from ...
https://github.com/tensorflow/tfx/issues/712
Traceback (most recent call last): File "/opt/venv/lib/python3.6/site-packages/tfx/extensions/google_cloud_ai_platform/runner.py", line 176, in deploy_model_for_cmle_serving api.projects().models().create(body=body, parent=parent).execute() File "/opt/venv/lib/python3.6/site-packages/googleapiclient/_helpers.py", line ...
googleapiclient.errors.HttpError
def _create_pipeline(): """Implements the chicago taxi pipeline with TFX.""" query = """ SELECT pickup_community_area, fare, EXTRACT(MONTH FROM trip_start_timestamp) AS trip_start_month, EXTRACT(HOUR FROM trip_start_timestamp) AS trip_start_hour, ...
def _create_pipeline(): """Implements the chicago taxi pipeline with TFX.""" query = """ SELECT pickup_community_area, fare, EXTRACT(MONTH FROM trip_start_timestamp) AS trip_start_month, EXTRACT(HOUR FROM trip_start_timestamp) AS trip_start_hour, ...
https://github.com/tensorflow/tfx/issues/57
[2019-04-25 18:57:19,644] {__init__.py:416} ERROR - Failed to import: /home/j3soon/airflow/dags/taxi_pipeline_solution.py Traceback (most recent call last): File "/home/j3soon/tfx-env/local/lib/python2.7/site-packages/airflow/models/__init__.py", line 413, in process_file m = imp.load_source(mod_name, filepath) File "/...
TypeError
def _create_pipeline(): """Implements the chicago taxi pipeline with TFX.""" examples = csv_input(_data_root) # Brings data into the pipeline or otherwise joins/converts training data. example_gen = CsvExampleGen(input_base=examples) # Computes statistics over data for visualization and example va...
def _create_pipeline(): """Implements the chicago taxi pipeline with TFX.""" examples = csv_input(_data_root) # Brings data into the pipeline or otherwise joins/converts training data. example_gen = CsvExampleGen(input_base=examples) # Computes statistics over data for visualization and example va...
https://github.com/tensorflow/tfx/issues/57
[2019-04-25 18:57:19,644] {__init__.py:416} ERROR - Failed to import: /home/j3soon/airflow/dags/taxi_pipeline_solution.py Traceback (most recent call last): File "/home/j3soon/tfx-env/local/lib/python2.7/site-packages/airflow/models/__init__.py", line 413, in process_file m = imp.load_source(mod_name, filepath) File "/...
TypeError
def __str__(self) -> str: return "Unacceptable field format, use **provider.method**."
def __str__(self) -> str: return "Undefined field. Filed cannot be None."
https://github.com/lk-geimfari/mimesis/issues/619
from mimesis.schema import Field, Schema _ = Field('en') _('choice', items=[1,2,3]) Traceback (most recent call last): File "C:\dev\fakemimesis\.pyenv\lib\site-packages\mimesis\schema.py", line 100, in __call__ result = self._table[name](**kwargs) KeyError: 'choice' During handling of the above exception, another exce...
KeyError
def __call__( self, name: Optional[str] = None, key: Optional[Callable] = None, **kwargs ) -> Any: """Override standard call. This magic method override standard call so it's take any string which represents name of the any method of any supported data provider and the ``**kwargs`` of this method. ...
def __call__( self, name: Optional[str] = None, key: Optional[Callable] = None, **kwargs ) -> Any: """Override standard call. This magic method override standard call so it's take any string which represents name of the any method of any supported data provider and the ``**kwargs`` of this method. ...
https://github.com/lk-geimfari/mimesis/issues/619
from mimesis.schema import Field, Schema _ = Field('en') _('choice', items=[1,2,3]) Traceback (most recent call last): File "C:\dev\fakemimesis\.pyenv\lib\site-packages\mimesis\schema.py", line 100, in __call__ result = self._table[name](**kwargs) KeyError: 'choice' During handling of the above exception, another exce...
KeyError
def tail_parser(tails: str, obj: Any) -> Any: """Return method from end of tail. :param tails: Tail string :param obj: Search tail from this object :return last tailed method """ provider_name, method_name = tails.split(".", 1) if "." in method_name: raise UnacceptableField() ...
def tail_parser(tails: str, obj: Any) -> Any: """Return method from end of tail. :param tails: Tail string :param obj: Search tail from this object :return last tailed method """ first, second = tails.split(".", 1) if hasattr(obj, first): attr = getattr(obj, first) if "." in...
https://github.com/lk-geimfari/mimesis/issues/619
from mimesis.schema import Field, Schema _ = Field('en') _('choice', items=[1,2,3]) Traceback (most recent call last): File "C:\dev\fakemimesis\.pyenv\lib\site-packages\mimesis\schema.py", line 100, in __call__ result = self._table[name](**kwargs) KeyError: 'choice' During handling of the above exception, another exce...
KeyError
def _bind_to_schema(self, field_name, schema): super()._bind_to_schema(field_name, schema) self.format = ( self.format or getattr(self.root.opts, self.SCHEMA_OPTS_VAR_NAME) or self.DEFAULT_FORMAT )
def _bind_to_schema(self, field_name, schema): super()._bind_to_schema(field_name, schema) self.format = ( self.format or getattr(schema.opts, self.SCHEMA_OPTS_VAR_NAME) or self.DEFAULT_FORMAT )
https://github.com/marshmallow-code/marshmallow/issues/1357
Traceback (most recent call last): File "test-mm.py", line 8, in <module> s = MySchema() File "/Users/victor/.pyenv/versions/marshmallow/lib/python3.6/site-packages/marshmallow/schema.py", line 383, in __init__ self.fields = self._init_fields() File "/Users/victor/.pyenv/versions/marshmallow/lib/python3.6/site-packages...
AttributeError
def _invoke_field_validators(self, unmarshal, data, many): for attr_name in self.__processors__[(VALIDATES, False)]: validator = getattr(self, attr_name) validator_kwargs = validator.__marshmallow_kwargs__[(VALIDATES, False)] field_name = validator_kwargs["field_name"] try: ...
def _invoke_field_validators(self, unmarshal, data, many): for attr_name in self.__processors__[(VALIDATES, False)]: validator = getattr(self, attr_name) validator_kwargs = validator.__marshmallow_kwargs__[(VALIDATES, False)] field_name = validator_kwargs["field_name"] try: ...
https://github.com/marshmallow-code/marshmallow/issues/1342
Traceback (most recent call last): File "/_/bug_mschema.py", line 19, in <module> 'bar': 'invalid', File "/_/env/lib/python3.7/site-packages/marshmallow/schema.py", line 628, in validate _, errors = self._do_load(data, many, partial=partial, postprocess=False) File "/_/env/lib/python3.7/site-packages/marshmallow/schema...
TypeError
def _deserialize(self, value, attr, data): if not value: # Falsy values, e.g. '', None, [] are not valid raise self.fail("invalid", obj_type=self.OBJ_TYPE) data_format = self.format or self.DEFAULT_FORMAT func = self.DESERIALIZATION_FUNCS.get(data_format) if func: try: retur...
def _deserialize(self, value, attr, data): if not value: # Falsy values, e.g. '', None, [] are not valid raise self.fail("invalid", obj_type=self.OBJ_TYPE) data_format = self.format or self.DEFAULT_FORMAT func = self.DESERIALIZATION_FUNCS.get(data_format) if func: try: retur...
https://github.com/marshmallow-code/marshmallow/issues/758
import marshmallow as ma f = ma.fields.DateTime() f.deserialize('2018/03/26') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "marshmallow/fields.py", line 261, in deserialize output = self._deserialize(value, attr, data) File "marshmallow/fields.py", line 929, in _deserialize raise self.fai...
marshmallow.exceptions.ValidationError
def __filter_fields(self, field_names, obj, many=False): """Return only those field_name:field_obj pairs specified by ``field_names``. :param set field_names: Field names to include in the final return dictionary. :returns: An dict of field_name:field_obj pairs. """ if obj and many: ...
def __filter_fields(self, field_names, obj, many=False): """Return only those field_name:field_obj pairs specified by ``field_names``. :param set field_names: Field names to include in the final return dictionary. :returns: An dict of field_name:field_obj pairs. """ if obj and many: ...
https://github.com/marshmallow-code/marshmallow/issues/948
Traceback (most recent call last): File "scratch/missing-field-nested-bug.py", line 72, in <module> result = HostSchema().dump(host) File "/Users/kai/.virtualenvs/SPEZZI/lib/python2.7/site-packages/marshmallow/schema.py", line 509, in dump **kwargs File "/Users/kai/.virtualenvs/SPEZZI/lib/python2.7/site-packages/marshm...
AttributeError
def call_and_store(self, getter_func, data, field_name, field_obj, index=None): """Call ``getter_func`` with ``data`` as its argument, and store any `ValidationErrors`. :param callable getter_func: Function for getting the serialized/deserialized value from ``data``. :param data: The data passed to...
def call_and_store(self, getter_func, data, field_name, field_obj, index=None): """Call ``getter_func`` with ``data`` as its argument, and store any `ValidationErrors`. :param callable getter_func: Function for getting the serialized/deserialized value from ``data``. :param data: The data passed to...
https://github.com/marshmallow-code/marshmallow/issues/298
Traceback (most recent call last): File "/home/andrew/misc/marshmallow/tests/test_schema.py", line 1238, in test_all_errors_on_many_nested_field_with_validates_decorator _, errors = outer.load({'inner': [{}]}) File "/home/andrew/misc/marshmallow/marshmallow/schema.py", line 539, in load result, errors = self._do_load(d...
AttributeError
def get_enrichment_input(self, output_file_path): """This function converts modules mode output into input for anvi-script-enrichment-stats The input format for anvi-script-enrichment-stats is described in a comment at the top of that script, and here is how we get the values for each column: The first...
def get_enrichment_input(self, output_file_path): """This function converts modules mode output into input for anvi-script-enrichment-stats The input format for anvi-script-enrichment-stats is described in a comment at the top of that script, and here is how we get the values for each column: The first...
https://github.com/merenlab/anvio/issues/1654
[27 Jan 21 17:31:49 Enrichment analysis] Converting modules mode output into input for enrichment script Traceback (most recent call last): File "/Users/iva/opt/miniconda3/envs/anvio-dev/lib...
TypeError
def store_genes_basic_info(self): if self.summary.quick: return self.progress.update("Sorting out gene calls ...") d = {} headers = ["contig", "start", "stop", "direction"] header_items_for_gene_sequences = ["dna_sequence"] if self.summary.report_aa_seqs_for_gene_calls: header...
def store_genes_basic_info(self): if self.summary.quick: return self.progress.update("Sorting out gene calls ...") d = {} headers = ["contig", "start", "stop", "direction"] header_items_for_gene_sequences = ["dna_sequence"] if self.summary.report_aa_seqs_for_gene_calls: header...
https://github.com/merenlab/anvio/issues/1596
[14 Dec 20 13:41:59 Summarizing 1 of 187: 'Bin_36'] Sorting out functions ... ETA: 0sTraceback (most recent call last): File "/home/jgs286/git_sw/anvio/bin/anvi-summarize", line 123, in <module> main(args) File "/home/jgs286/git_sw/anvio/bin/anv...
KeyError
def migrate(db_path): if db_path is None: raise ConfigError("No database path is given.") utils.is_contigs_db(db_path) contigs_db = db.DB(db_path, None, ignore_version=True) if str(contigs_db.get_version()) != current_version: raise ConfigError( "Version of this contigs dat...
def migrate(db_path): if db_path is None: raise ConfigError("No database path is given.") utils.is_contigs_db(db_path) contigs_db = db.DB(db_path, None, ignore_version=True) if str(contigs_db.get_version()) != current_version: raise ConfigError( "Version of this contigs dat...
https://github.com/merenlab/anvio/issues/1596
[14 Dec 20 13:41:59 Summarizing 1 of 187: 'Bin_36'] Sorting out functions ... ETA: 0sTraceback (most recent call last): File "/home/jgs286/git_sw/anvio/bin/anvi-summarize", line 123, in <module> main(args) File "/home/jgs286/git_sw/anvio/bin/anv...
KeyError
def __init__( self, contigs_db_path, sources=set([]), split_names_of_interest=set([]), init=True, run=run, progress=progress, bin_name=None, ): self.run = run self.progress = progress if not isinstance(sources, type(set([]))): raise ConfigError("'sources' variable ha...
def __init__( self, contigs_db_path, sources=set([]), split_names_of_interest=set([]), init=True, run=run, progress=progress, ): self.run = run self.progress = progress if not isinstance(sources, type(set([]))): raise ConfigError("'sources' variable has to be a set insta...
https://github.com/merenlab/anvio/issues/1593
[09 Dec 20 09:32:25 Summarizing 104 of 159: 'Bin_3_32'] Creating the FASTA file ... ETA: 1m18sTraceback (most recent call last): File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 118, in <module> main(args) File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 63, in main su...
KeyError
def init_dicts(self, contigs_db_path, split_names_of_interest=set([])): """Initialize essential data for HMM stuff. This function will do its best to not load any data that will not be used later for HMM related operations. For instance, it will learn which gene caller ids are of interest based on HMM ...
def init_dicts(self, contigs_db_path, split_names_of_interest=set([])): """Initialize essential data for HMM stuff. This function will do its best to not load any data that will not be used later for HMM related operations. For instance, it will learn which gene caller ids are of interest based on HMM ...
https://github.com/merenlab/anvio/issues/1593
[09 Dec 20 09:32:25 Summarizing 104 of 159: 'Bin_3_32'] Creating the FASTA file ... ETA: 1m18sTraceback (most recent call last): File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 118, in <module> main(args) File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 63, in main su...
KeyError
def store_sequences_for_hmm_hits(self): if self.summary.quick: return s = SequencesForHMMHits( self.summary.contigs_db_path, split_names_of_interest=self.split_names, progress=progress_quiet, bin_name=self.bin_id, ) hmm_sequences_dict = s.get_sequences_dict_for_h...
def store_sequences_for_hmm_hits(self): if self.summary.quick: return s = SequencesForHMMHits( self.summary.contigs_db_path, split_names_of_interest=self.split_names, progress=progress_quiet, ) hmm_sequences_dict = s.get_sequences_dict_for_hmm_hits_in_splits( {se...
https://github.com/merenlab/anvio/issues/1593
[09 Dec 20 09:32:25 Summarizing 104 of 159: 'Bin_3_32'] Creating the FASTA file ... ETA: 1m18sTraceback (most recent call last): File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 118, in <module> main(args) File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 63, in main su...
KeyError
def do_contigs_db(self): self.progress.new('Splitting "%s"' % self.bin_id) self.progress.update("Subsetting the contigs database") bin_contigs_db = dbops.ContigsDatabase(self.bin_contigs_db_path) bin_contigs_db.touch() # copy-paste tables that will largely stay the same from the parent bin_con...
def do_contigs_db(self): self.progress.new('Splitting "%s"' % self.bin_id) self.progress.update("Subsetting the contigs database") bin_contigs_db = dbops.ContigsDatabase(self.bin_contigs_db_path) bin_contigs_db.touch() # copy-paste tables that will largely stay the same from the parent bin_con...
https://github.com/merenlab/anvio/issues/1593
[09 Dec 20 09:32:25 Summarizing 104 of 159: 'Bin_3_32'] Creating the FASTA file ... ETA: 1m18sTraceback (most recent call last): File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 118, in <module> main(args) File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 63, in main su...
KeyError
def init_dicts(self, contigs_db_path, split_names_of_interest=set([])): """Initialize essential data for HMM stuff. This function will do its best to not load any data that will not be used later for HMM related operations. For instance, it will learn which gene caller ids are of interest based on HMM ...
def init_dicts(self, contigs_db_path, split_names_of_interest=set([])): """Initialize essential data for HMM stuff. This function will do its best to not load any data that will not be used later for HMM related operations. For instance, it will learn which gene caller ids are of interest based on HMM ...
https://github.com/merenlab/anvio/issues/1593
[09 Dec 20 09:32:25 Summarizing 104 of 159: 'Bin_3_32'] Creating the FASTA file ... ETA: 1m18sTraceback (most recent call last): File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 118, in <module> main(args) File "/workdir/lab_envs/anvio/bin/anvi-summarize", line 63, in main su...
KeyError
def is_amino_acid_functionally_conserved(amino_acid_residue_1, amino_acid_residue_2): """Checks if two amino acid residues are part of the same biochemical property group""" group = constants.amino_acid_property_group[amino_acid_residue_1] conserved_group = constants.conserved_amino_acid_groups[group] ...
def is_amino_acid_functionally_conserved(amino_acid_residue_1, amino_acid_residue_2): """Checks if two amino acid residues are part of the same biochemical property group""" group = constants.amino_acid_property_group[amino_acid_residue_1] conserved_group = constants.conserved_amino_acid_groups[group] ...
https://github.com/merenlab/anvio/issues/1349
* Gene clusters are initialized for all 121 gene clusters in the database. [06 Feb 20 18:17:25 Computing gene cluster homogeneity indices] Initializing 1 threads... ETA: ∞:∞:∞ WARNING ===============================================...
TypeError
def migrate(db_path): if db_path is None: raise ConfigError("No database path is given.") # make sure someone is not being funny utils.is_pan_db(db_path) # make sure the version is accurate pan_db = db.DB(db_path, None, ignore_version=True) if str(pan_db.get_version()) != current_versi...
def migrate(db_path): if db_path is None: raise ConfigError("No database path is given.") # make sure someone is not being funny utils.is_pan_db(db_path) # make sure the version is accurate pan_db = db.DB(db_path, None, ignore_version=True) if str(pan_db.get_version()) != current_versi...
https://github.com/merenlab/anvio/issues/971
wifi-roaming-128-4-182-83:anvio_update sean$ anvi-migrate-db Zeta_Pangenome-PAN.db /usr/local/Cellar/anvio/5.1/libexec/lib/python3.7/site-packages/matplotlib/__init__.py:1067: UserWarning: Duplicate key in file "/Users/sean/.matplotlib/matplotlibrc", line #2 (fname, cnt)) Database Path ................................:...
sqlite3.OperationalError
def __init__(self, args): A = lambda x: args.__dict__[x] if x in args.__dict__ else None self.db_path = A("pan_or_profile_db") or A("profile_db") or A("pan_db") self.just_do_it = A("just_do_it") self.target_data_group_set_by_user = A("target_data_group") or None self.target_data_group = self.target_...
def __init__(self, args): A = lambda x: args.__dict__[x] if x in args.__dict__ else None self.db_path = A("pan_or_profile_db") or A("profile_db") or A("pan_db") self.just_do_it = A("just_do_it") self.target_data_group_set_by_user = A("target_data_group") or None self.target_data_group = self.target_...
https://github.com/merenlab/anvio/issues/972
Traceback (most recent call last): File "/Users/evan/Software/anvio/bin/anvi-interactive", line 100, in <module> d = interactive.Interactive(args) File "/Users/evan/Software/anvio/anvio/interactive.py", line 133, in __init__ self.layers_additional_data_keys[group_name], self.layers_additional_data_dict[group_name]) if ...
TypeError
def update_orders_dict_using_additional_data_dict( self, order_data_dict, additional_data_keys, additional_data_dict ): if order_data_dict: self.data_dict_sanity_check(order_data_dict, treat_data_dict_as="layer_orders") # FIXME: here we need to check whether the two dictionaries are in fact 'compat...
def update_orders_dict_using_additional_data_dict( self, order_data_dict, additional_data_keys, additional_data_dict ): if order_data_dict: self.data_dict_sanity_check(order_data_dict, treat_data_dict_as="layer_orders") # FIXME: here we need to check whether the two dictionaries are in fact 'compat...
https://github.com/merenlab/anvio/issues/972
Traceback (most recent call last): File "/Users/evan/Software/anvio/bin/anvi-interactive", line 100, in <module> d = interactive.Interactive(args) File "/Users/evan/Software/anvio/anvio/interactive.py", line 133, in __init__ self.layers_additional_data_keys[group_name], self.layers_additional_data_dict[group_name]) if ...
TypeError
def run_stdin(self, sequences_list, debug=False): """Takes a list of tuples for sequences, performs MSA using muscle, returns a dict. >>> from anvio.drivers.muscle import Muscle >>> m = Muscle() >>> m.run_stdin([('seq1', 'ATCATCATCGA'), ('seq2', 'ATCGAGTCGAT')]) {u'seq1': u'ATCATCATCGA-', u'seq2': ...
def run_stdin(self, sequences_list, debug=False): """Takes a list of tuples for sequences, performs MSA using muscle, returns a dict. >>> from anvio.drivers.muscle import Muscle >>> m = Muscle() >>> m.run_stdin([('seq1', 'ATCATCATCGA'), ('seq2', 'ATCGAGTCGAT')]) {u'seq1': u'ATCATCATCGA-', u'seq2': ...
https://github.com/merenlab/anvio/issues/735
[05 Feb 18 00:07:31 Aligning amino acid sequences for genes in gene cluste (...)Process Process-19: Traceback (most recent call last): File "/bioware/python-3.5.1-201606221454/lib/python3.5/multiprocessing/process.py", line 254, in _bootstrap self.run() File "/bioware/python-3.5.1-201606221454/lib/python3.5/multiproces...
IndexError
def run_stdin(self, sequences_list, debug=False): """Takes a list of tuples for sequences, performs MSA using muscle, returns a dict. >>> from anvio.drivers.muscle import Muscle >>> m = Muscle() >>> m.run_stdin([('seq1', 'ATCATCATCGA'), ('seq2', 'ATCGAGTCGAT')]) {u'seq1': u'ATCATCATCGA-', u'seq2': ...
def run_stdin(self, sequences_list, debug=False): """Takes a list of tuples for sequences, performs MSA using muscle, returns a dict. >>> from anvio.drivers.muscle import Muscle >>> m = Muscle() >>> m.run_stdin([('seq1', 'ATCATCATCGA'), ('seq2', 'ATCGAGTCGAT')]) {u'seq1': u'ATCATCATCGA-', u'seq2': ...
https://github.com/merenlab/anvio/issues/735
[05 Feb 18 00:07:31 Aligning amino acid sequences for genes in gene cluste (...)Process Process-19: Traceback (most recent call last): File "/bioware/python-3.5.1-201606221454/lib/python3.5/multiprocessing/process.py", line 254, in _bootstrap self.run() File "/bioware/python-3.5.1-201606221454/lib/python3.5/multiproces...
IndexError
def store_hits_into_contigs_db(self): if not self.hits: raise ConfigError( "COGs class has no hits to process. Did you forget to call search?" ) cogs_data = COGsData(self.args) cogs_data.init_p_id_to_cog_id_dict() functions_dict = {} self.__entry_id = 0 def add_ent...
def store_hits_into_contigs_db(self): if not self.hits: raise ConfigError( "COGs class has no hits to process. Did you forget to call search?" ) cogs_data = COGsData(self.args) cogs_data.init_p_id_to_cog_id_dict() functions_dict = {} self.__entry_id = 0 def add_ent...
https://github.com/merenlab/anvio/issues/673
Traceback (most recent call last): File "/Users/meren/github/anvio/bin/anvi-run-ncbi-cogs", line 49, in <module> main(args) File "/Users/meren/github/anvio/bin/anvi-run-ncbi-cogs", line 28, in main cogs.process() File "/Users/meren/github/anvio/anvio/cogs.py", line 121, in process self.store_hits_into_contigs_db() File...
KeyError
def __init__(self, args): A = lambda x: args.__dict__[x] if x in args.__dict__ else None self.db_path = A("pan_or_profile_db") or A("profile_db") or A("pan_db") self.just_do_it = A("just_do_it") if not self.db_path: raise ConfigError( "The AdditionalAndOrderDataBaseClass is inherite...
def __init__(self, args): A = lambda x: args.__dict__[x] if x in args.__dict__ else None self.db_path = A("pan_or_profile_db") or A("profile_db") or A("pan_db") self.just_do_it = A("just_do_it") if not self.db_path: raise ConfigError( "The AdditionalAndOrderDataBaseClass is inherite...
https://github.com/merenlab/anvio/issues/707
Traceback (most recent call last): File "/Users/alonshaiber/github/anvio/bin/anvi-display-pan", line 74, in <module> d = interactive.Interactive(args) File "/Users/alonshaiber/github/anvio/anvio/interactive.py", line 106, in __init__ self.layers_order_data_dict = TableForLayerOrders(self.args).get(self.layers_additiona...
TypeError
def update_orders_dict_using_additional_data_dict( self, order_data_dict, additional_data_keys, additional_data_dict ): if order_data_dict: self.data_dict_sanity_check(order_data_dict, treat_data_dict_as="layer_orders") self.data_dict_sanity_check( additional_data_dict, data_keys_li...
def update_orders_dict_using_additional_data_dict( self, order_data_dict, additional_data_keys, additional_data_dict ): if order_data_dict: self.data_dict_sanity_check(order_data_dict, treat_data_dict_as="layer_orders") self.data_dict_sanity_check( additional_data_dict, data_keys_li...
https://github.com/merenlab/anvio/issues/707
Traceback (most recent call last): File "/Users/alonshaiber/github/anvio/bin/anvi-display-pan", line 74, in <module> d = interactive.Interactive(args) File "/Users/alonshaiber/github/anvio/anvio/interactive.py", line 106, in __init__ self.layers_order_data_dict = TableForLayerOrders(self.args).get(self.layers_additiona...
TypeError
def get(self): """Will return the additional data keys and the dict.""" self.progress.new("Recovering additional keys and data for %s" % self.target) self.progress.update("...") database = db.DB(self.db_path, utils.get_required_version_for_db(self.db_path)) additional_data = database.get_table_as_d...
def get(self): """Will return the additional data keys and the dict.""" self.progress.new("Recovering additional keys and data for %s" % self.target) self.progress.update("...") database = db.DB(self.db_path, utils.get_required_version_for_db(self.db_path)) additional_data = database.get_table_as_d...
https://github.com/merenlab/anvio/issues/707
Traceback (most recent call last): File "/Users/alonshaiber/github/anvio/bin/anvi-display-pan", line 74, in <module> d = interactive.Interactive(args) File "/Users/alonshaiber/github/anvio/anvio/interactive.py", line 106, in __init__ self.layers_order_data_dict = TableForLayerOrders(self.args).get(self.layers_additiona...
TypeError
def generate_pan_db(self): meta_values = { "internal_genome_names": ",".join(self.internal_genome_names), "external_genome_names": ",".join(self.external_genome_names), "num_genomes": len(self.genomes), "min_percent_identity": self.min_percent_identity, "pc_min_occurrence": s...
def generate_pan_db(self): meta_values = { "internal_genome_names": ",".join(self.internal_genome_names), "external_genome_names": ",".join(self.external_genome_names), "num_genomes": len(self.genomes), "min_percent_identity": self.min_percent_identity, "pc_min_occurrence": s...
https://github.com/merenlab/anvio/issues/648
Traceback (most recent call last): File "/home/vnsriniv/virtual-envs/anvio/bin/anvi-display-pan", line 4, in <module> __import__('pkg_resources').run_script('anvio===3-master', 'anvi-display-pan') File "/home/vnsriniv/virtual-envs/anvio/lib/python3.5/site-packages/pkg_resources/__init__.py", line 748, in run_script sel...
KeyError
def __init__(self, args, r=run, p=progress): self.args = args self.run = r self.progress = p self.genome_names = [] self.protein_clusters = {} self.protein_clusters_initialized = False self.protein_cluster_names = set([]) self.protein_clusters_gene_alignments = {} self.protein_clust...
def __init__(self, args, r=run, p=progress): self.args = args self.run = r self.progress = p self.genome_names = [] self.protein_clusters = {} self.protein_clusters_initialized = False self.protein_cluster_names = set([]) self.protein_clusters_gene_alignments = {} self.protein_clust...
https://github.com/merenlab/anvio/issues/648
Traceback (most recent call last): File "/home/vnsriniv/virtual-envs/anvio/bin/anvi-display-pan", line 4, in <module> __import__('pkg_resources').run_script('anvio===3-master', 'anvi-display-pan') File "/home/vnsriniv/virtual-envs/anvio/lib/python3.5/site-packages/pkg_resources/__init__.py", line 748, in run_script sel...
KeyError
def share_project(request, userdb, response): set_default_headers(response) return json.dumps( userdb.create_view( get_user(request, userdb, response), request.forms.get("name"), request.forms.get("project"), request.forms.get("public"), ) )
def share_project(request, userdb, response): set_default_headers(response) return json.dumps( share=userdb.create_view( get_user(request, userdb, response), request.forms.get("name"), request.forms.get("project"), request.forms.get("public"), ) ...
https://github.com/merenlab/anvio/issues/253
Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bottle.py", line 862, in _handle return route.call(**args) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bottle.py", line 1732, in wrapper rv =...
NameError
def get_serial(self): """ Get serial number for device :return: String of the serial number :rtype: str """ # TODO raise exception if serial cant be got and handle during device add if self._serial is None: serial_path = os.path.join(self._device_path, "device_serial") count...
def get_serial(self): """ Get serial number for device :return: String of the serial number :rtype: str """ # TODO raise exception if serial cant be got and handle during device add if self._serial is None: serial_path = os.path.join(self._device_path, "device_serial") count...
https://github.com/openrazer/openrazer/issues/558
Starting daemon. 2018-03-25 18:28:24 | razer | INFO | Initialising Daemon (v2.2.2). Pid: 6168 2018-03-25 18:28:24 | razer.screensaver | INFO | Initialising DBus Screensaver Monitor 2018-03-25 18:28:24 | razer | DEBUG | Loaded device specification...
UnicodeDecodeError
def run(): global args logger = None args = parse_args() if args.stop: stop_daemon(args) sys.exit(0) if args.respawn: stop_daemon(args) time.sleep(3) # daemonize logs exceptions to its logger (which defaults to the syslog) # and does not make them appear o...
def run(): global args args = parse_args() if args.stop: stop_daemon(args) sys.exit(0) if args.respawn: stop_daemon(args) time.sleep(3) install_example_config_file() os.makedirs(args.run_dir, exist_ok=True) daemon = Daemonize( app="openrazer-daemon"...
https://github.com/openrazer/openrazer/issues/431
thunderrd@Q6600:~$ openrazer-daemon -Fv 2017-11-01 21:44:38 | razer | INFO | Initialising Daemon (v2.0.0). Pid: 13092 2017-11-01 21:44:38 | razer.screensaver | INFO | Initialising DBus Screensaver Monitor 2017-11-01 21:44:38 | razer | DEBUG | Loa...
AttributeError
async def get(self, key): """Get data from Redis for a given key. Args: key (string): The key to lookup in the database. Returns: object or None: The data object stored for that key, or None if no object found for that key. """ if self.client: _LOGG...
async def get(self, key): """Get data from Redis for a given key. Args: key (string): The key to lookup in the database. Returns: object or None: The data object stored for that key, or None if no object found for that key. """ if self.client: _LOGG...
https://github.com/opsdroid/opsdroid/issues/1673
notrexroof_1 | DEBUG opsdroid.memory: Putting seen to memory. notrexroof_1 | DEBUG opsdroid.database.redis: Putting seen into Redis. notrexroof_1 | ERROR opsdroid.core: Exception when running skill 'seen'. notrexroof_1 | Traceback (most recent call last): notrexroof_1 | File "/usr/local/lib/python3.8/site-packag...
TypeError
async def train_parsers(self, skills): """Train the parsers. Args: skills (list): A list of all the loaded skills. """ if "parsers" in self.modules: parsers = self.modules.get("parsers", {}) rasanlu = get_parser_config("rasanlu", parsers) if rasanlu and rasanlu["enabled...
async def train_parsers(self, skills): """Train the parsers. Args: skills (list): A list of all the loaded skills. """ if "parsers" in self.config: parsers = self.config["parsers"] or {} rasanlu = parsers.get("rasanlu") if rasanlu and rasanlu["enabled"]: awa...
https://github.com/opsdroid/opsdroid/issues/1554
INFO opsdroid.logging: ======================================== INFO opsdroid.logging: Started opsdroid v0.8.1+833.g5c8dbb7.dirty. INFO opsdroid: ======================================== INFO opsdroid: You can customise your opsdroid by modifying your configuration.yaml. INFO opsdroid: Read more at: http://opsdroid.rea...
KeyError
async def get_ranked_skills(self, skills, message): """Take a message and return a ranked list of matching skills. Args: skills (list): List of all available skills. message (string): Context message to base the ranking of skills on. Returns: ranked_skills (list): List of all avail...
async def get_ranked_skills(self, skills, message): """Take a message and return a ranked list of matching skills. Args: skills (list): List of all available skills. message (string): Context message to base the ranking of skills on. Returns: ranked_skills (list): List of all avail...
https://github.com/opsdroid/opsdroid/issues/1554
INFO opsdroid.logging: ======================================== INFO opsdroid.logging: Started opsdroid v0.8.1+833.g5c8dbb7.dirty. INFO opsdroid: ======================================== INFO opsdroid: You can customise your opsdroid by modifying your configuration.yaml. INFO opsdroid: Read more at: http://opsdroid.rea...
KeyError
def load_config_file(config_paths): """Load a yaml config file from path. We get a path for the configuration file and then use the yaml library to load this file - the configuration will be shown as a dict. Here we also add constructors to our yaml loader and handle different exceptions that coul...
def load_config_file(config_paths): """Load a yaml config file from path. We get a path for the configuration file and then use the yaml library to load this file - the configuration will be shown as a dict. Here we also add constructors to our yaml loader and handle different exceptions that coul...
https://github.com/opsdroid/opsdroid/issues/1347
hemmo_1 | DEBUG opsdroid.parsers.crontab: Running crontab skills at Thu Jan 30 08:29:00 2020. hemmo_1 | ERROR opsdroid.core: Exception when running skill 'cve'. hemmo_1 | Traceback (most recent call last): hemmo_1 | File "/usr/local/lib/python3.7/site-packages/opsdroid/core.py", line 397, in run_skill hemmo_1 | ...
AttributeError
def validate_configuration(config, schema): """Validate data from configuration.yaml. We use voluptuous to validate the data obtained from the configuration file with the schema declared above. Voluptuous will raise a 'voluptuous.MultipleInvalid' exception if the data passed doesn't match the schem...
def validate_configuration(config, schema): """Validate data from configuration.yaml. We use voluptuous to validate the data obtained from the configuration file with the schema declared above. Voluptuous will raise a 'voluptuous.MultipleInvalid' exception if the data passed doesn't match the schem...
https://github.com/opsdroid/opsdroid/issues/1347
hemmo_1 | DEBUG opsdroid.parsers.crontab: Running crontab skills at Thu Jan 30 08:29:00 2020. hemmo_1 | ERROR opsdroid.core: Exception when running skill 'cve'. hemmo_1 | Traceback (most recent call last): hemmo_1 | File "/usr/local/lib/python3.7/site-packages/opsdroid/core.py", line 397, in run_skill hemmo_1 | ...
AttributeError
def _load_modules(self, modules_type, modules): """Install and load modules. Args: self: instance method modules_type (str): Type of module being loaded modules (dict): Dictionary containing all modules Returns: list: modules and their config information """ _LOGGE...
def _load_modules(self, modules_type, modules): """Install and load modules. Args: self: instance method modules_type (str): Type of module being loaded modules (dict): Dictionary containing all modules Returns: list: modules and their config information """ _LOGGE...
https://github.com/opsdroid/opsdroid/issues/1347
hemmo_1 | DEBUG opsdroid.parsers.crontab: Running crontab skills at Thu Jan 30 08:29:00 2020. hemmo_1 | ERROR opsdroid.core: Exception when running skill 'cve'. hemmo_1 | Traceback (most recent call last): hemmo_1 | File "/usr/local/lib/python3.7/site-packages/opsdroid/core.py", line 397, in run_skill hemmo_1 | ...
AttributeError
async def websocket_handler(self, request): """Handle for aiohttp handling websocket connections.""" socket = request.match_info.get("socket") available = [item for item in self.available_connections if item["id"] == socket] if len(available) != 1: return aiohttp.web.Response( text=j...
async def websocket_handler(self, request): """Handle for aiohttp handling websocket connections.""" socket = request.match_info.get("socket") available = [item for item in self.available_connections if item["id"] == socket] if len(available) != 1: return aiohttp.web.Response( text=j...
https://github.com/opsdroid/opsdroid/issues/1310
C:\Users\integrat>opsdroid start INFO opsdroid.logging: ======================================== INFO opsdroid.logging: Started opsdroid v0.17.0. INFO opsdroid: ======================================== INFO opsdroid: You can customise your opsdroid by modifying your configuration.yaml. INFO opsdroid: Read more at: http...
AttributeError
async def parseloop(self): """Parseloop moved out for testing.""" self.draw_prompt() user_input = await self.async_input() message = Message(text=user_input, user=self.user, target=None, connector=self) await self.opsdroid.parse(message)
async def parseloop(self): """Parseloop moved out for testing.""" self.draw_prompt() user_input = await self.async_input() message = Message(user_input, self.user, None, self) await self.opsdroid.parse(message)
https://github.com/opsdroid/opsdroid/issues/1310
C:\Users\integrat>opsdroid start INFO opsdroid.logging: ======================================== INFO opsdroid.logging: Started opsdroid v0.17.0. INFO opsdroid: ======================================== INFO opsdroid: You can customise your opsdroid by modifying your configuration.yaml. INFO opsdroid: Read more at: http...
AttributeError
async def slack_interactions_handler(self, request): """Handle interactive events in Slack. For each entry in request, it will check if the entry is one of the four main interaction types in slack: block_actions, message_actions, view_submissions and view_closed. Then it will process all the incoming m...
async def slack_interactions_handler(self, request): """Handle interactive events in Slack. For each entry in request, it will check if the entry is one of the four main interaction types in slack: block_actions, message_actions, view_submissions and view_closed. Then it will process all the incoming m...
https://github.com/opsdroid/opsdroid/issues/1302
ERROR aiohttp.server: Error handling request Traceback (most recent call last): File "/path/to/venv/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/path/to/venv/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/pa...
KeyError
async def match_event(event, event_opts): """Filter and matches the event.""" event_type = event_opts.get("type", None) if event_type: # The event type can be specified with a string if isinstance(event_type, str): # pylint: disable=invalid-name et = Event.event_regi...
async def match_event(event, event_opts): """Filter and matches the event.""" event_type = event_opts.get("type", None) if event_type: # The event type can be specified with a string if isinstance(event_type, str): # pylint: disable=invalid-name et = Event.event_regi...
https://github.com/opsdroid/opsdroid/issues/1302
ERROR aiohttp.server: Error handling request Traceback (most recent call last): File "/path/to/venv/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start resp = await task File "/path/to/venv/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle resp = await handler(request) File "/pa...
KeyError
def __init__(self, config, opsdroid=None): """Create the connector.""" super().__init__(config, opsdroid=opsdroid) _LOGGER.debug(_("Starting Slack connector")) self.name = "slack" self.default_target = config.get("default-room", "#general") self.icon_emoji = config.get("icon-emoji", ":robot_face...
def __init__(self, config, opsdroid=None): """Create the connector.""" super().__init__(config, opsdroid=opsdroid) _LOGGER.debug(_("Starting Slack connector")) self.name = "slack" self.default_target = config.get("default-room", "#general") self.icon_emoji = config.get("icon-emoji", ":robot_face...
https://github.com/opsdroid/opsdroid/issues/1232
INFO opsdroid.connector.slack: Connecting to Slack Traceback (most recent call last): File "/home/daniccan/c8/OpsDroid/c8-alertbot/env/lib/python3.6/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa File "/usr/lib...
ssl.SSLError
async def process_message(self, **payload): """Process a raw message and pass it to the parser.""" message = payload["data"] # Ignore message edits if "subtype" in message and message["subtype"] == "message_changed": return # Ignore own messages if ( "subtype" in message ...
async def process_message(self, **payload): """Process a raw message and pass it to the parser.""" message = payload["data"] # Ignore own messages if ( "subtype" in message and message["subtype"] == "bot_message" and message["bot_id"] == self.bot_id ): return # ...
https://github.com/opsdroid/opsdroid/issues/1217
ERROR slack.rtm.client: When calling '#process_message()' in the 'opsdroid.connector.slack' module the following error was raised: 'user' Traceback (most recent call last): File "C:\Users\koe4945\desktop\git\personal\ops\venv\Scripts\opsdroid-script.py", line 11, in <module> load_entry_point('opsdroid', 'console_script...
KeyError
async def train_rasanlu(config, skills): """Train a Rasa NLU model based on the loaded skills.""" _LOGGER.info(_("Starting Rasa NLU training.")) intents = await _get_all_intents(skills) if intents is None: _LOGGER.warning(_("No intents found, skipping training.")) return False confi...
async def train_rasanlu(config, skills): """Train a Rasa NLU model based on the loaded skills.""" _LOGGER.info(_("Starting Rasa NLU training.")) intents = await _get_all_intents(skills) if intents is None: _LOGGER.warning(_("No intents found, skipping training.")) return False confi...
https://github.com/opsdroid/opsdroid/issues/886
INFO opsdroid.parsers.rasanlu: Starting Rasa NLU training. INFO opsdroid.parsers.rasanlu: Now training the model. This may take a while... DEBUG asyncio: Using selector: KqueueSelector Traceback (most recent call last): ... File "/Users/hicham/Developments/Bots/opsdroid-iobreaker/opsdroid/opsdroid/parsers/rasanlu.py", ...
aiohttp.client_exceptions.ContentTypeError
def _load_intents(config): intent_file = os.path.join(config["install_path"], "intents.yml") if os.path.isfile(intent_file): with open(intent_file, "r") as intent_file_handle: intents = intent_file_handle.read() return intents else: return None
def _load_intents(config): intent_file = os.path.join(config["install_path"], "intents.md") if os.path.isfile(intent_file): with open(intent_file, "r") as intent_file_handle: intents = intent_file_handle.read() return intents else: return None
https://github.com/opsdroid/opsdroid/issues/860
INFO opsdroid.parsers.rasanlu: Starting Rasa NLU training. DEBUG asyncio: Using selector: KqueueSelector Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/Cella...
AttributeError
async def _get_all_intents(skills): """Get all skill intents and concatenate into a single markdown string.""" intents = [skill["intents"] for skill in skills if skill["intents"] is not None] if not intents: return None intents = "\n\n".join(intents) return unicodedata.normalize("NFKD", inte...
async def _get_all_intents(skills): """Get all skill intents and concatenate into a single markdown string.""" matchers = [matcher for skill in skills for matcher in skill.matchers] intents = [ matcher["intents"] for matcher in matchers if matcher["intents"] is not None ] if not intents: ...
https://github.com/opsdroid/opsdroid/issues/860
INFO opsdroid.parsers.rasanlu: Starting Rasa NLU training. DEBUG asyncio: Using selector: KqueueSelector Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/Cella...
AttributeError
async def train_rasanlu(config, skills): """Train a Rasa NLU model based on the loaded skills.""" _LOGGER.info(_("Starting Rasa NLU training.")) intents = await _get_all_intents(skills) if intents is None: _LOGGER.warning(_("No intents found, skipping training.")) return False confi...
async def train_rasanlu(config, skills): """Train a Rasa NLU model based on the loaded skills.""" _LOGGER.info(_("Starting Rasa NLU training.")) intents = await _get_all_intents(skills) if intents is None: _LOGGER.warning(_("No intents found, skipping training.")) return False confi...
https://github.com/opsdroid/opsdroid/issues/860
INFO opsdroid.parsers.rasanlu: Starting Rasa NLU training. DEBUG asyncio: Using selector: KqueueSelector Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/Cella...
AttributeError
async def parse(self, message): """Parse a string against all skills.""" self.stats["messages_parsed"] = self.stats["messages_parsed"] + 1 tasks = [] if message is not None: if str(message.text).strip(): _LOGGER.debug(_("Parsing input: %s"), message.text) tasks.append(se...
async def parse(self, message): """Parse a string against all skills.""" self.stats["messages_parsed"] = self.stats["messages_parsed"] + 1 tasks = [] if message is not None: if str(message.text).strip(): _LOGGER.debug(_("Parsing input: %s"), message.text) tasks.append(se...
https://github.com/opsdroid/opsdroid/issues/872
INFO opsdroid.web: Started web server on http://127.0.0.1:8080 DEBUG opsdroid.parsers.crontab: Running crontab skills DEBUG opsdroid.connector.telegram: {'update_id': 246644579, 'message': {'message_id': 280, 'from': {'id': 111222555, 'is_bot': False, 'first_name': 'IOBreaker', 'language_code': 'en'}, 'chat': {'id': 11...
IndexError
async def parse_regex(opsdroid, skills, message): """Parse a message against all regex skills.""" matched_skills = [] for skill in skills: for matcher in skill.matchers: if "regex" in matcher: opts = matcher["regex"] if opts["case_sensitive"]: ...
async def parse_regex(opsdroid, skills, message): """Parse a message against all regex skills.""" matched_skills = [] for skill in skills: for matcher in skill.matchers: if "regex" in matcher: opts = matcher["regex"] if opts["case_sensitive"]: ...
https://github.com/opsdroid/opsdroid/issues/872
INFO opsdroid.web: Started web server on http://127.0.0.1:8080 DEBUG opsdroid.parsers.crontab: Running crontab skills DEBUG opsdroid.connector.telegram: {'update_id': 246644579, 'message': {'message_id': 280, 'from': {'id': 111222555, 'is_bot': False, 'first_name': 'IOBreaker', 'language_code': 'en'}, 'chat': {'id': 11...
IndexError
async def websocket_handler(self, request): """Handle for aiohttp handling websocket connections.""" socket = request.match_info.get("socket") available = [item for item in self.available_connections if item["id"] == socket] if len(available) != 1: return aiohttp.web.Response( text=j...
async def websocket_handler(self, request): """Handle for aiohttp handling websocket connections.""" socket = request.match_info.get("socket") available = [item for item in self.available_connections if item["id"] == socket] if len(available) != 1: return aiohttp.web.Response( text=j...
https://github.com/opsdroid/opsdroid/issues/867
DEBUG opsdroid.connector.websocket: Starting Websocket connector INFO opsdroid.core: Opsdroid is now running, press ctrl+c to exit. INFO opsdroid.web: Started web server on http://127.0.0.1:8080 INFO aiohttp.access: 127.0.0.1 [07/Mar/2019:14:35:22 +0000] "POST /connector/websocket HTTP/1.1" 200 220 "-" "-" DEBUG opsdro...
AttributeError
async def parse(self, message): """Parse a string against all skills.""" self.stats["messages_parsed"] = self.stats["messages_parsed"] + 1 tasks = [] if message is not None: if str(message.text).strip(): _LOGGER.debug(_("Parsing input: %s"), message.text) tasks.append(se...
async def parse(self, message): """Parse a string against all skills.""" self.stats["messages_parsed"] = self.stats["messages_parsed"] + 1 tasks = [] if message is not None and message.text.strip() != "": _LOGGER.debug(_("Parsing input: %s"), message.text) tasks.append(self.eventloop.cr...
https://github.com/opsdroid/opsdroid/issues/867
DEBUG opsdroid.connector.websocket: Starting Websocket connector INFO opsdroid.core: Opsdroid is now running, press ctrl+c to exit. INFO opsdroid.web: Started web server on http://127.0.0.1:8080 INFO aiohttp.access: 127.0.0.1 [07/Mar/2019:14:35:22 +0000] "POST /connector/websocket HTTP/1.1" 200 220 "-" "-" DEBUG opsdro...
AttributeError
def __init__(self, config, opsdroid=None): """Create the connector. Args: config (dict): configuration settings from the file config.yaml. """ _LOGGER.debug("Loaded telegram connector") super().__init__(config, opsdroid=opsdroid) self.name = "telegram" self.opsdroid = o...
def __init__(self, config, opsdroid=None): """Create the connector. Args: config (dict): configuration settings from the file config.yaml. """ _LOGGER.debug("Loaded telegram connector") super().__init__(config, opsdroid=opsdroid) self.name = "telegram" self.opsdroid = o...
https://github.com/opsdroid/opsdroid/issues/840
DEBUG opsdroid.connector.telegram: {'update_id': 539000683, 'channel_post': {'message_id': 15, 'chat': {'id': -1002528219498, 'title': 'vLab', 'type': 'channel'}, 'date': 1550000742, 'text': 'hi'}} DEBUG opsdroid.connector.telegram: {'update_id': 539026984, 'message': {'message_id': 53, 'from': {'id': 452280388, 'is_bo...
KeyError
async def connect(self): """Connect to Telegram. This method is not an authorization call. It basically checks if the API token was provided and makes an API call to Telegram and evaluates the status of the call. """ _LOGGER.debug("Connecting to telegram") self.session = aiohttp.ClientSess...
async def connect(self): """Connect to Telegram. This method is not an authorization call. It basically checks if the API token was provided and makes an API call to Telegram and evaluates the status of the call. """ _LOGGER.debug("Connecting to telegram") async with aiohttp.ClientSession(...
https://github.com/opsdroid/opsdroid/issues/840
DEBUG opsdroid.connector.telegram: {'update_id': 539000683, 'channel_post': {'message_id': 15, 'chat': {'id': -1002528219498, 'title': 'vLab', 'type': 'channel'}, 'date': 1550000742, 'text': 'hi'}} DEBUG opsdroid.connector.telegram: {'update_id': 539026984, 'message': {'message_id': 53, 'from': {'id': 452280388, 'is_bo...
KeyError
async def _parse_message(self, response): """Handle logic to parse a received message. Since everyone can send a private message to any user/bot in Telegram, this method allows to set a list of whitelisted users that can interact with the bot. If any other user tries to interact with the bot the co...
async def _parse_message(self, response): """Handle logic to parse a received message. Since everyone can send a private message to any user/bot in Telegram, this method allows to set a list of whitelisted users that can interact with the bot. If any other user tries to interact with the bot the co...
https://github.com/opsdroid/opsdroid/issues/840
DEBUG opsdroid.connector.telegram: {'update_id': 539000683, 'channel_post': {'message_id': 15, 'chat': {'id': -1002528219498, 'title': 'vLab', 'type': 'channel'}, 'date': 1550000742, 'text': 'hi'}} DEBUG opsdroid.connector.telegram: {'update_id': 539026984, 'message': {'message_id': 53, 'from': {'id': 452280388, 'is_bo...
KeyError
async def _get_messages(self): """Connect to the Telegram API. Uses an aiohttp ClientSession to connect to Telegram API and get the latest messages from the chat service. The data["offset"] is used to consume every new message, the API returns an int - "update_id" value. In order to get the next ...
async def _get_messages(self): """Connect to the Telegram API. Uses an aiohttp ClientSession to connect to Telegram API and get the latest messages from the chat service. The data["offset"] is used to consume every new message, the API returns an int - "update_id" value. In order to get the next ...
https://github.com/opsdroid/opsdroid/issues/840
DEBUG opsdroid.connector.telegram: {'update_id': 539000683, 'channel_post': {'message_id': 15, 'chat': {'id': -1002528219498, 'title': 'vLab', 'type': 'channel'}, 'date': 1550000742, 'text': 'hi'}} DEBUG opsdroid.connector.telegram: {'update_id': 539026984, 'message': {'message_id': 53, 'from': {'id': 452280388, 'is_bo...
KeyError
async def listen(self): """Listen method of the connector. Every connector has to implement the listen method. When an infinite loop is running, it becomes hard to cancel this task. So we are creating a task and set it on a variable so we can cancel the task. """ message_getter = self.loop...
async def listen(self): """Listen for and parse new messages. The bot will always listen to all opened chat windows, as long as opsdroid is running. Since anyone can start a new chat with the bot is recommended that a list of users to be whitelisted be provided in config.yaml. The method will ...
https://github.com/opsdroid/opsdroid/issues/840
DEBUG opsdroid.connector.telegram: {'update_id': 539000683, 'channel_post': {'message_id': 15, 'chat': {'id': -1002528219498, 'title': 'vLab', 'type': 'channel'}, 'date': 1550000742, 'text': 'hi'}} DEBUG opsdroid.connector.telegram: {'update_id': 539026984, 'message': {'message_id': 53, 'from': {'id': 452280388, 'is_bo...
KeyError
async def respond(self, message, room=None): """Respond with a message. Args: message (object): An instance of Message. room (string, optional): Name of the room to respond to. """ _LOGGER.debug("Responding with: %s", message.text) data = dict() data["chat_id"] = message.room[...
async def respond(self, message, room=None): """Respond with a message. Args: message (object): An instance of Message. room (string, optional): Name of the room to respond to. """ _LOGGER.debug("Responding with: %s", message.text) async with aiohttp.ClientSession() as session: ...
https://github.com/opsdroid/opsdroid/issues/840
DEBUG opsdroid.connector.telegram: {'update_id': 539000683, 'channel_post': {'message_id': 15, 'chat': {'id': -1002528219498, 'title': 'vLab', 'type': 'channel'}, 'date': 1550000742, 'text': 'hi'}} DEBUG opsdroid.connector.telegram: {'update_id': 539026984, 'message': {'message_id': 53, 'from': {'id': 452280388, 'is_bo...
KeyError
async def connect(self): """Connect to the chat service.""" _LOGGER.info("Connecting to Slack") try: connection = await self.slacker.rtm.start() self.websocket = await websockets.connect(connection.body["url"]) _LOGGER.debug("Connected as %s", self.bot_name) _LOGGER.debug("...
async def connect(self): """Connect to the chat service.""" _LOGGER.info("Connecting to Slack") try: connection = await self.slacker.rtm.start() self.websocket = await websockets.connect(connection.body["url"]) _LOGGER.debug("Connected as %s", self.bot_name) _LOGGER.debug("...
https://github.com/opsdroid/opsdroid/issues/764
Traceback (most recent call last): File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code ...
slacker.Error
async def listen(self): """Listen for and parse new messages.""" while self.listening: try: await self.receive_from_websocket() except AttributeError: break
async def listen(self): """Listen for and parse new messages.""" while self.listening: await self.receive_from_websocket()
https://github.com/opsdroid/opsdroid/issues/764
Traceback (most recent call last): File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code ...
slacker.Error
def __init__(self): """Start opsdroid.""" self.bot_name = "opsdroid" self.sys_status = 0 self.connectors = [] self.connector_tasks = [] self.eventloop = asyncio.get_event_loop() for sig in (signal.SIGINT, signal.SIGTERM): self.eventloop.add_signal_handler(sig, self.stop) self.ski...
def __init__(self): """Start opsdroid.""" self.bot_name = "opsdroid" self.sys_status = 0 self.connectors = [] self.connector_tasks = [] self.eventloop = asyncio.get_event_loop() self.skills = [] self.memory = Memory() self.loader = Loader(self) self.config = {} self.stats = {...
https://github.com/opsdroid/opsdroid/issues/247
^CERROR asyncio: Task exception was never retrieved future: <Task finished coro=<ConnectorShell.listen() done, defined at /root/.opsdroid/modules/opsdroid-modules/connector/shell/__init__.py:57> exception=ConnectionResetError('Connection lost',)> Traceback (most recent call last): File "/usr/local/lib/python3.5/asyncio...
ConnectionResetError
def stop(self): """Stop the event loop.""" pending = asyncio.Task.all_tasks() for task in pending: task.cancel() self.eventloop.stop() print("") # Prints a character return for return to shell _LOGGER.info("Keyboard interrupt, exiting.")
def stop(self): """Stop the event loop.""" pending = asyncio.Task.all_tasks() for task in pending: task.cancel() self.eventloop.stop()
https://github.com/opsdroid/opsdroid/issues/247
^CERROR asyncio: Task exception was never retrieved future: <Task finished coro=<ConnectorShell.listen() done, defined at /root/.opsdroid/modules/opsdroid-modules/connector/shell/__init__.py:57> exception=ConnectionResetError('Connection lost',)> Traceback (most recent call last): File "/usr/local/lib/python3.5/asyncio...
ConnectionResetError