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 reload(self):
if self.closed:
return
self.reader.buffer.wait_free()
log.debug(
"Reloading manifest ({0}:{1})".format(
self.reader.representation_id, self.reader.mime_type
)
)
res = self.session.http.get(self.mpd.url, exception=StreamError, **self.stream.args)... | def reload(self):
if self.closed:
return
self.reader.buffer.wait_free()
log.debug(
"Reloading manifest ({0}:{1})".format(
self.reader.representation_id, self.reader.mime_type
)
)
res = self.session.http.get(self.mpd.url, exception=StreamError)
new_mpd = MPD(... | https://github.com/streamlink/streamlink/issues/2291 | $ streamlink https://www.tf1.fr/lci/direct 576p_dash
[cli][debug] OS: Linux
[cli][debug] Python: 3.6.7
[cli][debug] Streamlink: 1.0.0+3.g4100688.dirty
[cli][debug] Requests(2.21.0), Socks(1.6.7), Websocket(0.54.0)
[cli][info] Found matching plugin tf1 for URL https://www.tf1.fr/lci/direct
[plugin.tf1][debug... | requests.exceptions.HTTPError |
def _get_streams(self):
match = _url_re.match(self.url)
if not match:
return
channel, media_id = match.group("channel", "media_id")
self.logger.debug(
"Matched URL: channel={0}, media_id={1}".format(channel, media_id)
)
if not media_id:
res = http.get(LIVE_API.format(cha... | def _get_streams(self):
match = _url_re.match(self.url)
if not match:
return
channel, media_id = match.group("channel", "media_id")
self.logger.debug(
"Matched URL: channel={0}, media_id={1}".format(channel, media_id)
)
if not media_id:
res = http.get(LIVE_API.format(cha... | https://github.com/streamlink/streamlink/issues/1078 | streamlink smashcast.tv/greatvaluesmash best
[cli][info] Found matching plugin hitbox for URL smashcast.tv/greatvaluesmash
Traceback (most recent call last):
File "C:\Program Files (x86)\Streamlink\bin\streamlink-script.py", line 15, in
<module>
main()
File "C:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py... | KeyError |
def close(self, client_only=False):
if self.conn:
self.conn.close()
if not client_only:
try:
self.socket.shutdown(2)
except (OSError, socket.error):
pass
self.socket.close()
| def close(self, client_only=False):
if self.conn:
self.conn.close()
if not client_only:
try:
self.socket.shutdown(2)
except OSError:
pass
self.socket.close()
| https://github.com/streamlink/streamlink/issues/919 | [cli][info] Closing currently open stream...
Traceback (most recent call last):
File "/usr/local/bin/streamlink", line 11, in <module>
load_entry_point('streamlink==0.6.0', 'console_scripts', 'streamlink')()
File "/usr/local/lib/python2.7/site-packages/streamlink_cli/main.py", line 1027, in main
handle_url()
File "/usr... | socket.error |
def close(self, client_only=False):
if self.conn:
self.conn.close()
if not client_only:
try:
self.socket.shutdown(2)
except OSError:
pass
self.socket.close()
| def close(self, client_only=False):
if self.conn:
self.conn.close()
if not client_only:
self.socket.shutdown(2)
self.socket.close()
| https://github.com/streamlink/streamlink/issues/604 | [cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...
Traceback (most recent call last):
File "d:\Program Files (x86)\Streamlink\bin\streamlink-script.py", line 12, in
<module>
main()
File "d:\Program Files (x86)\Streamlink\pkgs\streamlink_cli\main.py", line 952
, in main
handl... | OSError |
def write(self, sequence, res, chunk_size=8192, retries=None):
retries = retries or self.retries
if retries == 0:
self.logger.error("Failed to open segment {0}", sequence.num)
return
try:
if sequence.segment.key and sequence.segment.key.method != "NONE":
try:
... | def write(self, sequence, res, chunk_size=8192):
if sequence.segment.key and sequence.segment.key.method != "NONE":
try:
decryptor = self.create_decryptor(sequence.segment.key, sequence.num)
except StreamError as err:
self.logger.error("Failed to create decryptor: {0}", err)
... | https://github.com/streamlink/streamlink/issues/332 | Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 232, in _error_catcher
yield
File "/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/response.py", line 314, in read
data = self._fp.read(amt)
File "/... | requests.packages.urllib3.exceptions.ReadTimeoutError |
def write(self, vals):
res = super(OpStudent, self).write(vals)
if vals.get("parent_ids", False):
user_ids = []
if self.parent_ids:
for parent in self.parent_ids:
if parent.user_id:
user_ids = [x.user_id.id for x in parent.student_ids if x.user_id]... | def write(self, vals):
res = super(OpStudent, self).write(vals)
if vals.get("parent_ids", False):
user_ids = []
if self.parent_ids:
for parent in self.parent_ids:
if parent.user_id:
user_ids = [x.user_id.id for x in parent.student_ids if x.user_id]... | https://github.com/openeducat/openeducat_erp/issues/302 | Traceback (most recent call last):
File "/media/linux_data/progetti/odoo/odoo12-dev/OCB/odoo/models.py", line 4718, in ensure_one
_id, = self._ids
ValueError: not enough values to unpack (expected 1, got 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
... | ValueError |
def parse_exif_values(self, _path_file):
# Disable exifread log
logging.getLogger("exifread").setLevel(logging.CRITICAL)
with open(_path_file, "rb") as f:
tags = exifread.process_file(f, details=False)
try:
if "Image Make" in tags:
try:
self.c... | def parse_exif_values(self, _path_file):
# Disable exifread log
logging.getLogger("exifread").setLevel(logging.CRITICAL)
with open(_path_file, "rb") as f:
tags = exifread.process_file(f, details=False)
try:
if "Image Make" in tags:
try:
self.c... | https://github.com/OpenDroneMap/ODM/issues/1163 | [INFO] Loading 4 images
Traceback (most recent call last):
File "/code/opendm/photo.py", line 225, in parse_exif_values
], float)
File "/code/opendm/photo.py", line 256, in set_attr_from_xmp_tag
setattr(self, attr, cast(v))
ValueError: could not convert string to float: '610/1000'
During handling of the above excep... | ValueError |
def set_attr_from_xmp_tag(self, attr, xmp_tags, tags, cast=None):
v = self.get_xmp_tag(xmp_tags, tags)
if v is not None:
if cast is None:
setattr(self, attr, v)
else:
# Handle fractions
if (cast == float or cast == int) and "/" in v:
v = self.t... | def set_attr_from_xmp_tag(self, attr, xmp_tags, tags, cast=None):
v = self.get_xmp_tag(xmp_tags, tags)
if v is not None:
if cast is None:
setattr(self, attr, v)
else:
setattr(self, attr, cast(v))
| https://github.com/OpenDroneMap/ODM/issues/1163 | [INFO] Loading 4 images
Traceback (most recent call last):
File "/code/opendm/photo.py", line 225, in parse_exif_values
], float)
File "/code/opendm/photo.py", line 256, in set_attr_from_xmp_tag
setattr(self, attr, cast(v))
ValueError: could not convert string to float: '610/1000'
During handling of the above excep... | ValueError |
def process(self, args, outputs):
tree = outputs["tree"]
reconstruction = outputs["reconstruction"]
photos = reconstruction.photos
if not photos:
log.ODM_ERROR("Not enough photos in photos array to start OpenSfM")
exit(1)
octx = OSFMContext(tree.opensfm)
octx.setup(
arg... | def process(self, args, outputs):
tree = outputs["tree"]
reconstruction = outputs["reconstruction"]
photos = reconstruction.photos
if not photos:
log.ODM_ERROR("Not enough photos in photos array to start OpenSfM")
exit(1)
octx = OSFMContext(tree.opensfm)
octx.setup(
arg... | https://github.com/OpenDroneMap/ODM/issues/1151 | [INFO] Finished dataset stage
[INFO] Running split stage
[INFO] Normal dataset, will process all at once.
[INFO] Finished split stage
[INFO] Running merge stage
[INFO] Normal dataset, nothing to merge.
[INFO] Finished merge stage
[INFO] Running opensfm stage
[WARNING] /datasets/project/submodels... | OSError |
def build_block_parser(md, **kwargs):
"""Build the default block parser used by Markdown."""
parser = BlockParser(md)
parser.blockprocessors.register(EmptyBlockProcessor(parser), "empty", 100)
parser.blockprocessors.register(ListIndentProcessor(parser), "indent", 90)
parser.blockprocessors.register(... | def build_block_parser(md, **kwargs):
"""Build the default block parser used by Markdown."""
parser = BlockParser(md)
parser.blockprocessors.register(EmptyBlockProcessor(parser), "empty", 100)
parser.blockprocessors.register(ListIndentProcessor(parser), "indent", 90)
parser.blockprocessors.register(... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def extendMarkdown(self, md):
"""Insert AbbrPreprocessor before ReferencePreprocessor."""
md.parser.blockprocessors.register(AbbrPreprocessor(md.parser), "abbr", 16)
| def extendMarkdown(self, md):
"""Insert AbbrPreprocessor before ReferencePreprocessor."""
md.preprocessors.register(AbbrPreprocessor(md), "abbr", 12)
| https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def run(self, parent, blocks):
"""
Find and remove all Abbreviation references from the text.
Each reference is set as a new AbbrPattern in the markdown instance.
"""
block = blocks.pop(0)
m = self.RE.search(block)
if m:
abbr = m.group("abbr").strip()
title = m.group("title"... | def run(self, lines):
"""
Find and remove all Abbreviation references from the text.
Each reference is set as a new AbbrPattern in the markdown instance.
"""
new_text = []
for line in lines:
m = ABBR_REF_RE.match(line)
if m:
abbr = m.group("abbr").strip()
... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def extendMarkdown(self, md):
"""Add pieces to Markdown."""
md.registerExtension(self)
self.parser = md.parser
self.md = md
# Insert a blockprocessor before ReferencePreprocessor
md.parser.blockprocessors.register(FootnoteBlockProcessor(self), "footnote", 17)
# Insert an inline pattern befo... | def extendMarkdown(self, md):
"""Add pieces to Markdown."""
md.registerExtension(self)
self.parser = md.parser
self.md = md
# Insert a preprocessor before ReferencePreprocessor
md.preprocessors.register(FootnotePreprocessor(self), "footnote", 15)
# Insert an inline pattern before ImageRefer... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def detectTabbed(self, blocks):
"""Find indented text and remove indent before further proccesing.
Returns: a list of blocks with indentation removed.
"""
fn_blocks = []
while blocks:
if blocks[0].startswith(" " * 4):
block = blocks.pop(0)
# Check for new footnotes w... | def detectTabbed(self, lines):
"""Find indented text and remove indent before further proccesing.
Keyword arguments:
* lines: an array of strings
Returns: a list of post processed items and the index of last line.
"""
items = []
blank_line = False # have we encountered a blank line yet?... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def detab(self, block):
"""Remove one level of indent from a block.
Preserve lazily indented blocks by only removing indent from indented lines.
"""
lines = block.split("\n")
for i, line in enumerate(lines):
if line.startswith(" " * 4):
lines[i] = line[4:]
return "\n".join(l... | def detab(line):
match = TABBED_RE.match(line)
if match:
return match.group(4)
| https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def run(self, parent, blocks):
m = util.HTML_PLACEHOLDER_RE.match(blocks[0])
if m:
index = int(m.group(1))
element = self.parser.md.htmlStash.rawHtmlBlocks[index]
if isinstance(element, etree.Element):
# We have a matched element. Process it.
blocks.pop(0)
... | def run(self, parent, blocks, tail=None, nest=False):
self._tag_data = self.parser.md.htmlStash.tag_data
self.parser.blockprocessors.tag_counter += 1
tag = self._tag_data[self.parser.blockprocessors.tag_counter]
# Create Element
markdown_value = tag["attrs"].pop("markdown")
element = etree.Sub... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def extendMarkdown(self, md):
"""Register extension instances."""
# Replace raw HTML preprocessor
md.preprocessors.register(HtmlBlockPreprocessor(md), "html_block", 20)
# Add blockprocessor which handles the placeholders for etree elements
md.parser.blockprocessors.register(
MarkdownInHtmlP... | def extendMarkdown(self, md):
"""Register extension instances."""
# Turn on processing of markdown text within raw html
md.preprocessors["html_block"].markdown_in_raw = True
md.parser.blockprocessors.register(
MarkdownInHtmlProcessor(md.parser), "markdown_block", 105
)
md.parser.blockpr... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def run(self, text):
"""Iterate over html stash and restore html."""
replacements = OrderedDict()
for i in range(self.md.htmlStash.html_counter):
html = self.md.htmlStash.rawHtmlBlocks[i]
if self.isblocklevel(html):
replacements["<p>{}</p>".format(self.md.htmlStash.get_placeholde... | def run(self, text):
"""Iterate over html stash and restore html."""
replacements = OrderedDict()
for i in range(self.md.htmlStash.html_counter):
html = self.md.htmlStash.rawHtmlBlocks[i]
if self.isblocklevel(html):
replacements["<p>%s</p>" % (self.md.htmlStash.get_placeholder(i)... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def build_preprocessors(md, **kwargs):
"""Build the default set of preprocessors used by Markdown."""
preprocessors = util.Registry()
preprocessors.register(NormalizeWhitespace(md), "normalize_whitespace", 30)
preprocessors.register(HtmlBlockPreprocessor(md), "html_block", 20)
return preprocessors
| def build_preprocessors(md, **kwargs):
"""Build the default set of preprocessors used by Markdown."""
preprocessors = util.Registry()
preprocessors.register(NormalizeWhitespace(md), "normalize_whitespace", 30)
preprocessors.register(HtmlBlockPreprocessor(md), "html_block", 20)
preprocessors.register... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def run(self, lines):
source = "\n".join(lines)
parser = HTMLExtractor(self.md)
parser.feed(source)
parser.close()
return "".join(parser.cleandoc).split("\n")
| def run(self, lines):
text = "\n".join(lines)
new_blocks = []
text = text.rsplit("\n\n")
items = []
left_tag = ""
right_tag = ""
in_tag = False # flag
while text:
block = text[0]
if block.startswith("\n"):
block = block[1:]
text = text[1:]
i... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def run(self, lines):
source = "\n".join(lines)
parser = HTMLExtractor(self.md)
parser.feed(source)
parser.close()
return "".join(parser.cleandoc).split("\n")
| def run(self, lines):
new_text = []
while lines:
line = lines.pop(0)
m = self.RE.match(line)
if m:
id = m.group(1).strip().lower()
link = m.group(2).lstrip("<").rstrip(">")
t = m.group(5) or m.group(6) or m.group(7)
if not t:
... | https://github.com/Python-Markdown/markdown/issues/780 | Traceback (most recent call last):
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/test_tools.py", line 117, in test
output = markdown(input, **kwargs)
File "/home/ikus060/workspace/PDSL/markdown.git/markdown/core.py", line 391, in markdown
return md.convert(text)
File "/home/ikus060/workspace/PDSL/markdown.gi... | IndexError |
def run(self, lines):
"""
Find and remove all Abbreviation references from the text.
Each reference is set as a new AbbrPattern in the markdown instance.
"""
new_text = []
for line in lines:
m = ABBR_REF_RE.match(line)
if m:
abbr = m.group("abbr").strip()
... | def run(self, lines):
"""
Find and remove all Abbreviation references from the text.
Each reference is set as a new AbbrPattern in the markdown instance.
"""
new_text = []
for line in lines:
m = ABBR_REF_RE.match(line)
if m:
abbr = m.group("abbr").strip()
... | https://github.com/Python-Markdown/markdown/issues/584 | doc-pelican (0.7)$ python3 test.py
Markdown 2.6.9
Traceback (most recent call last):
File "test.py", line 22, in <module>
print(md.convert(text))
File "/usr/lib/python3/dist-packages/markdown/__init__.py", line 371, in convert
root = self.parser.parseDocument(self.lines).getroot()
File "/usr/lib/python3/dist-packages/m... | IndexError |
def run(self, lines):
"""
Loop through lines and find, set, and remove footnote definitions.
Keywords:
* lines: A list of lines of text
Return: A list of lines of text with footnote definitions removed.
"""
newlines = []
i = 0
while True:
m = DEF_RE.match(lines[i])
... | def run(self, lines):
"""
Loop through lines and find, set, and remove footnote definitions.
Keywords:
* lines: A list of lines of text
Return: A list of lines of text with footnote definitions removed.
"""
newlines = []
i = 0
while True:
m = DEF_RE.match(lines[i])
... | https://github.com/Python-Markdown/markdown/issues/584 | doc-pelican (0.7)$ python3 test.py
Markdown 2.6.9
Traceback (most recent call last):
File "test.py", line 22, in <module>
print(md.convert(text))
File "/usr/lib/python3/dist-packages/markdown/__init__.py", line 371, in convert
root = self.parser.parseDocument(self.lines).getroot()
File "/usr/lib/python3/dist-packages/m... | IndexError |
def detectTabbed(self, lines):
"""Find indented text and remove indent before further proccesing.
Keyword arguments:
* lines: an array of strings
Returns: a list of post processed items and the index of last line.
"""
items = []
blank_line = False # have we encountered a blank line yet?... | def detectTabbed(self, lines):
"""Find indented text and remove indent before further proccesing.
Keyword arguments:
* lines: an array of strings
Returns: a list of post processed items and the index of last line.
"""
items = []
blank_line = False # have we encountered a blank line yet?... | https://github.com/Python-Markdown/markdown/issues/584 | doc-pelican (0.7)$ python3 test.py
Markdown 2.6.9
Traceback (most recent call last):
File "test.py", line 22, in <module>
print(md.convert(text))
File "/usr/lib/python3/dist-packages/markdown/__init__.py", line 371, in convert
root = self.parser.parseDocument(self.lines).getroot()
File "/usr/lib/python3/dist-packages/m... | IndexError |
def run(self, lines):
new_text = []
while lines:
line = lines.pop(0)
m = self.RE.match(line)
if m:
id = m.group(1).strip().lower()
link = m.group(2).lstrip("<").rstrip(">")
t = m.group(5) or m.group(6) or m.group(7)
if not t:
... | def run(self, lines):
new_text = []
while lines:
line = lines.pop(0)
m = self.RE.match(line)
if m:
id = m.group(1).strip().lower()
link = m.group(2).lstrip("<").rstrip(">")
t = m.group(5) or m.group(6) or m.group(7)
if not t:
... | https://github.com/Python-Markdown/markdown/issues/584 | doc-pelican (0.7)$ python3 test.py
Markdown 2.6.9
Traceback (most recent call last):
File "test.py", line 22, in <module>
print(md.convert(text))
File "/usr/lib/python3/dist-packages/markdown/__init__.py", line 371, in convert
root = self.parser.parseDocument(self.lines).getroot()
File "/usr/lib/python3/dist-packages/m... | IndexError |
def run(self, root):
"""Add linebreaks to ElementTree root object."""
self._prettifyETree(root)
# Do <br />'s seperately as they are often in the middle of
# inline content and missed by _prettifyETree.
brs = root.iter("br")
for br in brs:
if not br.tail or not br.tail.strip():
... | def run(self, root):
"""Add linebreaks to ElementTree root object."""
self._prettifyETree(root)
# Do <br />'s seperately as they are often in the middle of
# inline content and missed by _prettifyETree.
brs = root.getiterator("br")
for br in brs:
if not br.tail or not br.tail.strip():
... | https://github.com/Python-Markdown/markdown/issues/499 | Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-hiv4fz31/Markdown/setup.py", line 270, in <module>
'Topic :: Text Processing :: Markup :: HTML'
File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.6/distutils/... | SystemError |
def unescape(self, text):
"""Return unescaped text given text with an inline placeholder."""
try:
stash = self.markdown.treeprocessors["inline"].stashed_nodes
except KeyError:
return text
def get_stash(m):
id = m.group(1)
if id in stash:
text = stash.get(id)
... | def unescape(self, text):
"""Return unescaped text given text with an inline placeholder."""
try:
stash = self.markdown.treeprocessors["inline"].stashed_nodes
except KeyError:
return text
def get_stash(m):
id = m.group(1)
if id in stash:
return stash.get(id)
... | https://github.com/Python-Markdown/markdown/issues/155 | In [1]: import markdown
In [2]: markdown.Markdown(safe_mode='escape').convert('<@`x`>')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-1401fbb3dfde> in <module>()
----> 1 markdown.Markdown(safe_mod... | TypeError |
def get_stash(m):
id = m.group(1)
if id in stash:
text = stash.get(id)
if isinstance(text, basestring):
return text
else:
return self.markdown.serializer(text)
| def get_stash(m):
id = m.group(1)
if id in stash:
return stash.get(id)
| https://github.com/Python-Markdown/markdown/issues/155 | In [1]: import markdown
In [2]: markdown.Markdown(safe_mode='escape').convert('<@`x`>')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-1401fbb3dfde> in <module>()
----> 1 markdown.Markdown(safe_mod... | TypeError |
def unescape(self, text):
"""Return unescaped text given text with an inline placeholder."""
try:
stash = self.markdown.treeprocessors["inline"].stashed_nodes
except KeyError:
return text
def itertext(el):
"Reimplement Element.itertext for older python versions"
tag = el... | def unescape(self, text):
"""Return unescaped text given text with an inline placeholder."""
try:
stash = self.markdown.treeprocessors["inline"].stashed_nodes
except KeyError:
return text
def get_stash(m):
id = m.group(1)
if id in stash:
text = stash.get(id)
... | https://github.com/Python-Markdown/markdown/issues/155 | In [1]: import markdown
In [2]: markdown.Markdown(safe_mode='escape').convert('<@`x`>')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-1401fbb3dfde> in <module>()
----> 1 markdown.Markdown(safe_mod... | TypeError |
def get_stash(m):
id = m.group(1)
value = stash.get(id)
if value is not None:
try:
return self.markdown.serializer(text)
except:
return "\%s" % value
| def get_stash(m):
id = m.group(1)
value = stash.get(id)
if value is not None:
try:
return self.markdown.serializer(value)
except:
return "\%s" % value
| https://github.com/Python-Markdown/markdown/issues/155 | In [1]: import markdown
In [2]: markdown.Markdown(safe_mode='escape').convert('<@`x`>')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-1401fbb3dfde> in <module>()
----> 1 markdown.Markdown(safe_mod... | TypeError |
def get_stash(m):
id = m.group(1)
if id in stash:
value = stash.get(id)
if isinstance(value, basestring):
return value
else:
# An etree Element - return text content only
return "".join(itertext(value))
| def get_stash(m):
id = m.group(1)
if id in stash:
text = stash.get(id)
if isinstance(text, basestring):
return text
else:
return self.markdown.serializer(text)
| https://github.com/Python-Markdown/markdown/issues/155 | In [1]: import markdown
In [2]: markdown.Markdown(safe_mode='escape').convert('<@`x`>')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-1401fbb3dfde> in <module>()
----> 1 markdown.Markdown(safe_mod... | TypeError |
def unescape(self, text):
"""Return unescaped text given text with an inline placeholder."""
try:
stash = self.markdown.treeprocessors["inline"].stashed_nodes
except KeyError:
return text
def get_stash(m):
id = m.group(1)
value = stash.get(id)
if value is not Non... | def unescape(self, text):
"""Return unescaped text given text with an inline placeholder."""
try:
stash = self.markdown.treeprocessors["inline"].stashed_nodes
except KeyError:
return text
def get_stash(m):
id = m.group(1)
value = stash.get(id)
if value is not Non... | https://github.com/Python-Markdown/markdown/issues/155 | In [1]: import markdown
In [2]: markdown.Markdown(safe_mode='escape').convert('<@`x`>')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-1401fbb3dfde> in <module>()
----> 1 markdown.Markdown(safe_mod... | TypeError |
def makeTag(self, href, title, text):
el = util.etree.Element("img")
el.set("src", self.sanitize_url(href))
if title:
el.set("title", title)
el.set("alt", self.unescape(text))
return el
| def makeTag(self, href, title, text):
el = util.etree.Element("img")
el.set("src", self.sanitize_url(href))
if title:
el.set("title", title)
el.set("alt", text)
return el
| https://github.com/Python-Markdown/markdown/issues/155 | In [1]: import markdown
In [2]: markdown.Markdown(safe_mode='escape').convert('<@`x`>')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-1401fbb3dfde> in <module>()
----> 1 markdown.Markdown(safe_mod... | TypeError |
def _get_left_tag(self, block):
m = self.left_tag_re.match(block)
if m:
tag = m.group("tag")
raw_attrs = m.group("attrs")
attrs = {}
if raw_attrs:
for ma in self.attrs_re.finditer(raw_attrs):
if ma.group("attr"):
if ma.group("value"... | def _get_left_tag(self, block):
m = self.left_tag_re.match(block)
if m:
tag = m.group("tag")
raw_attrs = m.group("attrs")
attrs = {}
if raw_attrs:
for ma in self.attrs_re.finditer(raw_attrs):
if ma.group("attr"):
if ma.group("value"... | https://github.com/Python-Markdown/markdown/issues/70 | markdown.markdown('<>')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/aaronsw/Code/infohacks/jottit/code/env/lib/python2.7/site-packages/markdown/__init__.py", line 386, in markdown
return md.convert(text)
File "/Users/aaronsw/Code/infohacks/jottit/code/env/lib/python2.7/site-packa... | IndexError |
def sort_imports(
file_name: str,
config: Config,
check: bool = False,
ask_to_apply: bool = False,
write_to_stdout: bool = False,
**kwargs: Any,
) -> Optional[SortAttempt]:
incorrectly_sorted: bool = False
skipped: bool = False
try:
if check:
try:
... | def sort_imports(
file_name: str,
config: Config,
check: bool = False,
ask_to_apply: bool = False,
write_to_stdout: bool = False,
**kwargs: Any,
) -> Optional[SortAttempt]:
incorrectly_sorted: bool = False
skipped: bool = False
try:
if check:
try:
... | https://github.com/PyCQA/isort/issues/1570 | ERROR: Unrecoverable exception thrown when parsing src/eduid_webapp/eidas/app.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
File "/home/lundberg/python-environments/eduid-webapp/bin/isort", line 8, in <module>
sys.exit(ma... | KeyError |
def __init__(
self,
filename: Union[str, Path],
):
super().__init__(f"Unknown or unsupported encoding in {filename}")
self.filename = filename
| def __init__(self, unsupported_settings: Dict[str, Dict[str, str]]):
errors = "\n".join(
self._format_option(name, **option)
for name, option in unsupported_settings.items()
)
super().__init__(
"isort was provided settings that it doesn't support:\n\n"
f"{errors}\n\n"
... | https://github.com/PyCQA/isort/issues/1487 | ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
File "/usr/lib/python3.8/tokenize.py", line 342, in find_cookie
codec = lookup(enco... | LookupError |
def from_contents(contents: str, filename: str) -> "File":
encoding = File.detect_encoding(
filename, BytesIO(contents.encode("utf-8")).readline
)
return File(StringIO(contents), path=Path(filename).resolve(), encoding=encoding)
| def from_contents(contents: str, filename: str) -> "File":
encoding, _ = tokenize.detect_encoding(BytesIO(contents.encode("utf-8")).readline)
return File(StringIO(contents), path=Path(filename).resolve(), encoding=encoding)
| https://github.com/PyCQA/isort/issues/1487 | ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
File "/usr/lib/python3.8/tokenize.py", line 342, in find_cookie
codec = lookup(enco... | LookupError |
def _open(filename):
"""Open a file in read only mode using the encoding detected by
detect_encoding().
"""
buffer = open(filename, "rb")
try:
encoding = File.detect_encoding(filename, buffer.readline)
buffer.seek(0)
text = TextIOWrapper(buffer, encoding, line_buffering=True,... | def _open(filename):
"""Open a file in read only mode using the encoding detected by
detect_encoding().
"""
buffer = open(filename, "rb")
try:
encoding, _ = tokenize.detect_encoding(buffer.readline)
buffer.seek(0)
text = TextIOWrapper(buffer, encoding, line_buffering=True, ne... | https://github.com/PyCQA/isort/issues/1487 | ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
File "/usr/lib/python3.8/tokenize.py", line 342, in find_cookie
codec = lookup(enco... | LookupError |
def __init__(
self, incorrectly_sorted: bool, skipped: bool, supported_encoding: bool
) -> None:
self.incorrectly_sorted = incorrectly_sorted
self.skipped = skipped
self.supported_encoding = supported_encoding
| def __init__(self, incorrectly_sorted: bool, skipped: bool) -> None:
self.incorrectly_sorted = incorrectly_sorted
self.skipped = skipped
| https://github.com/PyCQA/isort/issues/1487 | ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
File "/usr/lib/python3.8/tokenize.py", line 342, in find_cookie
codec = lookup(enco... | LookupError |
def sort_imports(
file_name: str,
config: Config,
check: bool = False,
ask_to_apply: bool = False,
write_to_stdout: bool = False,
**kwargs: Any,
) -> Optional[SortAttempt]:
try:
incorrectly_sorted: bool = False
skipped: bool = False
if check:
try:
... | def sort_imports(
file_name: str,
config: Config,
check: bool = False,
ask_to_apply: bool = False,
write_to_stdout: bool = False,
**kwargs: Any,
) -> Optional[SortAttempt]:
try:
incorrectly_sorted: bool = False
skipped: bool = False
if check:
try:
... | https://github.com/PyCQA/isort/issues/1487 | ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
File "/usr/lib/python3.8/tokenize.py", line 342, in find_cookie
codec = lookup(enco... | LookupError |
def main(
argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = None
) -> None:
arguments = parse_args(argv)
if arguments.get("show_version"):
print(ASCII_ART)
return
show_config: bool = arguments.pop("show_config", False)
show_files: bool = arguments.pop("show_file... | def main(
argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = None
) -> None:
arguments = parse_args(argv)
if arguments.get("show_version"):
print(ASCII_ART)
return
show_config: bool = arguments.pop("show_config", False)
show_files: bool = arguments.pop("show_file... | https://github.com/PyCQA/isort/issues/1487 | ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
File "/usr/lib/python3.8/tokenize.py", line 342, in find_cookie
codec = lookup(enco... | LookupError |
def _known_pattern(name: str, config: Config) -> Optional[Tuple[str, str]]:
parts = name.split(".")
module_names_to_check = (
".".join(parts[:first_k]) for first_k in range(len(parts), 0, -1)
)
for module_name_to_check in module_names_to_check:
for pattern, placement in config.known_patt... | def _known_pattern(name: str, config: Config) -> Optional[Tuple[str, str]]:
parts = name.split(".")
module_names_to_check = (
".".join(parts[:first_k]) for first_k in range(len(parts), 0, -1)
)
for module_name_to_check in module_names_to_check:
for pattern, placement in config.known_patt... | https://github.com/PyCQA/isort/issues/1505 | lint installed: appdirs==1.4.4,black==20.8b1,bleach==3.2.1,check-manifest==0.43,click==7.1.2,docutils==0.16,flake8==3.8.3,isort==5.5.3,mccabe==0.6.1,mypy-extensions==0.4.3,packaging==20.4,pathspec==0.8.0,pep517==0.8.2,pycodestyle==2.6.0,pyflakes==2.2.0,Pygments==2.7.1,pyparsing==2.4.7,readme-renderer==26.0,regex==2020.... | KeyError |
def process(
input_stream: TextIO,
output_stream: TextIO,
extension: str = "py",
config: Config = DEFAULT_CONFIG,
) -> bool:
"""Parses stream identifying sections of contiguous imports and sorting them
Code with unsorted imports is read from the provided `input_stream`, sorted and then
outp... | def process(
input_stream: TextIO,
output_stream: TextIO,
extension: str = "py",
config: Config = DEFAULT_CONFIG,
) -> bool:
"""Parses stream identifying sections of contiguous imports and sorting them
Code with unsorted imports is read from the provided `input_stream`, sorted and then
outp... | https://github.com/PyCQA/isort/issues/1453 | $ echo "\n" > example.py
$ .venv/bin/isort --float-to-top example.py
Traceback (most recent call last):
File ".venv/bin/isort", line 10, in <module>
sys.exit(main())
File ".venv/lib/python3.8/site-packages/isort/main.py", line 876, in main
for sort_attempt in attempt_iterator:
File ".venv/lib/python3.8/site-packages/is... | IndexError |
def sort_imports(
file_name: str,
config: Config,
check: bool = False,
ask_to_apply: bool = False,
write_to_stdout: bool = False,
**kwargs: Any,
) -> Optional[SortAttempt]:
try:
incorrectly_sorted: bool = False
skipped: bool = False
if check:
try:
... | def sort_imports(
file_name: str,
config: Config,
check: bool = False,
ask_to_apply: bool = False,
write_to_stdout: bool = False,
**kwargs: Any,
) -> Optional[SortAttempt]:
try:
incorrectly_sorted: bool = False
skipped: bool = False
if check:
try:
... | https://github.com/PyCQA/isort/issues/1453 | $ echo "\n" > example.py
$ .venv/bin/isort --float-to-top example.py
Traceback (most recent call last):
File ".venv/bin/isort", line 10, in <module>
sys.exit(main())
File ".venv/lib/python3.8/site-packages/isort/main.py", line 876, in main
for sort_attempt in attempt_iterator:
File ".venv/lib/python3.8/site-packages/is... | IndexError |
def main(
argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = None
) -> None:
arguments = parse_args(argv)
if arguments.get("show_version"):
print(ASCII_ART)
return
show_config: bool = arguments.pop("show_config", False)
if "settings_path" in arguments:
i... | def main(
argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = None
) -> None:
arguments = parse_args(argv)
if arguments.get("show_version"):
print(ASCII_ART)
return
show_config: bool = arguments.pop("show_config", False)
if "settings_path" in arguments:
i... | https://github.com/PyCQA/isort/issues/1447 | Traceback (most recent call last):
File "C:\Users\karraj\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\karraj\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Us... | TypeError |
def parse_args(argv: Optional[Sequence[str]] = None) -> Dict[str, Any]:
argv = sys.argv[1:] if argv is None else list(argv)
remapped_deprecated_args = []
for index, arg in enumerate(argv):
if arg in DEPRECATED_SINGLE_DASH_ARGS:
remapped_deprecated_args.append(arg)
argv[index]... | def parse_args(argv: Optional[Sequence[str]] = None) -> Dict[str, Any]:
argv = sys.argv[1:] if argv is None else list(argv)
remapped_deprecated_args = []
for index, arg in enumerate(argv):
if arg in DEPRECATED_SINGLE_DASH_ARGS:
remapped_deprecated_args.append(arg)
argv[index]... | https://github.com/PyCQA/isort/issues/1375 | ✗ isort myfile.py --dont-order-by-type
Traceback (most recent call last):
File "/usr/local/bin/isort", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/isort/main.py", line 812, in main
config = Config(**config_dict)
File "/usr/local/lib/python3.7/site-packages/isort/settings.py", line ... | TypeError |
def sort_stream(
input_stream: TextIO,
output_stream: TextIO,
extension: Optional[str] = None,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
disregard_skip: bool = False,
show_diff: bool = False,
**config_kwargs,
):
"""Sorts any imports within the provided code s... | def sort_stream(
input_stream: TextIO,
output_stream: TextIO,
extension: Optional[str] = None,
config: Config = DEFAULT_CONFIG,
file_path: Optional[Path] = None,
disregard_skip: bool = False,
**config_kwargs,
):
"""Sorts any imports within the provided code stream, outputs to the provide... | https://github.com/PyCQA/isort/issues/1189 | $ cat demo.py
import os, sys, collections
$ isort --diff - < demo.py
Traceback (most recent call last):
File "/home/peter/.virtualenvs/isort/bin/isort", line 11, in <module>
load_entry_point('isort', 'console_scripts', 'isort')()
File "/home/play/isort/isort/main.py", line 600, in main
**arguments,
File "/home/play/is... | TypeError |
def show_unified_diff(
*, file_input: str, file_output: str, file_path: Optional[Path], output=sys.stdout
):
file_name = "" if file_path is None else str(file_path)
file_mtime = str(
datetime.now()
if file_path is None
else datetime.fromtimestamp(file_path.stat().st_mtime)
)
... | def show_unified_diff(*, file_input: str, file_output: str, file_path: Optional[Path]):
file_name = "" if file_path is None else str(file_path)
file_mtime = str(
datetime.now()
if file_path is None
else datetime.fromtimestamp(file_path.stat().st_mtime)
)
unified_diff_lines = uni... | https://github.com/PyCQA/isort/issues/1189 | $ cat demo.py
import os, sys, collections
$ isort --diff - < demo.py
Traceback (most recent call last):
File "/home/peter/.virtualenvs/isort/bin/isort", line 11, in <module>
load_entry_point('isort', 'console_scripts', 'isort')()
File "/home/play/isort/isort/main.py", line 600, in main
**arguments,
File "/home/play/is... | TypeError |
def _build_arg_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
description="Sort Python import definitions alphabetically "
"within logical sections. Run with no arguments to run "
"interactively. Run with `-` as the first argument to read from "
"stdin. Otherw... | def _build_arg_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
description="Sort Python import definitions alphabetically "
"within logical sections. Run with no arguments to run "
"interactively. Run with `-` as the first argument to read from "
"stdin. Otherw... | https://github.com/PyCQA/isort/issues/1241 | $ isort --src-path=. .
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/anders/python/isort/isort/main.py", line 647, in main
config = Config(**config_dict)
File "/home/anders/python/isort/isort/settings.py", line 329, in __init__
super().__init__(sources=tuple(sources), **combined_co... | TypeError |
def main(
argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = None
) -> None:
arguments = parse_args(argv)
if arguments.get("show_version"):
print(ASCII_ART)
return
show_config: bool = arguments.pop("show_config", False)
if "settings_path" in arguments:
i... | def main(
argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = None
) -> None:
arguments = parse_args(argv)
if arguments.get("show_version"):
print(ASCII_ART)
return
show_config: bool = arguments.pop("show_config", False)
if "settings_path" in arguments:
i... | https://github.com/PyCQA/isort/issues/1241 | $ isort --src-path=. .
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/anders/python/isort/isort/main.py", line 647, in main
config = Config(**config_dict)
File "/home/anders/python/isort/isort/settings.py", line 329, in __init__
super().__init__(sources=tuple(sources), **combined_co... | TypeError |
def find(self, module_name):
for finder in self.finders:
try:
section = finder.find(module_name)
except Exception as exception:
# isort has to be able to keep trying to identify the correct import section even if one approach fails
if config.get("verbose", False):... | def find(self, module_name):
for finder in self.finders:
section = finder.find(module_name)
if section is not None:
return section
| https://github.com/PyCQA/isort/issues/827 | $ isort
Traceback (most recent call last):
File "/home/vagrant/python/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 93, in __init__
req = REQUIREMENT.parseString(requirement_string)
File "/home/vagrant/python/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1814, in parseString
rai... | pip._internal.exceptions.InstallationError |
def create_domain_name(
self,
protocol, # type: str
domain_name, # type: str
endpoint_type, # type: str
certificate_arn, # type: str
security_policy=None, # type: Optional[str]
tags=None, # type: StrMap
):
# type: (...) -> DomainNameResponse
if protocol == "HTTP":
kwarg... | def create_domain_name(
self,
protocol, # type: str
domain_name, # type: str
endpoint_type, # type: str
certificate_arn, # type: str
security_policy=None, # type: Optional[str]
tags=None, # type: StrMap
):
# type: (...) -> Dict[str, Any]
if protocol == "HTTP":
kwargs = ... | https://github.com/aws/chalice/issues/1531 | Updating custom domain name: api.transferbank.com.br
Traceback (most recent call last):
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main
return cli(obj={})
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/click/core.py... | KeyError |
def _create_domain_name(self, api_args):
# type: (Dict[str, Any]) -> DomainNameResponse
client = self._client("apigateway")
exceptions = (client.exceptions.TooManyRequestsException,)
result = self._call_client_method_with_retries(
client.create_domain_name,
api_args,
max_attempts... | def _create_domain_name(self, api_args):
# type: (Dict[str, Any]) -> Dict[str, Any]
client = self._client("apigateway")
exceptions = (client.exceptions.TooManyRequestsException,)
result = self._call_client_method_with_retries(
client.create_domain_name,
api_args,
max_attempts=6,
... | https://github.com/aws/chalice/issues/1531 | Updating custom domain name: api.transferbank.com.br
Traceback (most recent call last):
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main
return cli(obj={})
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/click/core.py... | KeyError |
def _create_domain_name_v2(self, api_args):
# type: (Dict[str, Any]) -> DomainNameResponse
client = self._client("apigatewayv2")
exceptions = (client.exceptions.TooManyRequestsException,)
result = self._call_client_method_with_retries(
client.create_domain_name,
api_args,
max_att... | def _create_domain_name_v2(self, api_args):
# type: (Dict[str, Any]) -> Dict[str, Any]
client = self._client("apigatewayv2")
exceptions = (client.exceptions.TooManyRequestsException,)
result = self._call_client_method_with_retries(
client.create_domain_name,
api_args,
max_attempt... | https://github.com/aws/chalice/issues/1531 | Updating custom domain name: api.transferbank.com.br
Traceback (most recent call last):
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main
return cli(obj={})
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/click/core.py... | KeyError |
def update_domain_name(
self,
protocol, # type: str
domain_name, # type: str
endpoint_type, # type: str
certificate_arn, # type: str
security_policy=None, # type: Optional[str]
tags=None, # type: StrMap
):
# type: (...) -> DomainNameResponse
if protocol == "HTTP":
patch... | def update_domain_name(
self,
protocol, # type: str
domain_name, # type: str
endpoint_type, # type: str
certificate_arn, # type: str
security_policy=None, # type: Optional[str]
tags=None, # type: StrMap
):
# type: (...) -> Dict[str, Any]
if protocol == "HTTP":
patch_ope... | https://github.com/aws/chalice/issues/1531 | Updating custom domain name: api.transferbank.com.br
Traceback (most recent call last):
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main
return cli(obj={})
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/click/core.py... | KeyError |
def _update_domain_name(self, custom_domain_name, patch_operations):
# type: (str, List[Dict[str, str]]) -> DomainNameResponse
client = self._client("apigateway")
exceptions = (client.exceptions.TooManyRequestsException,)
result = {}
for patch_operation in patch_operations:
api_args = {
... | def _update_domain_name(self, custom_domain_name, patch_operations):
# type: (str, List[Dict[str, str]]) -> Dict[str, Any]
client = self._client("apigateway")
exceptions = (client.exceptions.TooManyRequestsException,)
result = {}
for patch_operation in patch_operations:
api_args = {
... | https://github.com/aws/chalice/issues/1531 | Updating custom domain name: api.transferbank.com.br
Traceback (most recent call last):
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main
return cli(obj={})
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/click/core.py... | KeyError |
def _update_domain_name_v2(self, api_args):
# type: (Dict[str, Any]) -> DomainNameResponse
client = self._client("apigatewayv2")
exceptions = (client.exceptions.TooManyRequestsException,)
result = self._call_client_method_with_retries(
client.update_domain_name,
api_args,
max_at... | def _update_domain_name_v2(self, api_args):
# type: (Dict[str, Any]) -> Dict[str, Any]
client = self._client("apigatewayv2")
exceptions = (client.exceptions.TooManyRequestsException,)
result = self._call_client_method_with_retries(
client.update_domain_name,
api_args,
max_attemp... | https://github.com/aws/chalice/issues/1531 | Updating custom domain name: api.transferbank.com.br
Traceback (most recent call last):
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main
return cli(obj={})
File "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/click/core.py... | KeyError |
def iter_log_events(self, log_group_name, interleaved=True):
# type: (str, bool) -> Iterator[Dict[str, Any]]
logs = self._client("logs")
paginator = logs.get_paginator("filter_log_events")
pages = paginator.paginate(logGroupName=log_group_name, interleaved=True)
try:
for log_message in self.... | def iter_log_events(self, log_group_name, interleaved=True):
# type: (str, bool) -> Iterator[Dict[str, Any]]
logs = self._client("logs")
paginator = logs.get_paginator("filter_log_events")
for page in paginator.paginate(logGroupName=log_group_name, interleaved=True):
events = page["events"]
... | https://github.com/aws/chalice/issues/1252 | $ cat app.py
from chalice import Chalice
app = Chalice(app_name='testlambda')
@app.lambda_function()
def index(event, context):
print("foo bar baz")
return {'hello': 'world'}
$ chalice deploy
...
$ chalice logs -n index
Traceback (most recent call last):
File "chalice/chalice/cli/__init__.py", line 485, in main
ret... | botocore.errorfactory.ResourceNotFoundException |
def __init__(self, osutils=None, import_string=None):
# type: (Optional[OSUtils], OptStr) -> None
if osutils is None:
osutils = OSUtils()
self._osutils = osutils
if import_string is None:
import_string = pip_import_string()
self._import_string = import_string
| def __init__(self, osutils=None):
# type: (Optional[OSUtils]) -> None
if osutils is None:
osutils = OSUtils()
self._osutils = osutils
| https://github.com/aws/chalice/issues/808 | chalice.deploy.packager.PackageDownloadError: Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'pip' has no attribute 'main' | AttributeError |
def main(self, args, env_vars=None, shim=None):
# type: (List[str], EnvVars, OptStr) -> Tuple[int, Optional[bytes]]
if env_vars is None:
env_vars = self._osutils.environ()
if shim is None:
shim = ""
python_exe = sys.executable
run_pip = ("import sys; %s; sys.exit(main(%s))") % (self.... | def main(self, args, env_vars=None, shim=None):
# type: (List[str], EnvVars, OptStr) -> Tuple[int, Optional[bytes]]
if env_vars is None:
env_vars = self._osutils.environ()
if shim is None:
shim = ""
python_exe = sys.executable
run_pip = "import pip, sys; sys.exit(pip.main(%s))" % arg... | https://github.com/aws/chalice/issues/808 | chalice.deploy.packager.PackageDownloadError: Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'pip' has no attribute 'main' | AttributeError |
def index(self, locale):
if locale not in self.appbuilder.bm.languages:
abort(404, description="Locale not supported.")
session["locale"] = locale
refresh()
self.update_redirect()
return redirect(self.get_redirect())
| def index(self, locale):
session["locale"] = locale
refresh()
self.update_redirect()
return redirect(self.get_redirect())
| https://github.com/dpgaspar/Flask-AppBuilder/issues/1459 | Traceback (most recent call last):
File "C:\Users\myuser\PycharmProjects\FAB-test-site\venv\Lib\site-packages\flask\app.py", line 2464, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Users\myuser\PycharmProjects\FAB-test-site\venv\Lib\site-packages\flask\app.py", line 2450, in wsgi_app
response = se... | babel.core.UnknownLocaleError |
def login(self, flag=True):
@self.appbuilder.sm.oid.loginhandler
def login_handler(self):
if g.user is not None and g.user.is_authenticated:
return redirect(self.appbuilder.get_url_for_index)
form = LoginForm_oid()
if form.validate_on_submit():
session["remember_m... | def login(self, flag=True):
@self.appbuilder.sm.oid.loginhandler
def login_handler(self):
if g.user is not None and g.user.is_authenticated:
return redirect(self.appbuilder.get_url_for_index)
form = LoginForm_oid()
if form.validate_on_submit():
session["remember_m... | https://github.com/dpgaspar/Flask-AppBuilder/issues/1260 | File "/home/aman/superset/lib/python3.6/site-packages/flask_appbuilder/security/views.py", line 678, in oauth_authorized
resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()
KeyError: 'login' | KeyError |
def after_login(resp):
if resp.email is None or resp.email == "":
flash(as_unicode(self.invalid_login_message), "warning")
return redirect(self.appbuilder.get_url_for_login)
user = self.appbuilder.sm.auth_user_oid(resp.email)
if user is None:
flash(as_unicode(self.invalid_login_messa... | def after_login(resp):
if resp.email is None or resp.email == "":
flash(as_unicode(self.invalid_login_message), "warning")
return redirect("login")
user = self.appbuilder.sm.auth_user_oid(resp.email)
if user is None:
flash(as_unicode(self.invalid_login_message), "warning")
re... | https://github.com/dpgaspar/Flask-AppBuilder/issues/1260 | File "/home/aman/superset/lib/python3.6/site-packages/flask_appbuilder/security/views.py", line 678, in oauth_authorized
resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()
KeyError: 'login' | KeyError |
def oauth_authorized(self, provider):
log.debug("Authorized init")
resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()
if resp is None:
flash("You denied the request to sign in.", "warning")
return redirect(self.appbuilder.get_url_for_login)
log.debug("OAUTH Authorize... | def oauth_authorized(self, provider):
log.debug("Authorized init")
resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()
if resp is None:
flash("You denied the request to sign in.", "warning")
return redirect("login")
log.debug("OAUTH Authorized resp: {0}".format(resp))... | https://github.com/dpgaspar/Flask-AppBuilder/issues/1260 | File "/home/aman/superset/lib/python3.6/site-packages/flask_appbuilder/security/views.py", line 678, in oauth_authorized
resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()
KeyError: 'login' | KeyError |
def _query_select_options(self, query, select_columns=None):
"""
Add select load options to query. The goal
is to only SQL select what is requested
:param query: SQLAlchemy Query obj
:param select_columns: (list) of columns
:return: SQLAlchemy Query obj
"""
if select_columns:
... | def _query_select_options(self, query, select_columns=None):
"""
Add select load options to query. The goal
is to only SQL select what is requested
:param query: SQLAlchemy Query obj
:param select_columns: (list) of columns
:return: SQLAlchemy Query obj
"""
if select_columns:
... | https://github.com/dpgaspar/Flask-AppBuilder/issues/1026 | sqlalchemy.exc.AmbiguousForeignKeysError: Can't determine join between 'project' and 'ab_user'; tables have more than one foreign key constraint relationship between them. Please specify the 'onclause' of this join explicitly. | sqlalchemy.exc.AmbiguousForeignKeysError |
def query(
self,
filters=None,
order_column="",
order_direction="",
page=None,
page_size=None,
select_columns=None,
):
"""
QUERY
:param filters:
dict with filters {<col_name>:<value,...}
:param order_column:
name of the column to order
:param order_directi... | def query(
self,
filters=None,
order_column="",
order_direction="",
page=None,
page_size=None,
select_columns=None,
):
"""
QUERY
:param filters:
dict with filters {<col_name>:<value,...}
:param order_column:
name of the column to order
:param order_directi... | https://github.com/dpgaspar/Flask-AppBuilder/issues/1026 | sqlalchemy.exc.AmbiguousForeignKeysError: Can't determine join between 'project' and 'ab_user'; tables have more than one foreign key constraint relationship between them. Please specify the 'onclause' of this join explicitly. | sqlalchemy.exc.AmbiguousForeignKeysError |
def auth_user_ldap(self, username, password):
"""
Method for authenticating user, auth LDAP style.
depends on ldap module that is not mandatory requirement
for F.A.B.
:param username:
The username
:param password:
The password
"""
if username is None or username == "":
... | def auth_user_ldap(self, username, password):
"""
Method for authenticating user, auth LDAP style.
depends on ldap module that is not mandatory requirement
for F.A.B.
:param username:
The username
:param password:
The password
"""
if username is None or username == "":
... | https://github.com/dpgaspar/Flask-AppBuilder/issues/544 | Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1614, in fu... | TypeError |
def _get_base_query(
self, query=None, filters=None, order_column="", order_direction=""
):
if filters:
query = filters.apply_all(query)
if order_column != "":
# if Model has custom decorator **renders('<COL_NAME>')**
# this decorator will add a property to the method named *_col_nam... | def _get_base_query(
self, query=None, filters=None, order_column="", order_direction=""
):
if filters:
query = filters.apply_all(query)
if order_column != "":
# if Model has custom decorator **renders('<COL_NAME>')**
# this decorator will add a property to the method named *_col_nam... | https://github.com/dpgaspar/Flask-AppBuilder/issues/544 | Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1614, in fu... | TypeError |
def get_order_args():
"""
Get order arguments, return a dictionary
{ <VIEW_NAME>: (ORDER_COL, ORDER_DIRECTION) }
Arguments are passed like: _oc_<VIEW_NAME>=<COL_NAME>&_od_<VIEW_NAME>='asc'|'desc'
"""
orders = {}
for arg in request.args:
re_match = re.findall("_oc_(.*)", arg)
... | def get_order_args():
"""
Get order arguments, return a dictionary
{ <VIEW_NAME>: (ORDER_COL, ORDER_DIRECTION) }
Arguments are passed like: _oc_<VIEW_NAME>=<COL_NAME>&_od_<VIEW_NAME>='asc'|'desc'
"""
orders = {}
for arg in request.args:
re_match = re.findall("_oc_(.*)", arg)
... | https://github.com/dpgaspar/Flask-AppBuilder/issues/544 | Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1614, in fu... | TypeError |
def _get_attr_value(item, col):
if not hasattr(item, col):
# it's an inner obj attr
try:
return reduce(getattr, col.split("."), item)
except Exception as e:
return ""
if hasattr(getattr(item, col), "__call__"):
# its a function
return getattr(item,... | def _get_attr_value(self, item, col):
if not hasattr(item, col):
# it's an inner obj attr
try:
return reduce(getattr, col.split("."), item)
except Exception as e:
return ""
if hasattr(getattr(item, col), "__call__"):
# its a function
return getattr... | https://github.com/dpgaspar/Flask-AppBuilder/issues/544 | Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1614, in fu... | TypeError |
def _get_base_query(
self, query=None, filters=None, order_column="", order_direction=""
):
if filters:
query = filters.apply_all(query)
if order_column != "":
# if Model has custom decorator **renders('<COL_NAME>')**
# this decorator will add a property to the method named *_col_nam... | def _get_base_query(
self, query=None, filters=None, order_column="", order_direction=""
):
if filters:
query = filters.apply_all(query)
if order_column != "":
# if Model has custom decorator **renders('<COL_NAME>')**
# this decorator will add a property to the method named *_col_nam... | https://github.com/dpgaspar/Flask-AppBuilder/issues/544 | Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/opt/superset/.env/lib/python2.7/site-packages/flask/app.py", line 1614, in fu... | TypeError |
def solve(self, problem: QuadraticProgram) -> ADMMOptimizationResult:
"""Tries to solves the given problem using ADMM algorithm.
Args:
problem: The problem to be solved.
Returns:
The result of the optimizer applied to the problem.
Raises:
QiskitOptimizationError: If the proble... | def solve(self, problem: QuadraticProgram) -> ADMMOptimizationResult:
"""Tries to solves the given problem using ADMM algorithm.
Args:
problem: The problem to be solved.
Returns:
The result of the optimizer applied to the problem.
Raises:
QiskitOptimizationError: If the proble... | https://github.com/Qiskit/qiskit-aqua/issues/1392 | Traceback (most recent call last):
File ".../admmprove.py", line 53, in <module>
result_q = admm_q.solve(qp)
File ".../qiskit-aqua/qiskit/optimization/algorithms/admm_optimizer.py", line 381, in solve
OptimizationResultStatus.SUCCESS)
File ".../qiskit-aqua/qiskit/optimization/algorithms/optimization_algorithm.py", line... | qiskit.optimization.exceptions.QiskitOptimizationError |
def solve(self, problem: QuadraticProgram) -> OptimizationResult:
"""Tries to solves the given problem using the grover optimizer.
Runs the optimizer to try to solve the optimization problem. If the problem cannot be,
converted to a QUBO, this optimizer raises an exception due to incompatibility.
Args... | def solve(self, problem: QuadraticProgram) -> OptimizationResult:
"""Tries to solves the given problem using the grover optimizer.
Runs the optimizer to try to solve the optimization problem. If the problem cannot be,
converted to a QUBO, this optimizer raises an exception due to incompatibility.
Args... | https://github.com/Qiskit/qiskit-aqua/issues/1279 | No classical registers in circuit "circuit9", counts will be empty.
Traceback (most recent call last):
File "scratch.py", line 101, in <module>
results = grover_optimizer.solve(qp)
File "/home/will/miniconda3/envs/dev/lib/python3.8/site-packages/qiskit/optimization/algorithms/grover_optimizer.py", line 218, in solve
ou... | IndexError |
def _get_probs(self, qc: QuantumCircuit) -> Dict[str, float]:
"""Gets probabilities from a given backend."""
# Execute job and filter results.
result = self.quantum_instance.execute(qc)
if self.quantum_instance.is_statevector:
state = np.round(result.get_statevector(qc), 5)
keys = [
... | def _get_probs(self, qc: QuantumCircuit) -> Dict[str, float]:
"""Gets probabilities from a given backend."""
# Execute job and filter results.
result = self.quantum_instance.execute(qc)
if self.quantum_instance.is_statevector:
state = np.round(result.get_statevector(qc), 5)
keys = [
... | https://github.com/Qiskit/qiskit-aqua/issues/1279 | No classical registers in circuit "circuit9", counts will be empty.
Traceback (most recent call last):
File "scratch.py", line 101, in <module>
results = grover_optimizer.solve(qp)
File "/home/will/miniconda3/envs/dev/lib/python3.8/site-packages/qiskit/optimization/algorithms/grover_optimizer.py", line 218, in solve
ou... | IndexError |
def get_kernel_matrix(
quantum_instance, feature_map, x1_vec, x2_vec=None, enforce_psd=True
):
"""
Construct kernel matrix, if x2_vec is None, self-innerproduct is conducted.
Notes:
When using `statevector_simulator`,
we only build the circuits for Psi(x1)|0> rather than
Psi(x2)... | def get_kernel_matrix(quantum_instance, feature_map, x1_vec, x2_vec=None):
"""
Construct kernel matrix, if x2_vec is None, self-innerproduct is conducted.
Notes:
When using `statevector_simulator`,
we only build the circuits for Psi(x1)|0> rather than
Psi(x2)^dagger Psi(x1)|0>, and ... | https://github.com/Qiskit/qiskit-aqua/issues/1106 | ---------------------------------------------------------------------------
DQCPError Traceback (most recent call last)
in
7 quantum_instance = QuantumInstance(backend, shots=1024, seed_simulator=seed, seed_transpiler=seed)
8
----> 9 result = qsvm.run(quantum_instance)
10
11 print("testi... | DQCPError |
def optimize(
self,
num_vars,
objective_function,
gradient_function=None,
variable_bounds=None,
initial_point=None,
):
num_procs = multiprocessing.cpu_count() - 1
num_procs = (
num_procs
if self._max_processes is None
else min(num_procs, self._max_processes)
)... | def optimize(
self,
num_vars,
objective_function,
gradient_function=None,
variable_bounds=None,
initial_point=None,
):
num_procs = multiprocessing.cpu_count() - 1
num_procs = (
num_procs
if self._max_processes is None
else min(num_procs, self._max_processes)
)... | https://github.com/Qiskit/qiskit-aqua/issues/1109 | Traceback (most recent call last):
File "<pathToAqua>/qiskit-aqua/test/aqua/test_optimizers.py", line 68, in test_p_bfgs
res = self._optimize(optimizer)
File "<pathToAqua>/qiskit-aqua/test/aqua/test_optimizers.py", line 37, in _optimize
res = optimizer.optimize(len(x_0), rosen, initial_point=x_0)
File "<pathToAqua>/... | AttributeError |
def solve(self, problem: QuadraticProgram) -> MinimumEigenOptimizerResult:
"""Tries to solves the given problem using the optimizer.
Runs the optimizer to try to solve the optimization problem.
Args:
problem: The problem to be solved.
Returns:
The result of the optimizer applied to th... | def solve(self, problem: QuadraticProgram) -> MinimumEigenOptimizerResult:
"""Tries to solves the given problem using the optimizer.
Runs the optimizer to try to solve the optimization problem.
Args:
problem: The problem to be solved.
Returns:
The result of the optimizer applied to th... | https://github.com/Qiskit/qiskit-aqua/issues/969 | ------------------
rqaoa_result = rqaoa.solve(qubo)
print(rqaoa_result)
------------------
---------------------------------------------------------------------------
QiskitOptimizationError Traceback (most recent call last)
<ipython-input-11-6852684b0186> in <module>
----> 1 rqaoa_result = rqaoa.sol... | QiskitOptimizationError |
def solve(self, problem: QuadraticProgram) -> OptimizationResult:
"""Tries to solve the given problem using the recursive optimizer.
Runs the optimizer to try to solve the optimization problem.
Args:
problem: The problem to be solved.
Returns:
The result of the optimizer applied to th... | def solve(self, problem: QuadraticProgram) -> OptimizationResult:
"""Tries to solve the given problem using the recursive optimizer.
Runs the optimizer to try to solve the optimization problem.
Args:
problem: The problem to be solved.
Returns:
The result of the optimizer applied to th... | https://github.com/Qiskit/qiskit-aqua/issues/969 | ------------------
rqaoa_result = rqaoa.solve(qubo)
print(rqaoa_result)
------------------
---------------------------------------------------------------------------
QiskitOptimizationError Traceback (most recent call last)
<ipython-input-11-6852684b0186> in <module>
----> 1 rqaoa_result = rqaoa.sol... | QiskitOptimizationError |
def _find_strongest_correlation(self, correlations):
# get absolute values and set diagonal to -1 to make sure maximum is always on off-diagonal
abs_correlations = np.abs(correlations)
for i in range(len(correlations)):
abs_correlations[i, i] = -1
# get index of maximum (by construction on off-... | def _find_strongest_correlation(self, correlations):
m_max = np.argmax(np.abs(correlations.flatten()))
i = int(m_max // len(correlations))
j = int(m_max - i * len(correlations))
return (i, j)
| https://github.com/Qiskit/qiskit-aqua/issues/969 | ------------------
rqaoa_result = rqaoa.solve(qubo)
print(rqaoa_result)
------------------
---------------------------------------------------------------------------
QiskitOptimizationError Traceback (most recent call last)
<ipython-input-11-6852684b0186> in <module>
----> 1 rqaoa_result = rqaoa.sol... | QiskitOptimizationError |
def _livereload(host, port, config, builder, site_dir):
# We are importing here for anyone that has issues with livereload. Even if
# this fails, the --no-livereload alternative should still work.
_init_asyncio_patch()
from livereload import Server
import livereload.handlers
class LiveReloadSer... | def _livereload(host, port, config, builder, site_dir):
# We are importing here for anyone that has issues with livereload. Even if
# this fails, the --no-livereload alternative should still work.
from livereload import Server
import livereload.handlers
class LiveReloadServer(Server):
def g... | https://github.com/mkdocs/mkdocs/issues/1885 | C:\dev\testing
λ mkdocs serve
INFO - Building documentation...
INFO - Cleaning site directory
[I 191017 14:49:48 server:296] Serving on http://127.0.0.1:8000
Traceback (most recent call last):
File "c:\users\aleksandr.skobelev\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_ma... | NotImplementedError |
def _static_server(host, port, site_dir):
# Importing here to seperate the code paths from the --livereload
# alternative.
_init_asyncio_patch()
from tornado import ioloop
from tornado import web
application = web.Application(
[
(
r"/(.*)",
_g... | def _static_server(host, port, site_dir):
# Importing here to seperate the code paths from the --livereload
# alternative.
from tornado import ioloop
from tornado import web
application = web.Application(
[
(
r"/(.*)",
_get_handler(site_dir, web.S... | https://github.com/mkdocs/mkdocs/issues/1885 | C:\dev\testing
λ mkdocs serve
INFO - Building documentation...
INFO - Cleaning site directory
[I 191017 14:49:48 server:296] Serving on http://127.0.0.1:8000
Traceback (most recent call last):
File "c:\users\aleksandr.skobelev\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_ma... | NotImplementedError |
def serve(
config_file=None,
dev_addr=None,
strict=None,
theme=None,
theme_dir=None,
livereload="livereload",
):
"""
Start the MkDocs development server
By default it will serve the documentation on http://localhost:8000/ and
it will rebuild the documentation and refresh the pag... | def serve(
config_file=None,
dev_addr=None,
strict=None,
theme=None,
theme_dir=None,
livereload="livereload",
):
"""
Start the MkDocs development server
By default it will serve the documentation on http://localhost:8000/ and
it will rebuild the documentation and refresh the pag... | https://github.com/mkdocs/mkdocs/issues/1516 | Exception in callback <bound method type.poll_tasks of <class 'livereload.handlers.LiveReloadHandler'>>
Traceback (most recent call last):
File "/Users/waylan/VirtualEnvs/mkdocs/lib/python2.7/site-packages/tornado/ioloop.py", line 1209, in _run
return self.callback()
File "/Users/waylan/VirtualEnvs/mkdocs/lib/python2.7... | UnicodeDecodeError |
def builder():
log.info("Building documentation...")
config = load_config(
config_file=config_file,
dev_addr=dev_addr,
strict=strict,
theme=theme,
theme_dir=theme_dir,
site_dir=site_dir,
)
# Override a few config settings after validation
config["site_... | def builder():
log.info("Building documentation...")
config = load_config(
config_file=config_file,
dev_addr=dev_addr,
strict=strict,
theme=theme,
theme_dir=theme_dir,
)
# Override a few config settings after validation
config["site_dir"] = tempdir
config[... | https://github.com/mkdocs/mkdocs/issues/1516 | Exception in callback <bound method type.poll_tasks of <class 'livereload.handlers.LiveReloadHandler'>>
Traceback (most recent call last):
File "/Users/waylan/VirtualEnvs/mkdocs/lib/python2.7/site-packages/tornado/ioloop.py", line 1209, in _run
return self.callback()
File "/Users/waylan/VirtualEnvs/mkdocs/lib/python2.7... | UnicodeDecodeError |
def copy_file(source_path, output_path):
"""
Copy source_path to output_path, making sure any parent directories exist.
The output_path may be a directory.
"""
output_dir = os.path.dirname(output_path)
if not os.path.exists(output_dir):
os.makedirs(output_dir)
if os.path.isdir(outpu... | def copy_file(source_path, output_path):
"""
Copy source_path to output_path, making sure any parent directories exist.
"""
output_dir = os.path.dirname(output_path)
if not os.path.exists(output_dir):
os.makedirs(output_dir)
shutil.copy(source_path, output_path)
| https://github.com/mkdocs/mkdocs/issues/1292 | $ mkdocs build
WARNING - Config value: 'extra_javascript'. Warning: The following files have been automatically included in the documentation build and will be added to the HTML: highlight/theme/js/highlight.pack.js. This behavior is deprecated. In version 1.0 and later they will need to be explicitly listed in the 'e... | IOError |
def _livereload(host, port, config, builder, site_dir):
# We are importing here for anyone that has issues with livereload. Even if
# this fails, the --no-livereload alternative should still work.
from livereload import Server
import livereload.handlers
class LiveReloadServer(Server):
def g... | def _livereload(host, port, config, builder, site_dir):
# We are importing here for anyone that has issues with livereload. Even if
# this fails, the --no-livereload alternative should still work.
from livereload import Server
import livereload.handlers
class LiveReloadServer(Server):
def g... | https://github.com/mkdocs/mkdocs/issues/1237 | INFO - Building documentation...
INFO - Cleaning site directory
Traceback (most recent call last):
File "/home/sybren/.virtualenvs/flamenco/bin/mkdocs", line 11, in <module>
sys.exit(cli())
File "/home/sybren/.virtualenvs/flamenco/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.mai... | ValueError |
def _static_server(host, port, site_dir):
# Importing here to seperate the code paths from the --livereload
# alternative.
from tornado import ioloop
from tornado import web
application = web.Application(
[
(
r"/(.*)",
_get_handler(site_dir, web.S... | def _static_server(host, port, site_dir):
# Importing here to seperate the code paths from the --livereload
# alternative.
from tornado import ioloop
from tornado import web
application = web.Application(
[
(
r"/(.*)",
_get_handler(site_dir, web.S... | https://github.com/mkdocs/mkdocs/issues/1237 | INFO - Building documentation...
INFO - Cleaning site directory
Traceback (most recent call last):
File "/home/sybren/.virtualenvs/flamenco/bin/mkdocs", line 11, in <module>
sys.exit(cli())
File "/home/sybren/.virtualenvs/flamenco/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.mai... | ValueError |
def serve(
config_file=None,
dev_addr=None,
strict=None,
theme=None,
theme_dir=None,
livereload="livereload",
):
"""
Start the MkDocs development server
By default it will serve the documentation on http://localhost:8000/ and
it will rebuild the documentation and refresh the pag... | def serve(
config_file=None,
dev_addr=None,
strict=None,
theme=None,
theme_dir=None,
livereload="livereload",
):
"""
Start the MkDocs development server
By default it will serve the documentation on http://localhost:8000/ and
it will rebuild the documentation and refresh the pag... | https://github.com/mkdocs/mkdocs/issues/1237 | INFO - Building documentation...
INFO - Cleaning site directory
Traceback (most recent call last):
File "/home/sybren/.virtualenvs/flamenco/bin/mkdocs", line 11, in <module>
sys.exit(cli())
File "/home/sybren/.virtualenvs/flamenco/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.mai... | ValueError |
def try_rebase(remote, branch):
cmd = ["git", "rev-list", "--max-count=1", "%s/%s" % (remote, branch)]
p = sp.Popen(cmd, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE)
(rev, _) = p.communicate()
if p.wait() != 0:
return True
cmd = ["git", "update-ref", "refs/heads/%s" % branch, dec(rev.strip... | def try_rebase(remote, branch):
cmd = ["git", "rev-list", "--max-count=1", "%s/%s" % (remote, branch)]
p = sp.Popen(cmd, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE)
(rev, _) = p.communicate()
if p.wait() != 0:
return True
cmd = ["git", "update-ref", "refs/heads/%s" % branch, rev.strip()]
... | https://github.com/mkdocs/mkdocs/issues/722 | c:\docs>mkdocs gh-deploy --clean
INFO - Cleaning site directory
INFO - Building documentation to directory: c:\docs\site
INFO - Copying 'c:\docs\site' to 'gh-pages' branch and pushing to GitHub.
Traceback (most recent call last):
File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
"__main__", ... | TypeError |
def path_to_url(path):
"""Convert a system path to a URL."""
if os.path.sep == "/":
return path
if sys.version_info < (3, 0):
path = path.encode("utf8")
return pathname2url(path)
| def path_to_url(path):
"""Convert a system path to a URL."""
if os.path.sep == "/":
return path
return pathname2url(path)
| https://github.com/mkdocs/mkdocs/issues/833 | C:\Python27\lib\urllib.py:1303: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
return ''.join(map(quoter, s))
ERROR - Error building page Allgemeines\1. Richtlinien.md
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 1... | KeyError |
def walk_docs_dir(self, docs_dir):
if self.file_match is None:
raise StopIteration
for dirpath, dirs, filenames in os.walk(docs_dir):
dirs.sort()
for filename in sorted(filenames):
fullpath = os.path.join(dirpath, filename)
# Some editors (namely Emacs) will cre... | def walk_docs_dir(self, docs_dir):
if self.file_match is None:
raise StopIteration
for dirpath, dirs, filenames in os.walk(docs_dir):
dirs.sort()
for filename in sorted(filenames):
fullpath = os.path.join(dirpath, filename)
relpath = os.path.normpath(os.path.relp... | https://github.com/mkdocs/mkdocs/issues/639 | INFO - Building documentation...
ERROR - file not found: /home/paulproteus/projects/sandstorm/docs/.#index.md
ERROR - Error building page .#index.md
[E 150617 17:22:21 ioloop:612] Exception in callback (3, <function null_wrapper at 0x7fc883190500>)
Traceback (most recent call last):
File "/home/paulproteus/.l... | IOError |
def walk_docs_dir(self, docs_dir):
if self.file_match is None:
raise StopIteration
for dirpath, dirs, filenames in os.walk(docs_dir):
dirs.sort()
for filename in sorted(filenames):
fullpath = os.path.join(dirpath, filename)
# Some editors (namely Emacs) will cre... | def walk_docs_dir(self, docs_dir):
if self.file_match is None:
raise StopIteration
for dirpath, dirs, filenames in os.walk(docs_dir):
dirs.sort()
for filename in sorted(filenames):
fullpath = os.path.join(dirpath, filename)
# Some editors (namely Emacs) will cre... | https://github.com/mkdocs/mkdocs/issues/639 | INFO - Building documentation...
ERROR - file not found: /home/paulproteus/projects/sandstorm/docs/.#index.md
ERROR - Error building page .#index.md
[E 150617 17:22:21 ioloop:612] Exception in callback (3, <function null_wrapper at 0x7fc883190500>)
Traceback (most recent call last):
File "/home/paulproteus/.l... | IOError |
def __init__(self, file_match=None, **kwargs):
super(Extras, self).__init__(**kwargs)
self.file_match = file_match
| def __init__(self, file_match, **kwargs):
super(Extras, self).__init__(**kwargs)
self.file_match = file_match
| https://github.com/mkdocs/mkdocs/issues/616 | Traceback (most recent call last):
File "/srv/mkdocs_head/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.14.0.dev', 'console_scripts', 'mkdocs')()
File "/srv/mkdocs_head/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/srv/mkdocs_head/local/l... | TypeError |
def walk_docs_dir(self, docs_dir):
if self.file_match is None:
raise StopIteration
for dirpath, _, filenames in os.walk(docs_dir):
for filename in sorted(filenames):
fullpath = os.path.join(dirpath, filename)
relpath = os.path.normpath(os.path.relpath(fullpath, docs_dir)... | def walk_docs_dir(self, docs_dir):
for dirpath, _, filenames in os.walk(docs_dir):
for filename in sorted(filenames):
fullpath = os.path.join(dirpath, filename)
relpath = os.path.normpath(os.path.relpath(fullpath, docs_dir))
if self.file_match(relpath):
yi... | https://github.com/mkdocs/mkdocs/issues/616 | Traceback (most recent call last):
File "/srv/mkdocs_head/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.14.0.dev', 'console_scripts', 'mkdocs')()
File "/srv/mkdocs_head/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/srv/mkdocs_head/local/l... | TypeError |
def run_validation(self, value):
if not isinstance(value, list):
raise ValidationError("Expected a list, got {0}".format(type(value)))
if len(value) == 0:
return
# TODO: Remove in 1.0
config_types = set(type(l) for l in value)
if config_types.issubset(
set(
[
... | def run_validation(self, value):
if not isinstance(value, list):
raise ValidationError("Expected a list, got {0}".format(type(value)))
if len(value) == 0:
return
# TODO: Remove in 1.0
config_types = set(type(l) for l in value)
if config_types.issubset(
set(
[
... | https://github.com/mkdocs/mkdocs/issues/532 | Traceback (most recent call last):
File "/Users/maemual/Workspace/mkdocs/env/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.13.0.dev0', 'console_scripts', 'mkdocs')()
File "/Users/maemual/Workspace/mkdocs/env/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwarg... | UnicodeDecodeError |
def _follow(config_line, url_context, use_dir_urls, header=None, title=None):
if isinstance(config_line, six.string_types):
path = os.path.normpath(config_line)
page = _path_to_page(path, title, url_context, use_dir_urls)
if header:
page.ancestors = [header]
header.c... | def _follow(config_line, url_context, use_dir_urls, header=None, title=None):
if isinstance(config_line, str):
path = os.path.normpath(config_line)
page = _path_to_page(path, title, url_context, use_dir_urls)
if header:
page.ancestors = [header]
header.children.appen... | https://github.com/mkdocs/mkdocs/issues/532 | Traceback (most recent call last):
File "/Users/maemual/Workspace/mkdocs/env/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.13.0.dev0', 'console_scripts', 'mkdocs')()
File "/Users/maemual/Workspace/mkdocs/env/lib/python2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwarg... | UnicodeDecodeError |
def _generate_site_navigation(pages_config, url_context, use_directory_urls=True):
"""
Returns a list of Page and Header instances that represent the
top level site navigation.
"""
nav_items = []
pages = []
previous = None
for config_line in pages_config:
if isinstance(config_li... | def _generate_site_navigation(pages_config, url_context, use_directory_urls=True):
"""
Returns a list of Page and Header instances that represent the
top level site navigation.
"""
nav_items = []
pages = []
previous = None
for config_line in pages_config:
if isinstance(config_li... | https://github.com/mkdocs/mkdocs/issues/461 | $ mkdocs build
Building documentation to directory: site
Directory site contains stale files. Use --clean to remove them.
Traceback (most recent call last):
File "/home/dougalmatthews/.virtualenvs/mkdocs/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.12.1', 'console_scripts', 'mkdocs')()
File "/home/douga... | AttributeError |
def convert_markdown(
markdown_source, site_navigation=None, extensions=(), strict=False
):
"""
Convert the Markdown source file to HTML content, and additionally
return the parsed table of contents, and a dictionary of any metadata
that was specified in the Markdown file.
`extensions` is an op... | def convert_markdown(
markdown_source, site_navigation=None, extensions=(), strict=False
):
"""
Convert the Markdown source file to HTML content, and additionally
return the parsed table of contents, and a dictionary of any metadata
that was specified in the Markdown file.
`extensions` is an op... | https://github.com/mkdocs/mkdocs/issues/368 | $ mkdocs serve
Traceback (most recent call last):
File "/usr/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.11.1', 'console_scripts', 'mkdocs')()
File "/usr/lib/python3.4/site-packages/mkdocs-0.11.1-py3.4.egg/mkdocs/main.py", line 74, in run_main
main(cmd, args=sys.argv[2:], options=dict(opts))
File "/usr... | jinja2.exceptions.UndefinedError |
def serve(config, options=None):
"""
Start the devserver, and rebuild the docs whenever any changes take effect.
"""
# Create a temporary build directory, and set some options to serve it
tempdir = tempfile.mkdtemp()
options["site_dir"] = tempdir
# Only use user-friendly URLs when running t... | def serve(config, options=None):
"""
Start the devserver, and rebuild the docs whenever any changes take effect.
"""
# Create a temporary build directory, and set some options to serve it
tempdir = tempfile.mkdtemp()
options["site_dir"] = tempdir
# Only use user-friendly URLs when running t... | https://github.com/mkdocs/mkdocs/issues/373 | Traceback (most recent call last):
File "/home/pi/.virtualenvs/face/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.11.1', 'console_scripts', 'mkdocs')()
File "/home/pi/.virtualenvs/face/local/lib/python2.7/site-packages/mkdocs/main.py", line 60, in run_main
main(cmd, args=sys.argv[2:], options=dict(opts))... | OSError |
def load_config(filename="mkdocs.yml", options=None):
user_config = options or {}
if "config" in user_config:
filename = user_config.pop("config")
if not os.path.exists(filename):
raise ConfigurationError("Config file '%s' does not exist." % filename)
with open(filename, "r") as fp:
... | def load_config(filename="mkdocs.yml", options=None):
options = options or {}
if "config" in options:
filename = options["config"]
if not os.path.exists(filename):
raise ConfigurationError("Config file '%s' does not exist." % filename)
with open(filename, "r") as fp:
user_config ... | https://github.com/mkdocs/mkdocs/issues/283 | Traceback (most recent call last):
File "/home/dougalmatthews/.virtualenvs/mkdocs/bin/mkdocs", line 9, in <module>
load_entry_point('mkdocs==0.11.1', 'console_scripts', 'mkdocs')()
File "/home/dougalmatthews/.virtualenvs/mkdocs/lib/python3.4/site-packages/mkdocs/main.py", line 60, in run_main
main(cmd, args=sys.argv[2:... | AttributeError |
def base(
net: network.TensorNetwork,
algorithm: Callable[[List[Set[int]], Set[int], Dict[int, int]], List],
) -> network.TensorNetwork:
"""Base method for all `opt_einsum` contractors.
Args:
net: a TensorNetwork object. Should be connected.
algorithm: `opt_einsum` contraction method to use... | def base(
net: network.TensorNetwork,
algorithm: Callable[[List[Set[int]], Set[int], Dict[int, int]], List],
) -> network.TensorNetwork:
"""Base method for all `opt_einsum` contractors.
Args:
net: a TensorNetwork object. Should be connected.
algorithm: `opt_einsum` contraction method to use... | https://github.com/google/TensorNetwork/issues/177 | Traceback (most recent call last):
File "check.py", line 8, in <module>
node = tensornetwork.contractors.optimal(net).get_final_node()
File "/usr/local/google/home/chaseriley/TensorNetwork/tensornetwork/contractors/opt_einsum_paths/path_contractors.py", line 59, in optimal
return base(net, alg)
File "/usr/local/google/... | ValueError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.