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 load(config_details): """Load the configuration from a working directory and a list of configuration files. Files are loaded in order, and merged on top of each other to create the final configuration. Return a fully interpolated, extended and validated configuration. """ def build_servic...
def load(config_details): """Load the configuration from a working directory and a list of configuration files. Files are loaded in order, and merged on top of each other to create the final configuration. Return a fully interpolated, extended and validated configuration. """ def build_servic...
https://github.com/docker/compose/issues/2203
Traceback (most recent call last): File "<string>", line 3, in <module> File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 53, in main File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 23, in sys_dispatch File "/compose/build/docker-compose/out00-PYZ.pyz/compose....
TypeError
def load_file(filename, config): processed_config = interpolate_environment_variables(config) validate_against_fields_schema(processed_config) return [ build_service(filename, name, service_config) for name, service_config in processed_config.items() ]
def load_file(filename, config): processed_config = pre_process_config(config) validate_against_fields_schema(processed_config) return [ build_service(filename, name, service_config) for name, service_config in processed_config.items() ]
https://github.com/docker/compose/issues/2203
Traceback (most recent call last): File "<string>", line 3, in <module> File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 53, in main File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 23, in sys_dispatch File "/compose/build/docker-compose/out00-PYZ.pyz/compose....
TypeError
def validate_and_construct_extends(self): extends = self.service_dict["extends"] if not isinstance(extends, dict): extends = {"service": extends} validate_extends_file_path(self.service_name, extends, self.filename) self.extended_config_path = self.get_extended_config_path(extends) self.ext...
def validate_and_construct_extends(self): extends = self.service_dict["extends"] if not isinstance(extends, dict): extends = {"service": extends} validate_extends_file_path(self.service_name, extends, self.filename) self.extended_config_path = self.get_extended_config_path(extends) self.ext...
https://github.com/docker/compose/issues/2203
Traceback (most recent call last): File "<string>", line 3, in <module> File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 53, in main File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 23, in sys_dispatch File "/compose/build/docker-compose/out00-PYZ.pyz/compose....
TypeError
def validate_service_names(config): for service_name in config.keys(): if not isinstance(service_name, six.string_types): raise ConfigurationError( "Service name: {} needs to be a string, eg '{}'".format( service_name, service_name ) ...
def validate_service_names(func): @wraps(func) def func_wrapper(config): for service_name in config.keys(): if type(service_name) is int: raise ConfigurationError( "Service name: {} needs to be a string, eg '{}'".format( service_nam...
https://github.com/docker/compose/issues/2203
Traceback (most recent call last): File "<string>", line 3, in <module> File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 53, in main File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 23, in sys_dispatch File "/compose/build/docker-compose/out00-PYZ.pyz/compose....
TypeError
def validate_top_level_object(config): if not isinstance(config, dict): raise ConfigurationError( "Top level object needs to be a dictionary. Check your .yml file " "that you have defined a service at the top level." ) validate_service_names(config)
def validate_top_level_object(func): @wraps(func) def func_wrapper(config): if not isinstance(config, dict): raise ConfigurationError( "Top level object needs to be a dictionary. Check your .yml file that you have defined a service at the top level." ) ret...
https://github.com/docker/compose/issues/2203
Traceback (most recent call last): File "<string>", line 3, in <module> File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 53, in main File "/compose/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 23, in sys_dispatch File "/compose/build/docker-compose/out00-PYZ.pyz/compose....
TypeError
def friendly_error_message(): try: yield except SSLError as e: raise errors.UserError("SSL error: %s" % e) except ConnectionError: if call_silently(["which", "docker"]) != 0: if is_mac(): raise errors.DockerNotFoundMac() elif is_ubuntu(): ...
def friendly_error_message(): try: yield except SSLError as e: raise errors.UserError("SSL error: %s" % e) except ConnectionError: if call_silently(["which", "docker"]) != 0: if is_mac(): raise errors.DockerNotFoundMac() elif is_ubuntu(): ...
https://github.com/docker/compose/issues/2133
Traceback (most recent call last): File "C:\Python27\Scripts\docker-compose-script.py", line 9, in <module> load_entry_point('docker-compose==1.5.0.dev0', 'console_scripts', 'docker-compose')() File "C:\Python27\lib\site-packages\compose\cli\main.py", line 51, in main command.sys_dispatch() File "C:\Python27\lib\site-p...
AttributeError
def loop(self): self._init_readers() while self._num_running > 0: try: item, exception = self.queue.get(timeout=0.1) if exception: raise exception if item is STOP: self._num_running -= 1 else: yield item ...
def loop(self): self._init_readers() while self._num_running > 0: try: item, exception = self.queue.get(timeout=0.1) if exception: raise exception if item is STOP: self._num_running -= 1 else: yield item ...
https://github.com/docker/compose/issues/189
^CGracefully stopping... (press Ctrl+C again to force) Stopping dailylead_db_1... Stopping dailylead_queue_1... Traceback (most recent call last): File "<string>", line 3, in <module> File "/Users/ben/fig/build/fig/out00-PYZ.pyz/fig.cli.main", line 39, in main File "/Users/ben/fig/build/fig/out00-PYZ.pyz/fig.cli.docopt...
thread.error
def resolve_extends(self, service_dict): if "extends" not in service_dict: return service_dict extends_options = self.validate_extends_options( service_dict["name"], service_dict["extends"] ) if self.working_dir is None: raise Exception("No working_dir passed to ServiceLoader()...
def resolve_extends(self, service_dict): if "extends" not in service_dict: return service_dict extends_options = self.validate_extends_options( service_dict["name"], service_dict["extends"] ) if self.working_dir is None: raise Exception("No working_dir passed to ServiceLoader()...
https://github.com/docker/compose/issues/1826
$ docker-compose up -d Traceback (most recent call last): File "/Users/aanand/.virtualenvs/docker-compose/bin/docker-compose", line 9, in <module> load_entry_point('docker-compose==1.4.0.dev0', 'console_scripts', 'docker-compose')() File "/Users/aanand/work/docker/compose/compose/cli/main.py", line 39, in main command....
KeyError
def create_container( self, one_off=False, insecure_registry=False, do_build=True, intermediate_container=None, **override_options, ): """ Create a container for this service. If the image doesn't exist, attempt to pull it. """ container_options = self._get_container_create_o...
def create_container( self, one_off=False, insecure_registry=False, do_build=True, intermediate_container=None, **override_options, ): """ Create a container for this service. If the image doesn't exist, attempt to pull it. """ container_options = self._get_container_create_o...
https://github.com/docker/compose/issues/923
Pulling image 50ff1e85c429:latest... Pulling repository 50ff1e85c429 Traceback (most recent call last): File "<string>", line 3, in <module> File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 31, in main File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", li...
compose.progress_stream.StreamOutputError
def _get_container_create_options( self, override_options, one_off=False, intermediate_container=None ): container_options = dict( (k, self.options[k]) for k in DOCKER_CONFIG_KEYS if k in self.options ) container_options.update(override_options) container_options["name"] = self._next_contai...
def _get_container_create_options( self, override_options, one_off=False, intermediate_container=None ): container_options = dict( (k, self.options[k]) for k in DOCKER_CONFIG_KEYS if k in self.options ) container_options.update(override_options) container_options["name"] = self._next_contai...
https://github.com/docker/compose/issues/923
Pulling image 50ff1e85c429:latest... Pulling repository 50ff1e85c429 Traceback (most recent call last): File "<string>", line 3, in <module> File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 31, in main File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", li...
compose.progress_stream.StreamOutputError
def pull(self, insecure_registry=False): if "image" not in self.options: return repo, tag = parse_repository_tag(self.options["image"]) tag = tag or "latest" log.info("Pulling %s (%s:%s)..." % (self.name, repo, tag)) output = self.client.pull( repo, tag=tag, stream=True, insecure_re...
def pull(self, insecure_registry=False): if "image" in self.options: image_name = self._get_image_name(self.options["image"]) log.info("Pulling %s (%s)..." % (self.name, image_name)) self.client.pull(image_name, insecure_registry=insecure_registry)
https://github.com/docker/compose/issues/923
Pulling image 50ff1e85c429:latest... Pulling repository 50ff1e85c429 Traceback (most recent call last): File "<string>", line 3, in <module> File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 31, in main File "/Users/ben/fig/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", li...
compose.progress_stream.StreamOutputError
def run(self, project, options): """ Run a one-off command on a service. For example: $ docker-compose run web python manage.py shell By default, linked services will be started, unless they are already running. If you do not want to start linked services, use `docker-compose run --no...
def run(self, project, options): """ Run a one-off command on a service. For example: $ docker-compose run web python manage.py shell By default, linked services will be started, unless they are already running. If you do not want to start linked services, use `docker-compose run --no...
https://github.com/docker/compose/issues/927
$ fig run -e BLA=bla bliep Traceback (most recent call last): File "/usr/local/bin/fig", line 9, in <module> load_entry_point('fig==1.0.1', 'console_scripts', 'fig')() File "/usr/local/lib/python2.7/site-packages/fig/cli/main.py", line 31, in main command.sys_dispatch() File "/usr/local/lib/python2.7/site-packages/fig/...
TypeError
def _get_container_create_options(self, override_options, one_off=False): container_options = dict( (k, self.options[k]) for k in DOCKER_CONFIG_KEYS if k in self.options ) container_options.update(override_options) container_options["name"] = self._next_container_name( self.containers(s...
def _get_container_create_options(self, override_options, one_off=False): container_options = dict( (k, self.options[k]) for k in DOCKER_CONFIG_KEYS if k in self.options ) container_options.update(override_options) container_options["name"] = self._next_container_name( self.containers(s...
https://github.com/docker/compose/issues/927
$ fig run -e BLA=bla bliep Traceback (most recent call last): File "/usr/local/bin/fig", line 9, in <module> load_entry_point('fig==1.0.1', 'console_scripts', 'fig')() File "/usr/local/lib/python2.7/site-packages/fig/cli/main.py", line 31, in main command.sys_dispatch() File "/usr/local/lib/python2.7/site-packages/fig/...
TypeError
def from_n3(s, default=None, backend=None, nsm=None): r''' Creates the Identifier corresponding to the given n3 string. >>> from_n3('<http://ex.com/foo>') == URIRef('http://ex.com/foo') True >>> from_n3('"foo"@de') == Literal('foo', lang='de') True >>> from_n3('"""multi\...
def from_n3(s, default=None, backend=None, nsm=None): r''' Creates the Identifier corresponding to the given n3 string. >>> from_n3('<http://ex.com/foo>') == URIRef('http://ex.com/foo') True >>> from_n3('"foo"@de') == Literal('foo', lang='de') True >>> from_n3('"""multi\...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def ComponentTerms(cls): """ Takes a Class instance and returns a generator over the classes that are involved in its definition, ignoring unnamed classes """ if OWL_NS.Restriction in cls.type: try: cls = CastClass(cls, Individual.factoryGraph) for s, p, innerClsId in...
def ComponentTerms(cls): """ Takes a Class instance and returns a generator over the classes that are involved in its definition, ignoring unamed classes """ if OWL_NS.Restriction in cls.type: try: cls = CastClass(cls, Individual.factoryGraph) for s, p, innerClsId in ...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def title(self): # overrides unicode.title to allow DCTERMS.title for example return URIRef(self + "title")
def title(self): return URIRef(self + "title")
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def term(self, name): uri = self.__uris.get(name) if uri is None: raise Exception("term '%s' not in namespace '%s'" % (name, self)) else: return uri
def term(self, name): uri = self.__uris.get(name) if uri is None: raise Exception("term '%s' not in namespace '%s'" % (name, self.uri)) else: return uri
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def __repr__(self): return """rdf.namespace.ClosedNamespace('%s')""" % self
def __repr__(self): return """rdf.namespace.ClosedNamespace('%s')""" % str(self.uri)
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def term(self, name): try: i = int(name) return URIRef("%s_%s" % (self, i)) except ValueError: return super(_RDFNamespace, self).term(name)
def term(self, name): try: i = int(name) return URIRef("%s_%s" % (self.uri, i)) except ValueError: return super(_RDFNamespace, self).term(name)
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def __new__(cls): return ClosedNamespace.__new__( cls, "http://www.w3.org/1999/02/22-rdf-syntax-ns#", terms=[ # Syntax Names "RDF", "Description", "ID", "about", "parseType", "resource", "li", ...
def __new__(cls, value): try: rt = unicode.__new__(cls, value) except UnicodeDecodeError: rt = unicode.__new__(cls, value, "utf-8") return rt
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def __init__(self, system_id=None): xmlreader.InputSource.__init__(self, system_id=system_id) self.content_type = None self.auto_close = False # see Graph.parse(), true if opened by us
def __init__(self, system_id=None): xmlreader.InputSource.__init__(self, system_id=system_id) self.content_type = None
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def create_input_source( source=None, publicID=None, location=None, file=None, data=None, format=None ): """ Return an appropriate InputSource instance for the given parameters. """ # test that exactly one of source, location, file, and data is not None. if ( sum( ( ...
def create_input_source( source=None, publicID=None, location=None, file=None, data=None, format=None ): """ Return an appropriate InputSource instance for the given parameters. """ # TODO: test that exactly one of source, location, file, and data # is not None. input_source = None ...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def __init__(self, name): """ @param name: URL to be opened @keyword additional_headers: additional HTTP request headers to be added to the call """ try: # Note the removal of the fragment ID. This is necessary, per the HTTP spec req = Request(url=name.split("#")[0]) req.add...
def __init__(self, name): """ @param name: URL to be opened @keyword additional_headers: additional HTTP request headers to be added to the call """ try: # Note the removal of the fragment ID. This is necessary, per the HTTP spec req = Request(url=name.split("#")[0]) req.add...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def html5_extra_attributes(node, state): """ @param node: the current node that could be modified @param state: current state @type state: L{Execution context<pyRdfa.state.ExecutionContext>} """ def _get_literal(Pnode): """ Get (recursively) the full text from a DOM Node. ...
def html5_extra_attributes(node, state): """ @param node: the current node that could be modified @param state: current state @type state: L{Execution context<pyRdfa.state.ExecutionContext>} """ def _get_literal(Pnode): """ Get (recursively) the full text from a DOM Node. ...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def _get_literal(Pnode): """ Get (recursively) the full text from a DOM Node. @param Pnode: DOM Node @return: string """ rc = "" for node in Pnode.childNodes: if node.nodeType == node.TEXT_NODE: rc = rc + node.data elif node.nodeType == node.ELEMENT_NODE: ...
def _get_literal(Pnode): """ Get (recursively) the full text from a DOM Node. @param Pnode: DOM Node @return: string """ rc = "" for node in Pnode.childNodes: if node.nodeType == node.TEXT_NODE: rc = rc + node.data elif node.nodeType == node.ELEMENT_NODE: ...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def generate_1_1(self): """Generate the property object, 1.1 version""" ######################################################################### # See if the target is _not_ a literal irirefs = ("resource", "href", "src") noiri = ("content", "datatype", "rel", "rev") notypediri = ("content", "...
def generate_1_1(self): """Generate the property object, 1.1 version""" ######################################################################### # See if the target is _not_ a literal irirefs = ("resource", "href", "src") noiri = ("content", "datatype", "rel", "rev") notypediri = ("content", "...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def generate_1_0(self): """Generate the property object, 1.0 version""" ######################################################################### # We have to generate a literal indeed. # Get, if exists, the value of @datatype datatype = "" dtset = False if self.node.hasAttribute("datatype"...
def generate_1_0(self): """Generate the property object, 1.0 version""" ######################################################################### # We have to generate a literal indeed. # Get, if exists, the value of @datatype datatype = "" dtset = False if self.node.hasAttribute("datatype"...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def evalPart(ctx, part): # try custom evaluation functions for name, c in CUSTOM_EVALS.items(): try: return c(ctx, part) except NotImplementedError: pass # the given custome-function did not handle this part if part.name == "BGP": # Reorder triples patterns ...
def evalPart(ctx, part): # try custom evaluation functions for name, c in CUSTOM_EVALS.items(): try: return c(ctx, part) except NotImplementedError: pass # the given custome-function did not handle this part if part.name == "BGP": return evalBGP(ctx, part.tr...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def evalQuery(graph, query, initBindings, base=None): ctx = QueryContext(graph) ctx.prologue = query.prologue main = query.algebra if initBindings: # add initBindings as a values clause values = {} # no dict comprehension in 2.6 :( for k, v in initBindings.iteritems(): ...
def evalQuery(graph, query, initBindings, base=None): ctx = QueryContext(graph) ctx.prologue = query.prologue if initBindings: for k, v in initBindings.iteritems(): if not isinstance(k, Variable): k = Variable(k) ctx[k] = v # ctx.push() # nescessary...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def absolutize(self, iri): """ Apply BASE / PREFIXes to URIs (and to datatypes in Literals) TODO: Move resolving URIs to pre-processing """ if isinstance(iri, CompValue): if iri.name == "pname": return self.resolvePName(iri.prefix, iri.localname) if iri.name == "lit...
def absolutize(self, iri): """ Apply BASE / PREFIXes to URIs (and to datatypes in Literals) TODO: Move resolving URIs to pre-processing """ if isinstance(iri, CompValue): if iri.name == "pname": return self.resolvePName(iri.prefix, iri.localname) if iri.name == "lit...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def __getitem__(self, item): if isinstance(item, slice): if item.step: raise TypeError( "Resources fix the subject for slicing, and can only be sliced by predicate/object. " ) p, o = item.start, item.stop if isinstance(p, Resource): p = p._...
def __getitem__(self, item): if isinstance(item, slice): if item.step: raise TypeError( "Resources fix the subject for slicing, and can only be sliced by predicate/object. " ) p, o = item.start, item.stop if p is None and o is None: return ...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def setup_python3(): # Taken from "distribute" setup.py from distutils.filelist import FileList from distutils import dir_util, file_util, util, log from os.path import join, exists tmp_src = join("build", "src") # Not covered by "setup.py clean --all", so explicit deletion required. if exi...
def setup_python3(): # Taken from "distribute" setup.py from distutils.filelist import FileList from distutils import dir_util, file_util, util, log from os.path import join, exists tmp_src = join("build", "src") # Not covered by "setup.py clean --all", so explicit deletion required. if exi...
https://github.com/RDFLib/rdflib/issues/546
from rdflib.util import from_n3 sample = "\"Sample string with trailing backslash\\\"^^xsd:string" from_n3(sample) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/rdflib/util.py", line 183, in from_n3 value = value.encode("raw-unicode-escape").decode("unicod...
UnicodeDecodeError
def create_input_source( source=None, publicID=None, location=None, file=None, data=None, format=None ): """ Return an appropriate InputSource instance for the given parameters. """ # TODO: test that exactly one of source, location, file, and data # is not None. input_source = None ...
def create_input_source( source=None, publicID=None, location=None, file=None, data=None, format=None ): """ Return an appropriate InputSource instance for the given parameters. """ # TODO: test that exactly one of source, location, file, and data # is not None. input_source = None ...
https://github.com/RDFLib/rdflib/issues/285
Traceback (most recent call last): File "<string>", line 4, in <module> ... File ".../rdflib/term.py", line 208, in __new__ raise Exception('%s does not look like a valid URI, perhaps you want to urlencode it?'%value) Exception: file:///private/tmp/<stdin> does not look like a valid URI, perhaps you want to urlencode i...
Exception
def compute_qname(self, uri, generate=True): if not _is_valid_uri(uri): raise Exception( '"%s" does not look like a valid URI, I cannot serialize this. Perhaps you wanted to urlencode it?' % uri ) if not uri in self.__cache: namespace, name = split_uri(uri) ...
def compute_qname(self, uri, generate=True): if not uri in self.__cache: namespace, name = split_uri(uri) namespace = URIRef(namespace) prefix = self.store.prefix(namespace) if prefix is None: if not generate: raise Exception("No known prefix for %s and ge...
https://github.com/RDFLib/rdflib/issues/285
Traceback (most recent call last): File "<string>", line 4, in <module> ... File ".../rdflib/term.py", line 208, in __new__ raise Exception('%s does not look like a valid URI, perhaps you want to urlencode it?'%value) Exception: file:///private/tmp/<stdin> does not look like a valid URI, perhaps you want to urlencode i...
Exception
async def checkData(tweet, location, config, conn): usernames = [] copyright = tweet.find("div", "StreamItemContent--withheld") if copyright is None and is_tweet(tweet): tweet = Tweet(tweet, location, config) if not tweet.datestamp: print("[x] Hidden tweet found, account suspend...
async def checkData(tweet, location, config, conn): usernames = [] user_ids = set() global _duplicate_dict copyright = tweet.find("div", "StreamItemContent--withheld") if copyright is None and is_tweet(tweet): tweet = Tweet(tweet, location, config) if datecheck(tweet.datestamp, config):...
https://github.com/twintproject/twint/issues/321
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/dist-packages/twint-1.2.1-py3.6.egg/twint/run.py", line 215, in Search File "/usr/local/lib/python3.6/dist-packages/twint-1.2.1-py3.6.egg/twint/run.py", line 167, in run File "/usr/lib/python3.6/asyncio/base_events.py"...
TypeError
def _output(obj, output, config, **extra): # logging.info("[<] " + str(datetime.now()) + ':: output+_output') if config.Lowercase: if isinstance(obj, str): obj = obj.lower() elif str(type(obj)) == "<class 'twint.user.user'>": pass else: obj.username = ...
def _output(obj, output, config, **extra): # logging.info("[<] " + str(datetime.now()) + ':: output+_output') if config.Lowercase: if isinstance(obj, str): obj = obj.lower() elif str(type(obj)) == "<class 'twint.user.user'>": pass else: obj.username = ...
https://github.com/twintproject/twint/issues/283
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin Type "help", "copyright", "credits" or "license" for more information. import twint c = twint.Config() query= 'bar' c.Search = query c.Pandas = True twint.run.Search(c) Traceback (most re...
AttributeError
def update(object, config): global _type try: _type = (object.type == "tweet") * "tweet" + (object.type == "user") * "user" except AttributeError: _type = config.Following * "following" + config.Followers * "followers" if _type == "tweet": Tweet = object day = weekdays[...
def update(object, config): global _type try: _type = (object.type == "tweet") * "tweet" + (object.type == "user") * "user" except AttributeError: _type = config.Following * "following" + config.Followers * "followers" if _type == "tweet": dt = f"{object.datestamp} {object.time...
https://github.com/twintproject/twint/issues/283
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin Type "help", "copyright", "credits" or "license" for more information. import twint c = twint.Config() query= 'bar' c.Search = query c.Pandas = True twint.run.Search(c) Traceback (most re...
AttributeError
def update(Tweet, session): day = weekday(strftime("%A", localtime(Tweet.datetime))) dt = "{} {}".format(Tweet.datestamp, Tweet.timestamp) _data = { "id": Tweet.id, "date": dt, "timezone": Tweet.timezone, "location": Tweet.location, "tweet": Tweet.tweet, "has...
def update(Tweet, session): day = weekday(strftime("%A", localtime(Tweet.datetime))) dt = "{} {}".format(Tweet.datestamp, Tweet.timestamp) _data = { "id": Tweet.id, "date": dt, "timezone": Tweet.timezone, "location": Tweet.location, "tweet": Tweet.tweet, "has...
https://github.com/twintproject/twint/issues/152
Traceback (most recent call last): File "/path/to/my/script.py", line 21, in <module> twint.run.Search(c) File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/run.py", line 25, in Search run(search.Search(config).main()) File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/run.py", l...
UnicodeEncodeError
def _output(obj, output, config): if config.Output != None: if config.Store_csv: write.Csv(obj, config) elif config.Store_json: write.Json(obj, config) else: write.Text(output, config.Output) if config.Pandas: Pandas.update(obj, config.Essid) ...
def _output(obj, output, config): if config.Output != None: if config.Store_csv: write.Csv(obj, config) elif config.Store_json: write.Json(obj, config) else: write.Text(output, config.Output) if config.Pandas: Pandas.update(obj, config.Essid) ...
https://github.com/twintproject/twint/issues/152
Traceback (most recent call last): File "/path/to/my/script.py", line 21, in <module> twint.run.Search(c) File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/run.py", line 25, in Search run(search.Search(config).main()) File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/run.py", l...
UnicodeEncodeError
def __str__(self): cls = self.obj.__class__ schema_path = ["{}.{}".format(cls.__module__, cls.__name__)] schema_path.extend(self.schema_path) schema_path = "->".join( str(val) for val in schema_path[:-1] if val not in ("properties", "additionalProperties", "patternProperties") ...
def __str__(self): cls = self.obj.__class__ schema_path = ["{}.{}".format(cls.__module__, cls.__name__)] schema_path.extend(self.schema_path) schema_path = "->".join( val for val in schema_path[:-1] if val not in ("properties", "additionalProperties", "patternProperties") ) ...
https://github.com/altair-viz/altair/issues/1935
$ cat test.py import pandas, altair d = [{'WijkenEnBuurten': 'Nederland', 'Codering_3': 'NL00', 'Mannen_6': 8475102, 'Vrouwen_7': 8606405, 'SoortRegio_2': 'Land ', 'GeboorteRelatief_25': 9}, {'WijkenEnBuurten': 'Aa en Hunze', 'Codering_3': 'GM1680', 'Mannen_6': 12603, 'Vrouwen_7': 12683, 'SoortRegio_2': 'Gemeente...
altair.utils.schemapi.SchemaValidationError
def __getattr__(self, attr): # reminder: getattr is called after the normal lookups if attr == "_kwds": raise AttributeError() if attr in self._kwds: return self._kwds[attr] else: try: _getattr = super(SchemaBase, self).__getattr__ except AttributeError: ...
def __getattr__(self, attr): # reminder: getattr is called after the normal lookups if attr in self._kwds: return self._kwds[attr] else: try: _getattr = super(SchemaBase, self).__getattr__ except AttributeError: _getattr = super(SchemaBase, self).__getattribut...
https://github.com/altair-viz/altair/issues/1681
(py36) C:\Develop\plab>python sandbox\test_altair_pickle.py Traceback (most recent call last): File "sandbox\test_altair_pickle.py", line 15, in <module> pch = pickle.load(fid) File "C:\opt\Anaconda3\envs\py36\lib\site-packages\altair\utils\schemapi.py", line 213, in __getattr__ if attr in self._kwds: File "C:\opt\Anac...
RecursionError
def _subclasses(cls): """Breadth-first sequence of all classes which inherit from cls.""" seen = set() current_set = {cls} while current_set: seen |= current_set current_set = set.union(*(set(cls.__subclasses__()) for cls in current_set)) for cls in current_set - seen: ...
def _subclasses(cls): """Breadth-first sequence of classes which inherit from cls.""" seen = set() current_set = {cls} while current_set: seen |= current_set current_set = set.union(*(set(cls.__subclasses__()) for cls in current_set)) for cls in current_set - seen: yi...
https://github.com/altair-viz/altair/issues/1681
(py36) C:\Develop\plab>python sandbox\test_altair_pickle.py Traceback (most recent call last): File "sandbox\test_altair_pickle.py", line 15, in <module> pch = pickle.load(fid) File "C:\opt\Anaconda3\envs\py36\lib\site-packages\altair\utils\schemapi.py", line 213, in __getattr__ if attr in self._kwds: File "C:\opt\Anac...
RecursionError
def from_dict(self, dct, cls=None, schema=None, rootschema=None): """Construct an object from a dict representation""" if (schema is None) == (cls is None): raise ValueError("Must provide either cls or schema, but not both.") if schema is None: schema = schema or cls._schema rootsche...
def from_dict(self, dct, cls=None, schema=None, rootschema=None): """Construct an object from a dict representation""" if (schema is None) == (cls is None): raise ValueError("Must provide either cls or schema, but not both.") if schema is None: schema = schema or cls._schema rootsche...
https://github.com/altair-viz/altair/issues/1681
(py36) C:\Develop\plab>python sandbox\test_altair_pickle.py Traceback (most recent call last): File "sandbox\test_altair_pickle.py", line 15, in <module> pch = pickle.load(fid) File "C:\opt\Anaconda3\envs\py36\lib\site-packages\altair\utils\schemapi.py", line 213, in __getattr__ if attr in self._kwds: File "C:\opt\Anac...
RecursionError
def transform_joinaggregate(self, joinaggregate=Undefined, groupby=Undefined, **kwargs): """ Add a JoinAggregateTransform to the schema. Parameters ---------- joinaggregate : List(:class:`JoinAggregateFieldDef`) The definition of the fields in the join aggregate, and what calculations to us...
def transform_joinaggregate(self, joinaggregate=Undefined, groupby=Undefined, **kwargs): """ Add a JoinAggregateTransform to the schema. Parameters ---------- joinaggregate : List(:class:`JoinAggregateFieldDef`) The definition of the fields in the join aggregate, and what calculations to us...
https://github.com/altair-viz/altair/issues/1750
--------------------------------------------------------------------------- ValidationError Traceback (most recent call last) <ipython-input-142-2bf583dd0be9> in <module>() 5 ).transform_joinaggregate( 6 group_count='count()', ----> 7 groupby=['group'] 8 ).transform_calculate( 9 no...
ValidationError
def spec_to_image_mimebundle( spec, format, mode, vega_version, vegaembed_version, vegalite_version=None, driver_timeout=10, ): """Conver a vega/vega-lite specification to a PNG/SVG image Parameters ---------- spec : dict a dictionary representing a vega-lite plot sp...
def spec_to_image_mimebundle( spec, format, mode, vega_version, vegaembed_version, vegalite_version=None, driver_timeout=10, ): """Conver a vega/vega-lite specification to a PNG/SVG image Parameters ---------- spec : dict a dictionary representing a vega-lite plot sp...
https://github.com/altair-viz/altair/issues/649
--------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-16-c16ecf6573c1> in <module>() ----> 1 chart.savechart('test.png') G:\Software\Anaconda2\envs\py36\lib\site-packages\altair\vegalite\v2\api.py in savech...
PermissionError
def spec_to_image_mimebundle( spec, format, mode, vega_version, vegaembed_version, vegalite_version=None, driver_timeout=10, ): """Conver a vega/vega-lite specification to a PNG/SVG image Parameters ---------- spec : dict a dictionary representing a vega-lite plot sp...
def spec_to_image_mimebundle( spec, format, mode, vega_version, vegaembed_version, vegalite_version=None, driver_timeout=10, ): """Conver a vega/vega-lite specification to a PNG/SVG image Parameters ---------- spec : dict a dictionary representing a vega-lite plot sp...
https://github.com/altair-viz/altair/issues/649
--------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-16-c16ecf6573c1> in <module>() ----> 1 chart.savechart('test.png') G:\Software\Anaconda2\envs\py36\lib\site-packages\altair\vegalite\v2\api.py in savech...
PermissionError
async def async_setup_frontend(): """Configure the HACS frontend elements.""" hacs = get_hacs() hacs.log.info("Setup task %s", HacsSetupTask.FRONTEND) # Custom view hacs.hass.http.register_view(HacsFrontend()) # Custom iconset if "frontend_extra_module_url" not in hacs.hass.data: h...
async def async_setup_frontend(): """Configure the HACS frontend elements.""" hacs = get_hacs() hacs.log.info("Setup task %s", HacsSetupTask.FRONTEND) # Custom view hacs.hass.http.register_view(HacsFrontend()) # Custom iconset if "frontend_extra_module_url" not in hacs.hass.data: h...
https://github.com/hacs/integration/issues/1605
2020-10-27 16:42:22 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry for hacs Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 234, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_co...
ValueError
def create_window( title, url=None, js_api=None, width=800, height=600, resizable=True, fullscreen=False, min_size=(200, 100), strings={}, confirm_quit=False, background_color="#FFFFFF", text_select=False, debug=False, ): """ Create a web view window using a n...
def create_window( title, url=None, js_api=None, width=800, height=600, resizable=True, fullscreen=False, min_size=(200, 100), strings={}, confirm_quit=False, background_color="#FFFFFF", text_select=False, debug=False, ): """ Create a web view window using a n...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def windowWillClose_(self, notification): # Delete the closed instance from the dict i = BrowserView.get_instance("window", notification.object()) del BrowserView.instances[i.uid] if BrowserView.instances == {}: AppHelper.callAfter(BrowserView.app.stop_, self)
def windowWillClose_(self, notification): # Delete the closed instance from the dict i = BrowserView.get_instance("window", notification.object()) del BrowserView.instances[i.uid]
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def webView_didFinishLoadForFrame_(self, webview, frame): # Add the webview to the window if it's not yet the contentView i = BrowserView.get_instance("webkit", webview) if i and not webview.window(): i.window.setContentView_(webview) i.window.makeFirstResponder_(webview) if i.js_b...
def webView_didFinishLoadForFrame_(self, webview, frame): # Add the webview to the window if it's not yet the contentView i = BrowserView.get_instance("webkit", webview) if not webview.window(): i.window.setContentView_(webview) i.window.makeFirstResponder_(webview) if i.js_bridge:...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def performKeyEquivalent_(self, theEvent): """ Handle common hotkey shortcuts as copy/cut/paste/undo/select all/quit :param theEvent: :return: """ if ( theEvent.type() == AppKit.NSKeyDown and theEvent.modifierFlags() & AppKit.NSCommandKeyMask ): responder = self.wind...
def performKeyEquivalent_(self, theEvent): """ Handle common hotkey shortcuts as copy/cut/paste/undo/select all/quit :param theEvent: :return: """ if ( theEvent.type() == AppKit.NSKeyDown and theEvent.modifierFlags() & AppKit.NSCommandKeyMask ): responder = self.wind...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def __init__( self, uid, title, url, width, height, resizable, fullscreen, min_size, confirm_quit, background_color, debug, js_api, text_select, webview_ready, ): BrowserView.instances[uid] = self self.uid = uid if debug: BrowserView.debug...
def __init__( self, uid, title, url, width, height, resizable, fullscreen, min_size, confirm_quit, background_color, debug, js_api, text_select, webview_ready, ): BrowserView.instances[uid] = self self.uid = uid if debug: BrowserView.debug...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def on_inspect_webview(self, inspector, webview): title = "Web Inspector - {}".format(self.window.get_title()) uid = self.uid + "-inspector" inspector = BrowserView( uid, title, "", 700, 500, True, False, (300, 200), False, "#f...
def on_inspect_webview(self, inspector, webview): title = "Web Inspector - {}".format(self.window.get_title()) uid = self.uid + "-inspector" inspector = BrowserView( uid, title, "", 700, 500, True, False, (300, 200), False, "#f...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def evaluate_js(self, script): def _evaluate_js(): self.webview.execute_script(code) result_semaphore.release() self.eval_js_lock.acquire() result_semaphore = Semaphore(0) self.js_result_semaphores.append(result_semaphore) # Backup the doc title and store the result in it with a cus...
def evaluate_js(self, script): def _evaluate_js(): self.webview.execute_script(code) result_semaphore.release() self.eval_js_lock.acquire() result_semaphore = Semaphore(0) self.js_result_semaphores.append(result_semaphore) # Backup the doc title and store the result in it with a cus...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def show_inspector(self): uid = self.parent().uid + "-inspector" try: # If inspector already exists, bring it to the front BrowserView.instances[uid].raise_() BrowserView.instances[uid].activateWindow() except KeyError: title = "Web Inspector - {}".format(self.parent().title)...
def show_inspector(self): uid = self.parent().uid + "-inspector" try: # If inspector already exists, bring it to the front BrowserView.instances[uid].raise_() BrowserView.instances[uid].activateWindow() except KeyError: title = "Web Inspector - {}".format(self.parent().title)...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def closeEvent(self, event): if self.confirm_quit: reply = QMessageBox.question( self, self.title, localization["global.quitConfirmation"], QMessageBox.Yes, QMessageBox.No, ) if reply == QMessageBox.No: event.ignore() ...
def closeEvent(self, event): if self.confirm_quit: reply = QMessageBox.question( self, self.title, localization["global.quitConfirmation"], QMessageBox.Yes, QMessageBox.No, ) if reply == QMessageBox.No: event.ignore() ...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def create_window( uid, title, url, width, height, resizable, fullscreen, min_size, confirm_quit, background_color, debug, js_api, text_select, webview_ready, ): global _app _app = QApplication.instance() or QApplication([]) def _create(): bro...
def create_window( uid, title, url, width, height, resizable, fullscreen, min_size, confirm_quit, background_color, debug, js_api, text_select, webview_ready, ): app = QApplication.instance() or QApplication([]) def _create(): browser = BrowserVie...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def create_window( uid, title, url, width, height, resizable, fullscreen, min_size, confirm_quit, background_color, debug, js_api, text_select, webview_ready, ): def create(): window = BrowserView.BrowserForm( uid, title, ...
def create_window( uid, title, url, width, height, resizable, fullscreen, min_size, confirm_quit, background_color, debug, js_api, text_select, webview_ready, ): def create(): window = BrowserView.BrowserForm( uid, title, ...
https://github.com/r0x0r/pywebview/issues/229
Exception in thread Thread-3: Traceback (most recent call last): File "C:\Program Files\Python36\lib\threading.py", line 916, in _bootstrap_inner self.run() File "C:\Program Files\Python36\lib\threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "ui_pywebview.py", line 23, in create_second_win...
KeyError
def _switch(self, chara, charb): if self._isdigit(chara): return 0, not self._isdigit(charb) if self._isletter(chara): return 1, not self._isletter(charb) return 2, self._isdigit(charb) or self._isletter(charb)
def _switch(self, chara, charb): if self._isdigit(chara): return 0, not self._isdigit(charb) if self._isletter(chara): return 1, not self._isletter(charb) if self._isnonword(chara): return 2, not self._isnonword(charb) return "", True
https://github.com/scrapinghub/dateparser/issues/621
dateparser.parse('Oct 1 2018 4:40 PM EST —') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "dateparser/conf.py", line 82, in wrapper return f(*args, **kwargs) File "dateparser/__init__.py", line 53, in parse data = parser.get_date_data(date_string, date_formats) File "dateparser/date.py", ...
TypeError
def __init__(self, tokens, settings): self.settings = settings self.tokens = list(tokens) self.filtered_tokens = [t for t in self.tokens if t[1] <= 1] self.unset_tokens = [] self.day = None self.month = None self.year = None self.time = None self.auto_order = [] self._token_d...
def __init__(self, tokens, settings): self.settings = settings self.tokens = list(tokens) self.filtered_tokens = [t for t in self.tokens if t[1] <= 1] self.unset_tokens = [] self.day = None self.month = None self.year = None self.time = None self.auto_order = [] self._token_d...
https://github.com/scrapinghub/dateparser/issues/336
Python 3.6.2 (default, Jul 17 2017, 23:14:31) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. import dateparser dateparser.__version__ '0.6.0' dateparser.parse('+38 (0352)') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/amorgun/en...
TypeError
def read_my_cnf_files(self, files, keys): """ Reads a list of config files and merges them. The last one will win. :param files: list of files to read :param keys: list of keys to retrieve :returns: tuple, with None for missing keys. """ cnf = read_config_files(files) sections = ["clien...
def read_my_cnf_files(self, files, keys): """ Reads a list of config files and merges them. The last one will win. :param files: list of files to read :param keys: list of keys to retrieve :returns: tuple, with None for missing keys. """ cnf = read_config_files(files) sections = ["clien...
https://github.com/dbcli/mycli/issues/624
2018-07-22 01:30:33,368 (48024/MainThread) mycli.main ERROR - traceback: 'Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/mycli/main.py", line 445, in connect _connect() File "/usr/local/lib/python3.7/site-packages/mycli/main.py", line 398, in _connect socket, charset, local_infile, ssl)...
TypeError
def get(key): result = None for sect in cnf: if sect in sections and key in cnf[sect]: result = cnf[sect][key] # HACK: if result is a list, then ConfigObj() probably decoded from # string by splitting on comma, so reconstruct string by joining on # comma. if isinstance(result...
def get(key): result = None for sect in cnf: if sect in sections and key in cnf[sect]: result = cnf[sect][key] return result
https://github.com/dbcli/mycli/issues/624
2018-07-22 01:30:33,368 (48024/MainThread) mycli.main ERROR - traceback: 'Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/mycli/main.py", line 445, in connect _connect() File "/usr/local/lib/python3.7/site-packages/mycli/main.py", line 398, in _connect socket, charset, local_infile, ssl)...
TypeError
def extract_from_part(parsed, stop_at_punctuation=True): tbl_prefix_seen = False for item in parsed.tokens: if tbl_prefix_seen: if is_subselect(item): for x in extract_from_part(item, stop_at_punctuation): yield x elif stop_at_punctuation and i...
def extract_from_part(parsed, stop_at_punctuation=True): tbl_prefix_seen = False for item in parsed.tokens: if tbl_prefix_seen: if is_subselect(item): for x in extract_from_part(item, stop_at_punctuation): yield x elif stop_at_punctuation and i...
https://github.com/dbcli/mycli/issues/619
Traceback (most recent call last): File "c:\python37\lib\site-packages\mycli\packages\parseutils.py", line 95, in extract_from_part raise StopIteration StopIteration The above exception was the direct cause of the following exception: Traceback (most recent call last):w to complete suggestion File "c:\python37\lib\th...
RuntimeError
def watch_query(arg, **kwargs): usage = """Syntax: watch [seconds] [-c] query. * seconds: The interval at the query will be repeated, in seconds. By default 5. * -c: Clears the screen between every iteration. """ if not arg: yield (None, None, None, usage) return secon...
def watch_query(arg, **kwargs): usage = """Syntax: watch [seconds] [-c] query. * seconds: The interval at the query will be repeated, in seconds. By default 5. * -c: Clears the screen between every iteration. """ if not arg: yield (None, None, None, usage) raise StopIterat...
https://github.com/dbcli/mycli/issues/619
Traceback (most recent call last): File "c:\python37\lib\site-packages\mycli\packages\parseutils.py", line 95, in extract_from_part raise StopIteration StopIteration The above exception was the direct cause of the following exception: Traceback (most recent call last):w to complete suggestion File "c:\python37\lib\th...
RuntimeError
def initialize_logging(self): log_file = os.path.expanduser(self.config["main"]["log_file"]) log_level = self.config["main"]["log_level"] level_map = { "CRITICAL": logging.CRITICAL, "ERROR": logging.ERROR, "WARNING": logging.WARNING, "INFO": logging.INFO, "DEBUG": lo...
def initialize_logging(self): log_file = self.config["main"]["log_file"] log_level = self.config["main"]["log_level"] level_map = { "CRITICAL": logging.CRITICAL, "ERROR": logging.ERROR, "WARNING": logging.WARNING, "INFO": logging.INFO, "DEBUG": logging.DEBUG, } ...
https://github.com/dbcli/mycli/issues/569
$ mycli Password: localhost:(none)> use test Traceback (most recent call last): File "/home/linuxbrew/.linuxbrew/bin/mycli", line 11, in <module> load_entry_point('mycli==1.16.0', 'console_scripts', 'mycli')() File "/home/linuxbrew/.linuxbrew/Cellar/mycli/1.16.0/libexec/lib/python2.7/site-packages/click/core.py", line ...
IOError
def run_cli(self): iterations = 0 sqlexecute = self.sqlexecute logger = self.logger self.configure_pager() if self.smart_completion: self.refresh_completions() author_file = os.path.join(PACKAGE_ROOT, "AUTHORS") sponsor_file = os.path.join(PACKAGE_ROOT, "SPONSORS") history_fil...
def run_cli(self): iterations = 0 sqlexecute = self.sqlexecute logger = self.logger self.configure_pager() if self.smart_completion: self.refresh_completions() author_file = os.path.join(PACKAGE_ROOT, "AUTHORS") sponsor_file = os.path.join(PACKAGE_ROOT, "SPONSORS") key_binding...
https://github.com/dbcli/mycli/issues/569
$ mycli Password: localhost:(none)> use test Traceback (most recent call last): File "/home/linuxbrew/.linuxbrew/bin/mycli", line 11, in <module> load_entry_point('mycli==1.16.0', 'console_scripts', 'mycli')() File "/home/linuxbrew/.linuxbrew/Cellar/mycli/1.16.0/libexec/lib/python2.7/site-packages/click/core.py", line ...
IOError
def _mount_references(self): """ Find the references that is defined in self.configuration :return: """ self.resources_raw = deepcopy(self.resources) invalid_references = ("var.", "each.") # This section will link resources found in configuration part of the plan output. # The reference...
def _mount_references(self): """ Find the references that is defined in self.configuration :return: """ self.resources_raw = deepcopy(self.resources) invalid_references = ("var.", "each.") # This section will link resources found in configuration part of the plan output. # The reference...
https://github.com/terraform-compliance/cli/issues/427
❗ ERROR: Hook 'load_terraform_data' from /usr/local/lib/python3.7/site-packages/terraform_compliance/steps/terrain.py:8 raised: 'TypeError: unhashable type: 'dict'' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/radish/hookregistry.py", line 132, in call func(model, *args, **kwargs) Fi...
TypeError
def _mount_resources(self, source, target, ref_type): """ Mounts values of the source resource to the target resource's values with ref_type key :param source: source resource :param target: target resource :param ref_type: reference type (e.g. ingress ) :return: none """ for source_re...
def _mount_resources(self, source, target, ref_type): """ Mounts values of the source resource to the target resource's values with ref_type key :param source: source resource :param target: target resource :param ref_type: reference type (e.g. ingress ) :return: none """ for source_re...
https://github.com/terraform-compliance/cli/issues/124
$ terraform-compliance -p /target/tc-test2/tf-template/jenkins.plan.out.json -f /target/tc-test2/features terraform-compliance v1.0.13 initiated * Features : /target/tc-test2/features * Plan File : /target/tc-test2/tf-template/jenkins.plan.out.json . Running tests. Feature: Resources should be properly tagged # /ta...
KeyError
def change_value_in_dict(target_dictionary, path_to_change, value_to_change): if type(path_to_change) is str: path_to_change = path_to_change.split(".") if type(path_to_change) is not list: return False for x in xrange(0, len(path_to_change)): for condition in hcl_conditions: ...
def change_value_in_dict(target_dictionary, path_to_change, value_to_change): if type(path_to_change) is str: path_to_change = path_to_change.split(".") if type(path_to_change) is not list: return False path_to_adjust = '["{}"]'.format('"]["'.join(path_to_change)) try: target ...
https://github.com/terraform-compliance/cli/issues/53
terraform-compliance v0.4.11 initiated Steps : /usr/local/lib/python2.7/site-packages/terraform_compliance/steps Features : /Users/demianginther/git/tf-modules/compliance TF Files : /var/folders/zf/f1h382nn35z3gd1kv92bw6r80000gn/T/tmpxTN1V9 (.) Reading terraform files. All HCL files look good. Running tests. Feature...
SyntaxError
def make_statements(code, variables, dtype, optimise=True, blockname=""): """ make_statements(code, variables, dtype, optimise=True, blockname='') Turn a series of abstract code statements into Statement objects, inferring whether each line is a set/declare operation, whether the variables are cons...
def make_statements(code, variables, dtype, optimise=True, blockname=""): """ make_statements(code, variables, dtype, optimise=True, blockname='') Turn a series of abstract code statements into Statement objects, inferring whether each line is a set/declare operation, whether the variables are cons...
https://github.com/brian-team/brian2/issues/1199
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "miniconda2/envs/brian/lib/python2.7/site-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py", line 246, in run exec(self.compiled_code, self.namespace) File "(string)", line 19, in <module> File "miniconda2/envs/brian/lib/pyt...
IndexError
def get_substituted_expressions(self, variables=None, include_subexpressions=False): """ Return a list of ``(varname, expr)`` tuples, containing all differential equations (and optionally subexpressions) with all the subexpression variables substituted with the respective expressions. Parameters ...
def get_substituted_expressions(self, variables=None, include_subexpressions=False): """ Return a list of ``(varname, expr)`` tuples, containing all differential equations (and optionally subexpressions) with all the subexpression variables substituted with the respective expressions. Parameters ...
https://github.com/brian-team/brian2/issues/1199
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "miniconda2/envs/brian/lib/python2.7/site-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py", line 246, in run exec(self.compiled_code, self.namespace) File "(string)", line 19, in <module> File "miniconda2/envs/brian/lib/pyt...
IndexError
def render_node(self, node): nodename = node.__class__.__name__ methname = "render_" + nodename try: return getattr(self, methname)(node) except AttributeError: raise SyntaxError("Unknown syntax: " + nodename)
def render_node(self, node): nodename = node.__class__.__name__ methname = "render_" + nodename try: return getattr(self, methname)(node) except AttributeError: raise raise SyntaxError("Unknown syntax: " + nodename)
https://github.com/brian-team/brian2/issues/1199
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "miniconda2/envs/brian/lib/python2.7/site-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py", line 246, in run exec(self.compiled_code, self.namespace) File "(string)", line 19, in <module> File "miniconda2/envs/brian/lib/pyt...
IndexError
def render_Num(self, node): if isinstance(node.n, numbers.Integral): return sympy.Integer(node.n) else: return sympy.Float(node.n)
def render_Num(self, node): return sympy.Float(node.n)
https://github.com/brian-team/brian2/issues/1199
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "miniconda2/envs/brian/lib/python2.7/site-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py", line 246, in run exec(self.compiled_code, self.namespace) File "(string)", line 19, in <module> File "miniconda2/envs/brian/lib/pyt...
IndexError
def __call__(self, eqs, variables=None, method_options=None): """ Apply a state updater description to model equations. Parameters ---------- eqs : `Equations` The equations describing the model variables: dict-like, optional The `Variable` objects for the model. Ignored by the ...
def __call__(self, eqs, variables=None, method_options=None): """ Apply a state updater description to model equations. Parameters ---------- eqs : `Equations` The equations describing the model variables: dict-like, optional The `Variable` objects for the model. Ignored by the ...
https://github.com/brian-team/brian2/issues/1199
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "miniconda2/envs/brian/lib/python2.7/site-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py", line 246, in run exec(self.compiled_code, self.namespace) File "(string)", line 19, in <module> File "miniconda2/envs/brian/lib/pyt...
IndexError
def get_conditionally_linear_system(eqs, variables=None): ''' Convert equations into a linear system using sympy. Parameters ---------- eqs : `Equations` The model equations. Returns ------- coefficients : dict of (sympy expression, sympy expression) tuples For every va...
def get_conditionally_linear_system(eqs, variables=None): ''' Convert equations into a linear system using sympy. Parameters ---------- eqs : `Equations` The model equations. Returns ------- coefficients : dict of (sympy expression, sympy expression) tuples For every va...
https://github.com/brian-team/brian2/issues/1199
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "miniconda2/envs/brian/lib/python2.7/site-packages/brian2/codegen/runtime/numpy_rt/numpy_rt.py", line 246, in run exec(self.compiled_code, self.namespace) File "(string)", line 19, in <module> File "miniconda2/envs/brian/lib/pyt...
IndexError
def __init__(self): super(CPPStandaloneDevice, self).__init__() #: Dictionary mapping `ArrayVariable` objects to their globally #: unique name self.arrays = {} #: Dictionary mapping `ArrayVariable` objects to their value or to #: ``None`` if the value (potentially) depends on executed code. This...
def __init__(self): super(CPPStandaloneDevice, self).__init__() #: Dictionary mapping `ArrayVariable` objects to their globally #: unique name self.arrays = {} #: Dictionary mapping `ArrayVariable` objects to their value or to #: ``None`` if the value (potentially) depends on executed code. This...
https://github.com/brian-team/brian2/issues/1189
ERROR Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at <http://groups.google.com/group/brian-development/>, or to the issue tracker at <https://github.com/brian-team/brian2/issues>. Please include this file with debug information i...
jinja2.exceptions.UndefinedError
def build( self, directory="output", compile=True, run=True, debug=False, clean=False, with_output=True, additional_source_files=None, run_args=None, direct_call=True, **kwds, ): """ Build the project TODO: more details Parameters ---------- director...
def build( self, directory="output", compile=True, run=True, debug=False, clean=False, with_output=True, additional_source_files=None, run_args=None, direct_call=True, **kwds, ): """ Build the project TODO: more details Parameters ---------- director...
https://github.com/brian-team/brian2/issues/1189
ERROR Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at <http://groups.google.com/group/brian-development/>, or to the issue tracker at <https://github.com/brian-team/brian2/issues>. Please include this file with debug information i...
jinja2.exceptions.UndefinedError
def network_run( self, net, duration, report=None, report_period=10 * second, namespace=None, profile=False, level=0, **kwds, ): self.networks.add(net) if kwds: logger.warn( ("Unsupported keyword argument(s) provided for run: %s") % ", ".join(k...
def network_run( self, net, duration, report=None, report_period=10 * second, namespace=None, profile=False, level=0, **kwds, ): if kwds: logger.warn( ("Unsupported keyword argument(s) provided for run: %s") % ", ".join(kwds.keys()) ) #...
https://github.com/brian-team/brian2/issues/1189
ERROR Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at <http://groups.google.com/group/brian-development/>, or to the issue tracker at <https://github.com/brian-team/brian2/issues>. Please include this file with debug information i...
jinja2.exceptions.UndefinedError
def network_run( self, net, duration, report=None, report_period=10 * second, namespace=None, profile=False, level=0, **kwds, ): self.networks.add(net) if kwds: logger.warn( ("Unsupported keyword argument(s) provided for run: %s") % ", ".join(k...
def network_run( self, net, duration, report=None, report_period=10 * second, namespace=None, profile=False, level=0, **kwds, ): if kwds: logger.warn( ("Unsupported keyword argument(s) provided for run: %s") % ", ".join(kwds.keys()) ) #...
https://github.com/brian-team/brian2/issues/1189
ERROR Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at <http://groups.google.com/group/brian-development/>, or to the issue tracker at <https://github.com/brian-team/brian2/issues>. Please include this file with debug information i...
jinja2.exceptions.UndefinedError
def brian_object_exception(message, brianobj, original_exception): """ Returns a `BrianObjectException` derived from the original exception. Creates a new class derived from the class of the original exception and `BrianObjectException`. This allows exception handling code to respond both to the or...
def brian_object_exception(message, brianobj, original_exception): """ Returns a `BrianObjectException` derived from the original exception. Creates a new class derived from the class of the original exception and `BrianObjectException`. This allows exception handling code to respond both to the or...
https://github.com/brian-team/brian2/issues/964
Traceback (most recent call last): File "err_test.py", line 5, in <module> run(0*ms) File "/home/marcel/programming/brian2/brian2/units/fundamentalunits.py", line 2360, in new_f result = f(*args, **kwds) File "/home/marcel/programming/brian2/brian2/core/magic.py", line 371, in run namespace=namespace, profile=profile, ...
SyntaxError
def conditional_write( self, line, stmt, variables, conditional_write_vars, created_vars ): if stmt.var in conditional_write_vars: subs = {} index = conditional_write_vars[stmt.var] # we replace all var with var[index], but actually we use this repl_string first because # we don'...
def conditional_write( self, line, stmt, variables, conditional_write_vars, created_vars ): if stmt.var in conditional_write_vars: subs = {} index = conditional_write_vars[stmt.var] # we replace all var with var[index], but actually we use this repl_string first because # we don'...
https://github.com/brian-team/brian2/issues/761
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "E:\Dan\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 122, in run exec self.compiled_code in self.namespace File "(string)", line 13, in <module> ValueError: operands could not be broadcast together with ...
ValueError
def randn_func(vectorisation_idx): try: N = len(vectorisation_idx) return np.random.randn(N) except TypeError: # scalar value return np.random.randn()
def randn_func(vectorisation_idx): try: N = len(vectorisation_idx) except TypeError: N = int(vectorisation_idx) numbers = np.random.randn(N) if N == 1: return numbers[0] else: return numbers
https://github.com/brian-team/brian2/issues/761
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "E:\Dan\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 122, in run exec self.compiled_code in self.namespace File "(string)", line 13, in <module> ValueError: operands could not be broadcast together with ...
ValueError
def rand_func(vectorisation_idx): try: N = len(vectorisation_idx) return np.random.rand(N) except TypeError: # scalar value return np.random.rand()
def rand_func(vectorisation_idx): try: N = len(vectorisation_idx) except TypeError: N = int(vectorisation_idx) numbers = np.random.rand(N) if N == 1: return numbers[0] else: return numbers
https://github.com/brian-team/brian2/issues/761
BrianObjectException: Original error and traceback: Traceback (most recent call last): File "E:\Dan\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 122, in run exec self.compiled_code in self.namespace File "(string)", line 13, in <module> ValueError: operands could not be broadcast together with ...
ValueError
def restore(self, name="default", filename=None): """ restore(name='default', filename=None) Retore the state of the network and all included objects. Parameters ---------- name : str, optional The name of the snapshot to restore, if not specified uses ``'default'``. filena...
def restore(self, name="default", filename=None): """ restore(name='default', filename=None) Retore the state of the network and all included objects. Parameters ---------- name : str, optional The name of the snapshot to restore, if not specified uses ``'default'``. filena...
https://github.com/brian-team/brian2/issues/681
In [1]: from brian2 import * In [2]: G = NeuronGroup(1, 'v: 1') In [3]: store() In [4]: restore() In [5]: restore() --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-5-ad7bb0bcaaad> in <module>() ---...
KeyError
def push(self, sources): """ Push spikes to the queue. Parameters ---------- sources : ndarray of int The indices of the neurons that spiked. """ if len(sources) and len(self._delays): start = self._source_start stop = self._source_end if start > 0: ...
def push(self, sources): """ Push spikes to the queue. Parameters ---------- sources : ndarray of int The indices of the neurons that spiked. """ if len(sources): start = self._source_start stop = self._source_end if start > 0: start_idx = bisect....
https://github.com/brian-team/brian2/issues/371
SG = SpikeGeneratorGroup(1, [0], [0*ms]) G = NeuronGroup(1, 'v:1') S = Synapses(SG, G, pre='v+=1') run(0.1*ms) Traceback (most recent call last): ... File "/home/marcel/programming/brian2/brian2/synapses/spikequeue.py", line 254, in push self._insert_homogeneous(self._delays[0], indices) IndexError: index 0 is out of b...
IndexError
def initialise_queue(self): if self.synapse_sources.get_len() == 0: logger.warn( ( "Synapses object '%s' does not have any synapses. Did " "you forget a 'connect'?" ) % self.synapses.name, "no_synapses", once=True, ...
def initialise_queue(self): if self.queue is None: self.queue = get_device().spike_queue(self.source.start, self.source.stop) # Update the dt (might have changed between runs) self.queue.prepare( self._delays.get_value(), self.source.clock.dt_, self.synapse_sources.get_valu...
https://github.com/brian-team/brian2/issues/371
SG = SpikeGeneratorGroup(1, [0], [0*ms]) G = NeuronGroup(1, 'v:1') S = Synapses(SG, G, pre='v+=1') run(0.1*ms) Traceback (most recent call last): ... File "/home/marcel/programming/brian2/brian2/synapses/spikequeue.py", line 254, in push self._insert_homogeneous(self._delays[0], indices) IndexError: index 0 is out of b...
IndexError
def __call__(self, engine: Engine) -> None: """ This method assumes self.batch_transform will extract metadata from the input batch. Args: engine: Ignite Engine, it can be a trainer, validator or evaluator. """ _meta_data = self.batch_transform(engine.state.batch) if Key.FILENAME_OR_OBJ...
def __call__(self, engine: Engine) -> None: """ This method assumes self.batch_transform will extract metadata from the input batch. Args: engine: Ignite Engine, it can be a trainer, validator or evaluator. """ _meta_data = self.batch_transform(engine.state.batch) if Key.FILENAME_OR_OBJ...
https://github.com/Project-MONAI/MONAI/issues/1570
2021-02-09 02:12:24,253 - ignite.engine.engine.SupervisedEvaluator - INFO - Engine run resuming from iteration 0, epoch 0 until 1 epochs 2021-02-09 02:12:24,436 - ignite.engine.engine.SupervisedEvaluator - INFO - Restored all variables from /home/madil/dlmed/problems/pt_mmars/classification_chestxray_ea2/commands/../mo...
IndexError
def string_list_all_gather(strings: List[str], delimiter: str = "\t") -> List[str]: """ Utility function for distributed data parallel to all gather a list of strings. Args: strings: a list of strings to all gather. delimiter: use the delimiter to join the string list to be a long string, ...
def string_list_all_gather(strings: List[str], delimiter: str = "\t") -> List[str]: """ Utility function for distributed data parallel to all gather a list of strings. Args: strings: a list of strings to all gather. delimiter: use the delimiter to join the string list to be a long string, ...
https://github.com/Project-MONAI/MONAI/issues/1570
2021-02-09 02:12:24,253 - ignite.engine.engine.SupervisedEvaluator - INFO - Engine run resuming from iteration 0, epoch 0 until 1 epochs 2021-02-09 02:12:24,436 - ignite.engine.engine.SupervisedEvaluator - INFO - Restored all variables from /home/madil/dlmed/problems/pt_mmars/classification_chestxray_ea2/commands/../mo...
IndexError
def __call__(self, data): """ Raises: KeyError: When a key in ``self.names`` already exists in ``data``. """ d = dict(data) for key, new_key in zip(self.keys * self.times, self.names): if new_key in d: raise KeyError(f"Key {new_key} already exists in data.") if t...
def __call__(self, data): """ Raises: KeyError: When a key in ``self.names`` already exists in ``data``. """ d = dict(data) for key, new_key in zip(self.keys * self.times, self.names): if new_key in d: raise KeyError(f"Key {new_key} already exists in data.") d[ne...
https://github.com/Project-MONAI/MONAI/issues/1178
ERROR - Exception: Applying transform <monai.transforms.compose.Compose object at 0x7f0700e9deb8>. Traceback (most recent call last): File "/home/madil/dlmed/code/MONAI/monai/transforms/utils.py", line 309, in apply_transform return transform(data) File "/home/madil/dlmed/code/MONAI/monai/transforms/utility/dictionary....
RuntimeError
def __init__( self, output_dir: str = "./", output_postfix: str = "seg", output_ext: str = ".nii.gz", resample: bool = True, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union[GridSamplePadMode, str] = GridSamplePadMode.BORDER, align_corners: bool = False, ...
def __init__( self, output_dir: str = "./", output_postfix: str = "seg", output_ext: str = ".nii.gz", resample: bool = True, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union[GridSamplePadMode, str] = GridSamplePadMode.BORDER, dtype: Optional[np.dtype] = Non...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def save( self, data: Union[torch.Tensor, np.ndarray], meta_data: Optional[Dict] = None ) -> None: """ Save data into a Nifti file. The meta_data could optionally have the following keys: - ``'filename_or_obj'`` -- for output file name creation, corresponding to filename or object. - ``...
def save( self, data: Union[torch.Tensor, np.ndarray], meta_data: Optional[Dict] = None ) -> None: """ Save data into a Nifti file. The meta_data could optionally have the following keys: - ``'filename_or_obj'`` -- for output file name creation, corresponding to filename or object. - ``...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def write_nifti( data: np.ndarray, file_name: str, affine: Optional[np.ndarray] = None, target_affine: Optional[np.ndarray] = None, resample: bool = True, output_spatial_shape: Optional[Sequence[int]] = None, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union...
def write_nifti( data: np.ndarray, file_name: str, affine: Optional[np.ndarray] = None, target_affine: Optional[np.ndarray] = None, resample: bool = True, output_spatial_shape: Optional[Sequence[int]] = None, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __init__( self, pixdim: Union[Sequence[float], float], diagonal: bool = False, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union[GridSamplePadMode, str] = GridSamplePadMode.BORDER, align_corners: bool = False, dtype: Optional[np.dtype] = np.float64, ) -> Non...
def __init__( self, pixdim: Union[Sequence[float], float], diagonal: bool = False, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union[GridSamplePadMode, str] = GridSamplePadMode.BORDER, dtype: Optional[np.dtype] = None, ) -> None: """ Args: pixdim: ou...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __call__( self, data_array: np.ndarray, affine=None, mode: Optional[Union[GridSampleMode, str]] = None, padding_mode: Optional[Union[GridSamplePadMode, str]] = None, align_corners: Optional[bool] = None, dtype: Optional[np.dtype] = None, ): """ Args: data_array: in shape ...
def __call__( self, data_array: np.ndarray, affine=None, mode: Optional[Union[GridSampleMode, str]] = None, padding_mode: Optional[Union[GridSamplePadMode, str]] = None, dtype: Optional[np.dtype] = None, ): """ Args: data_array: in shape (num_channels, H[, W, ...]). affin...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __init__( self, angle: Union[Sequence[float], float], keep_size: bool = True, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union[GridSamplePadMode, str] = GridSamplePadMode.BORDER, align_corners: bool = False, dtype: Optional[np.dtype] = np.float64, ) -> None...
def __init__( self, angle: Union[Sequence[float], float], keep_size: bool = True, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: Union[GridSamplePadMode, str] = GridSamplePadMode.BORDER, align_corners: bool = False, ) -> None: self.angle = angle self.keep_size ...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __call__( self, img: np.ndarray, mode: Optional[Union[GridSampleMode, str]] = None, padding_mode: Optional[Union[GridSamplePadMode, str]] = None, align_corners: Optional[bool] = None, dtype: Optional[np.dtype] = None, ) -> np.ndarray: """ Args: img: channel first array, must ...
def __call__( self, img: np.ndarray, mode: Optional[Union[GridSampleMode, str]] = None, padding_mode: Optional[Union[GridSamplePadMode, str]] = None, align_corners: Optional[bool] = None, ) -> np.ndarray: """ Args: img: channel first array, must have shape: [chns, H, W] or [chns, H, ...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __init__( self, range_x: Union[Tuple[float, float], float] = 0.0, range_y: Union[Tuple[float, float], float] = 0.0, range_z: Union[Tuple[float, float], float] = 0.0, prob: float = 0.1, keep_size: bool = True, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: U...
def __init__( self, range_x: Union[Tuple[float, float], float] = 0.0, range_y: Union[Tuple[float, float], float] = 0.0, range_z: Union[Tuple[float, float], float] = 0.0, prob: float = 0.1, keep_size: bool = True, mode: Union[GridSampleMode, str] = GridSampleMode.BILINEAR, padding_mode: U...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __call__( self, img: np.ndarray, mode: Optional[Union[GridSampleMode, str]] = None, padding_mode: Optional[Union[GridSamplePadMode, str]] = None, align_corners: Optional[bool] = None, dtype: Optional[np.dtype] = None, ) -> np.ndarray: """ Args: img: channel first array, must ...
def __call__( self, img: np.ndarray, mode: Optional[Union[GridSampleMode, str]] = None, padding_mode: Optional[Union[GridSamplePadMode, str]] = None, align_corners: Optional[bool] = None, ) -> np.ndarray: """ Args: img: channel first array, must have shape 2D: (nchannels, H, W), or 3...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __init__( self, keys: KeysCollection, pixdim: Sequence[float], diagonal: bool = False, mode: GridSampleModeSequence = GridSampleMode.BILINEAR, padding_mode: GridSamplePadModeSequence = GridSamplePadMode.BORDER, align_corners: Union[Sequence[bool], bool] = False, dtype: Optional[Union...
def __init__( self, keys: KeysCollection, pixdim: Sequence[float], diagonal: bool = False, mode: GridSampleModeSequence = GridSampleMode.BILINEAR, padding_mode: GridSamplePadModeSequence = GridSamplePadMode.BORDER, dtype: Optional[Union[Sequence[np.dtype], np.dtype]] = None, meta_key_pos...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError
def __call__(self, data): d = dict(data) for idx, key in enumerate(self.keys): meta_data = d[f"{key}_{self.meta_key_postfix}"] # resample array of each corresponding key # using affine fetched from d[affine_key] d[key], _, new_affine = self.spacing_transform( data_arr...
def __call__(self, data): d = dict(data) for idx, key in enumerate(self.keys): meta_data = d[f"{key}_{self.meta_key_postfix}"] # resample array of each corresponding key # using affine fetched from d[affine_key] d[key], _, new_affine = self.spacing_transform( data_arr...
https://github.com/Project-MONAI/MONAI/issues/832
====================================================================== FAIL: test_training (__main__.IntegrationSegmentation3D) ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/test_integration_segmentation_3d.py", line 257, in test_training rtol=1e-3...
AssertionError