after_merge stringlengths 64 17k | before_merge stringlengths 60 17k | source code and errors stringlengths 236 32.3k | full_traceback stringlengths 170 17.7k | traceback_type stringclasses 60
values |
|---|---|---|---|---|
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:
... | [{'piece_type': 'error message', 'piece_content': 'ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.\\nIf encountered, please open an issue: https://github.com/PyCQA/isort/issues/new\\nTraceback (most recent call last):\\nFile "/usr/lib/python3.8/t... | 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_files", Fa... | 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_files", Fa... | [{'piece_type': 'error message', 'piece_content': 'ERROR: Unrecoverable exception thrown when parsing tests/functional/u/unknown_encoding_py29.py! This should NEVER happen.\\nIf encountered, please open an issue: https://github.com/PyCQA/isort/issues/new\\nTraceback (most recent call last):\\nFile "/usr/lib/python3.8/t... | 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_patterns:
... | 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_patterns:
... | [{'piece_type': 'error message', 'piece_content': '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,... | 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... | [{'piece_type': 'error message', 'piece_content': '$ echo "\\\\n" > example.py\\n$ .venv/bin/isort --float-to-top example.py\\nTraceback (most recent call last):\\nFile ".venv/bin/isort", line 10, in <module>\\nsys.exit(main())\\nFile ".venv/lib/python3.8/site-packages/isort/main.py", line 876, in main\\nfor sort_attem... | $ 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/i... | 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:
... | [{'piece_type': 'error message', 'piece_content': '$ echo "\\\\n" > example.py\\n$ .venv/bin/isort --float-to-top example.py\\nTraceback (most recent call last):\\nFile ".venv/bin/isort", line 10, in <module>\\nsys.exit(main())\\nFile ".venv/lib/python3.8/site-packages/isort/main.py", line 876, in main\\nfor sort_attem... | $ 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/i... | 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:
if os.p... | 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:
if os.p... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "C:\\\\Users\\\\karraj\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python38\\\\lib\\\\runpy.py", line 193, in _run_module_as_main\\nreturn _run_code(code, main_globals, None,\\nFile "C:\\\\Users\\\\karraj\\\\AppData\\\\Local\\... | 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_gl... | 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]... | [{'piece_type': 'error message', 'piece_content': '✗ isort myfile.py --dont-order-by-type\\nTraceback (most recent call last):\\nFile "/usr/local/bin/isort", line 8, in <module>\\nsys.exit(main())\\nFile "/usr/local/lib/python3.7/site-packages/isort/main.py", line 812, in main\\nconfig = Config(**config_dict)\\nFile "/... | ✗ 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... | [{'piece_type': 'error message', 'piece_content': '$ cat demo.py\\nimport os, sys, collections\\n\\n$ isort --diff - < demo.py\\nTraceback (most recent call last):\\nFile "/home/peter/.virtualenvs/isort/bin/isort", line 11, in <module>\\nload_entry_point(\\'isort\\', \\'console_scripts\\', \\'isort\\')()\\nFile "/home/... | $ 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)
)
unified_diff_li... | 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 = unified_diff(
... | [{'piece_type': 'error message', 'piece_content': '$ cat demo.py\\nimport os, sys, collections\\n\\n$ isort --diff - < demo.py\\nTraceback (most recent call last):\\nFile "/home/peter/.virtualenvs/isort/bin/isort", line 11, in <module>\\nload_entry_point(\\'isort\\', \\'console_scripts\\', \\'isort\\')()\\nFile "/home/... | $ 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... | [{'piece_type': 'error message', 'piece_content': '$ isort --src-path=. .\\nTraceback (most recent call last):\\nFile "<string>", line 1, in <module>\\nFile "/home/anders/python/isort/isort/main.py", line 647, in main\\nconfig = Config(**config_dict)\\nFile "/home/anders/python/isort/isort/settings.py", line 329, in __... | $ 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:
if os.p... | 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:
if os.p... | [{'piece_type': 'error message', 'piece_content': '$ isort --src-path=. .\\nTraceback (most recent call last):\\nFile "<string>", line 1, in <module>\\nFile "/home/anders/python/isort/isort/main.py", line 647, in main\\nconfig = Config(**config_dict)\\nFile "/home/anders/python/isort/isort/settings.py", line 329, in __... | $ 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 c... | def find(self, module_name):
for finder in self.finders:
section = finder.find(module_name)
if section is not None:
return section | [{'piece_type': 'error message', 'piece_content': '$ isort\\nTraceback (most recent call last):\\nFile "/home/vagrant/python/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 93, in __init__\\nreq = REQUIREMENT.parseString(requirement_string)\\nFile "/home/vagrant/python/lib/python3.6/site-packag... | $ 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_pol... | def create_domain_name(self,
protocol, # type: str
domain_name, # type: str
endpoint_type, # type: str
certificate_arn, # type: str
security_pol... | [{'piece_type': 'error message', 'piece_content': 'Updating custom domain name: api.transferbank.com.br\\nTraceback (most recent call last):\\nFile "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main\\nreturn cli(obj={})\\nFile "/Users/rafagan/.virtualenv... | 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_domai... | 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_na... | [{'piece_type': 'error message', 'piece_content': 'Updating custom domain name: api.transferbank.com.br\\nTraceback (most recent call last):\\nFile "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main\\nreturn cli(obj={})\\nFile "/Users/rafagan/.virtualenv... | 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_... | 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_doma... | [{'piece_type': 'error message', 'piece_content': 'Updating custom domain name: api.transferbank.com.br\\nTraceback (most recent call last):\\nFile "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main\\nreturn cli(obj={})\\nFile "/Users/rafagan/.virtualenv... | 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
... | def update_domain_name(self,
protocol, # type: str
domain_name, # type: str
endpoint_type, # type: str
certificate_arn, # type: str
... | [{'piece_type': 'error message', 'piece_content': 'Updating custom domain name: api.transferbank.com.br\\nTraceback (most recent call last):\\nFile "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main\\nreturn cli(obj={})\\nFile "/Users/rafagan/.virtualenv... | 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 ... | 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 p... | [{'piece_type': 'error message', 'piece_content': 'Updating custom domain name: api.transferbank.com.br\\nTraceback (most recent call last):\\nFile "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main\\nreturn cli(obj={})\\nFile "/Users/rafagan/.virtualenv... | 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... | 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_dom... | [{'piece_type': 'error message', 'piece_content': 'Updating custom domain name: api.transferbank.com.br\\nTraceback (most recent call last):\\nFile "/Users/rafagan/.virtualenvs/tb-websocket-ws/lib/python3.8/site-packages/chalice/cli/__init__.py", line 646, in main\\nreturn cli(obj={})\\nFile "/Users/rafagan/.virtualenv... | 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,
inte... | 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,
... | [{'piece_type': 'error message', 'piece_content': '$ cat app.py\\nfrom chalice import Chalice\\n\\napp = Chalice(app_name=\\'testlambda\\')\\n\\n\\n@app.lambda_function()\\ndef index(event, context):\\nprint("foo bar baz")\\nreturn {\\'hello\\': \\'world\\'}\\n\\n$ chalice deploy\\n...\\n$ chalice logs -n index\\nTrace... | $ 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... | def __init__(self, osutils=None):
# type: (Optional[OSUtils]) -> None
if osutils is None:
osutils = OSUtils()
self._osutils = osutils | [{'piece_type': 'error message', 'piece_content': 'chalice.deploy.packager.PackageDownloadError: Traceback (most recent call last):\\nFile "<string>", line 1, in <module>\\nAttributeError: module \\'pip\\' has no attribute \\'main\\''}] | 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 = (
'... | 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, sy... | [{'piece_type': 'error message', 'piece_content': 'chalice.deploy.packager.PackageDownloadError: Traceback (most recent call last):\\nFile "<string>", line 1, in <module>\\nAttributeError: module \\'pip\\' has no attribute \\'main\\''}] | 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()) | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "C:\\\\Users\\\\myuser\\\\PycharmProjects\\\\FAB-test-site\\\\venv\\\\Lib\\\\site-packages\\\\flask\\\\app.py", line 2464, in __call__\\nreturn self.wsgi_app(environ, start_response)\\nFile "C:\\\\Users\\\\myuser\\\\PycharmProj... | 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... | 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():
... | 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():
... | [{'piece_type': 'source code', 'piece_content': "resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()\\nKeyError: 'login'"}, {'piece_type': 'error message', 'piece_content': 'File "/home/aman/superset/lib/python3.6/site-packages/flask_appbuilder/security/views.py", line 678, in oauth_authorized\\nres... | 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:
... | 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_un... | [{'piece_type': 'source code', 'piece_content': "resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()\\nKeyError: 'login'"}, {'piece_type': 'error message', 'piece_content': 'File "/home/aman/superset/lib/python3.6/site-packages/flask_appbuilder/security/views.py", line 678, in oauth_authorized\\nres... | 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(u"You denied the request to sign in.", "warning")
return redirect(self.appbuilder.get_url_for_login)
... | def oauth_authorized(self, provider):
log.debug("Authorized init")
resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()
if resp is None:
flash(u"You denied the request to sign in.", "warning")
return redirect("login")
log.debug("OAUTH Author... | [{'piece_type': 'source code', 'piece_content': "resp = self.appbuilder.sm.oauth_remotes[provider].authorized_response()\\nKeyError: 'login'"}, {'piece_type': 'error message', 'piece_content': 'File "/home/aman/superset/lib/python3.6/site-packages/flask_appbuilder/security/views.py", line 678, in oauth_authorized\\nres... | 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
... | 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
... | [{'piece_type': 'source code', 'piece_content': 'class ProjectView(ModelRestApi):\\nlist_columns = [\\'name\\', "last_user.username"]\\n\\nclass Project(Model, PinpointMixin):\\n__tablename__ = TABLE_PREFIX + \\'project\\'\\nid = Column(Integer, primary_key=True, autoincrement=True)\\nlast_user_id = Column(Integer, For... | 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 or... | 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 or... | [{'piece_type': 'source code', 'piece_content': 'class ProjectView(ModelRestApi):\\nlist_columns = [\\'name\\', "last_user.username"]\\n\\nclass Project(Model, PinpointMixin):\\n__tablename__ = TABLE_PREFIX + \\'project\\'\\nid = Column(Integer, primary_key=True, autoincrement=True)\\nlast_user_id = Column(Integer, For... | 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:
T... | 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:
T... | [{'piece_type': 'other', 'piece_content': "query = query.order_by(order_column + ' ' + order_direction)"}, {'piece_type': 'other', 'piece_content': "http://127.0.0.1/dashboardmodelview/list/?_oc_DashboardModelView='"}, {'piece_type': 'error message', 'piece_content': 'Sorry, something went wrong\\n\\n500 - Internal Ser... | 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 meth... | 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 meth... | [{'piece_type': 'other', 'piece_content': "query = query.order_by(order_column + ' ' + order_direction)"}, {'piece_type': 'other', 'piece_content': "http://127.0.0.1/dashboardmodelview/list/?_oc_DashboardModelView='"}, {'piece_type': 'error message', 'piece_content': 'Sorry, something went wrong\\n\\n500 - Internal Ser... | 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_(.*)',... | 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_(.*)',... | [{'piece_type': 'other', 'piece_content': "query = query.order_by(order_column + ' ' + order_direction)"}, {'piece_type': 'other', 'piece_content': "http://127.0.0.1/dashboardmodelview/list/?_oc_DashboardModelView='"}, {'piece_type': 'error message', 'piece_content': 'Sorry, something went wrong\\n\\n500 - Internal Ser... | 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 f... | 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__'):
# i... | [{'piece_type': 'other', 'piece_content': "query = query.order_by(order_column + ' ' + order_direction)"}, {'piece_type': 'other', 'piece_content': "http://127.0.0.1/dashboardmodelview/list/?_oc_DashboardModelView='"}, {'piece_type': 'error message', 'piece_content': 'Sorry, something went wrong\\n\\n500 - Internal Ser... | 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 meth... | 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 meth... | [{'piece_type': 'other', 'piece_content': "query = query.order_by(order_column + ' ' + order_direction)"}, {'piece_type': 'other', 'piece_content': "http://127.0.0.1/dashboardmodelview/list/?_oc_DashboardModelView='"}, {'piece_type': 'error message', 'piece_content': 'Sorry, something went wrong\\n\\n500 - Internal Ser... | 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:
Qiskit... | 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:
Qiskit... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile ".../admmprove.py", line 53, in <module>\\nresult_q = admm_q.solve(qp)\\nFile ".../qiskit-aqua/qiskit/optimization/algorithms/admm_optimizer.py", line 381, in solve\\nOptimizationResultStatus.SUCCESS)\\nFile ".../qiskit-aqua/qi... | 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 incompatib... | 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 incompatib... | [{'piece_type': 'other', 'piece_content': "from qiskit.aqua.algorithms import NumPyMinimumEigensolver\\nfrom qiskit.optimization.algorithms import GroverOptimizer, MinimumEigenOptimizer\\nfrom qiskit.optimization.problems import QuadraticProgram\\nfrom qiskit import BasicAer\\nfrom docplex.mp.model import Model\\n\\nba... | 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), ... | 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), ... | [{'piece_type': 'other', 'piece_content': "from qiskit.aqua.algorithms import NumPyMinimumEigensolver\\nfrom qiskit.optimization.algorithms import GroverOptimizer, MinimumEigenOptimizer\\nfrom qiskit.optimization.problems import QuadraticProgram\\nfrom qiskit import BasicAer\\nfrom docplex.mp.model import Model\\n\\nba... | 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 th... | 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... | [{'piece_type': 'reproducing source code', 'piece_content': 'seed = 10598\\n\\nfeature_map = ZZFeatureMap(feature_dimension=feature_dim, reps=2, entanglement=\\'linear\\')\\nqsvm = QSVM(feature_map, training_input, test_input, datapoints[0])\\n\\nbackend = Aer.get_backend(\\'qasm_simulator\\')\\nquantum_instance = Quan... | ---------------------------------------------------------------------------
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)
num_pr... | 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)
num_pr... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\n\\nFile "<pathToAqua>/qiskit-aqua/test/aqua/test_optimizers.py", line 68, in test_p_bfgs\\nres = self._optimize(optimizer)\\n\\nFile "<pathToAqua>/qiskit-aqua/test/aqua/test_optimizers.py", line 37, in _optimize\\nres = optimizer.op... | 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... | 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... | [{'piece_type': 'error message', 'piece_content': '------------------\\nrqaoa_result = rqaoa.solve(qubo)\\nprint(rqaoa_result)\\n------------------\\n\\n---------------------------------------------------------------------------\\nQiskitOptimizationError Traceback (most recent call last)\\n<ipython-in... | ------------------
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... | 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... | [{'piece_type': 'error message', 'piece_content': '------------------\\nrqaoa_result = rqaoa.solve(qubo)\\nprint(rqaoa_result)\\n------------------\\n\\n---------------------------------------------------------------------------\\nQiskitOptimizationError Traceback (most recent call last)\\n<ipython-in... | ------------------
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... | 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) | [{'piece_type': 'error message', 'piece_content': '------------------\\nrqaoa_result = rqaoa.solve(qubo)\\nprint(rqaoa_result)\\n------------------\\n\\n---------------------------------------------------------------------------\\nQiskitOptimizationError Traceback (most recent call last)\\n<ipython-in... | ------------------
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 LiveReloadSe... | 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... | [{'piece_type': 'error message', 'piece_content': 'C:\\\\dev\\\\testing\\nλ mkdocs serve\\nINFO - Building documentation...\\nINFO - Cleaning site directory\\n[I 191017 14:49:48 server:296] Serving on http://127.0.0.1:8000\\nTraceback (most recent call last):\\nFile "c:\\\\users\\\\aleksandr.skobelev\\\\appdat... | 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_m... | 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"/(.*)", _get_handler(site_dir, web.StaticFileHandler), ... | 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.StaticFileHandler), {
"path": site... | [{'piece_type': 'error message', 'piece_content': 'C:\\\\dev\\\\testing\\nλ mkdocs serve\\nINFO - Building documentation...\\nINFO - Cleaning site directory\\n[I 191017 14:49:48 server:296] Serving on http://127.0.0.1:8000\\nTraceback (most recent call last):\\nFile "c:\\\\users\\\\aleksandr.skobelev\\\\appdat... | 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_m... | 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 page automatically
... | 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 page automatically
... | [{'piece_type': 'other', 'piece_content': 'mkdocs serve -f mkdocs/tests/integration/unicode/mkdocs.yml'}, {'piece_type': 'error message', 'piece_content': 'Exception in callback <bound method type.poll_tasks of <class \\'livereload.handlers.LiveReloadHandler\\'>>\\nTraceback (most recent call last):\\nFile "/Users/wayl... | 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 ... | 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
... | [{'piece_type': 'other', 'piece_content': 'mkdocs serve -f mkdocs/tests/integration/unicode/mkdocs.yml'}, {'piece_type': 'error message', 'piece_content': 'Exception in callback <bound method type.poll_tasks of <class \\'livereload.handlers.LiveReloadHandler\\'>>\\nTraceback (most recent call last):\\nFile "/Users/wayl... | 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) | [{'piece_type': 'error message', 'piece_content': '$ mkdocs build\\nWARNING - 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 a... | $ 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... | 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... | [{'piece_type': 'error message', 'piece_content': 'INFO - Building documentation...\\nINFO - Cleaning site directory\\nTraceback (most recent call last):\\nFile "/home/sybren/.virtualenvs/flamenco/bin/mkdocs", line 11, in <module>\\nsys.exit(cli())\\nFile "/home/sybren/.virtualenvs/flamenco/lib/python3.6/site-p... | 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.StaticFileHandler), {
"path": site... | 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.StaticFileHandler), {
"path": site... | [{'piece_type': 'error message', 'piece_content': 'INFO - Building documentation...\\nINFO - Cleaning site directory\\nTraceback (most recent call last):\\nFile "/home/sybren/.virtualenvs/flamenco/bin/mkdocs", line 11, in <module>\\nsys.exit(cli())\\nFile "/home/sybren/.virtualenvs/flamenco/lib/python3.6/site-p... | 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 page automatically
... | 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 page automatically
... | [{'piece_type': 'error message', 'piece_content': 'INFO - Building documentation...\\nINFO - Cleaning site directory\\nTraceback (most recent call last):\\nFile "/home/sybren/.virtualenvs/flamenco/bin/mkdocs", line 11, in <module>\\nsys.exit(cli())\\nFile "/home/sybren/.virtualenvs/flamenco/lib/python3.6/site-p... | 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()]
... | [{'piece_type': 'error message', 'piece_content': 'c:\\\\docs>mkdocs gh-deploy --clean\\nINFO - Cleaning site directory\\nINFO - Building documentation to directory: c:\\\\docs\\\\site\\nINFO - Copying \\'c:\\\\docs\\\\site\\' to \\'gh-pages\\' branch and pushing to GitHub.\\nTraceback (most recent call las... | 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
"__m... | 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) | [{'piece_type': 'other', 'piece_content': '/Kapitel\\n1. Einstieg\\n2. Übersicht\\n3. Etcetera'}, {'piece_type': 'error message', 'piece_content': 'C:\\\\Python27\\\\lib\\\\urllib.py:1303: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal\\nreturn ... | 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",... | 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)
# S... | 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)
relp... | [{'piece_type': 'other', 'piece_content': '➜ docs git:(master) ✗ ls -al .#*\\nlrwxrwxrwx 1 paulproteus paulproteus 36 Jun 17 17:24 .#index.md -> paulproteus@charkha.27783:1434311808'}, {'piece_type': 'error message', 'piece_content': 'INFO - Building documentation...\\nERROR - file not found: /home/paulproteus/... | 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)
# S... | 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)
# S... | [{'piece_type': 'other', 'piece_content': '➜ docs git:(master) ✗ ls -al .#*\\nlrwxrwxrwx 1 paulproteus paulproteus 36 Jun 17 17:24 .#index.md -> paulproteus@charkha.27783:1434311808'}, {'piece_type': 'error message', 'piece_content': 'INFO - Building documentation...\\nERROR - file not found: /home/paulproteus/... | 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 | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/srv/mkdocs_head/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mkdocs==0.14.0.dev\\', \\'console_scripts\\', \\'mkdocs\\')()\\nFile "/srv/mkdocs_head/local/lib/python2.7/site-packages/click/core.py", line 664, in __ca... | 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.p... | 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(re... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/srv/mkdocs_head/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mkdocs==0.14.0.dev\\', \\'console_scripts\\', \\'mkdocs\\')()\\nFile "/srv/mkdocs_head/local/lib/python2.7/site-packages/click/core.py", line 664, in __ca... | 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 c... | 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 c... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/Users/maemual/Workspace/mkdocs/env/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mkdocs==0.13.0.dev0\\', \\'console_scripts\\', \\'mkdocs\\')()\\nFile "/Users/maemual/Workspace/mkdocs/env/lib/python2.7/site-packages/... | 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.... | 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.appe... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/Users/maemual/Workspace/mkdocs/env/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mkdocs==0.13.0.dev0\\', \\'console_scripts\\', \\'mkdocs\\')()\\nFile "/Users/maemual/Workspace/mkdocs/env/lib/python2.7/site-packages/... | 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... | [{'piece_type': 'error message', 'piece_content': '$ mkdocs build\\nBuilding documentation to directory: site\\nDirectory site contains stale files. Use --clean to remove them.\\nTraceback (most recent call last):\\nFile "/home/dougalmatthews/.virtualenvs/mkdocs/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mk... | $ 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 optional... | 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 optional... | [{'piece_type': 'other', 'piece_content': "site_name: The website\\ntheme_dir: 'mybootstrap'"}, {'piece_type': 'error message', 'piece_content': '$ mkdocs serve\\nTraceback (most recent call last):\\nFile "/usr/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mkdocs==0.11.1\\', \\'console_scripts\\', \\'mkdocs\\'... | $ 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... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/home/pi/.virtualenvs/face/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mkdocs==0.11.1\\', \\'console_scripts\\', \\'mkdocs\\')()\\nFile "/home/pi/.virtualenvs/face/local/lib/python2.7/site-packages/mkdocs/main.py", ... | 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 ... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/home/dougalmatthews/.virtualenvs/mkdocs/bin/mkdocs", line 9, in <module>\\nload_entry_point(\\'mkdocs==0.11.1\\', \\'console_scripts\\', \\'mkdocs\\')()\\nFile "/home/dougalmatthews/.virtualenvs/mkdocs/lib/python3.4/site-pack... | 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` contra... | 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` contra... | [{'piece_type': 'source code', 'piece_content': 'import numpy as np\\nimport tensornetwork\\n\\nnet = tensornetwork.TensorNetwork("numpy")\\na = net.add_node(np.ones((2, 2, 2)))\\n# pylint: disable=pointless-statement\\na[0] ^ a[1]\\nnode = tensornetwork.contractors.optimal(net).get_final_node()'}, {'piece_type': 'erro... | 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 |
def build(preprocessor_step_config):
"""Builds preprocessing step based on the configuration.
Args:
preprocessor_step_config: PreprocessingStep configuration proto.
Returns:
function, argmap: A callable function and an argument map to call function
with.
Raises:
ValueError: ... | def build(preprocessor_step_config):
"""Builds preprocessing step based on the configuration.
Args:
preprocessor_step_config: PreprocessingStep configuration proto.
Returns:
function, argmap: A callable function and an argument map to call function
with.
Raises:
ValueError: ... | [{'piece_type': 'other', 'piece_content': 'data_augmentation_options {\\nrandom_crop_pad_image {\\n}\\n}'}, {'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "../gpu-env/lib/python3.5/site-packages/object_detection/train.py", line 163, in <module>\\ntf.app.run()\\nFile "/home/d... | Traceback (most recent call last):
File "../gpu-env/lib/python3.5/site-packages/object_detection/train.py", line 163, in <module>
tf.app.run()
File "/home/dan/gpu-env/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "../gpu-env/lib/p... | ValueError |
def train():
"""Train CIFAR-10 for a number of steps."""
with tf.Graph().as_default(), tf.device('/cpu:0'):
# Create a variable to count the number of train() calls. This equals the
# number of batches processed * FLAGS.num_gpus.
global_step = tf.get_variable(
'global_step', [],
initiali... | def train():
"""Train CIFAR-10 for a number of steps."""
with tf.Graph().as_default(), tf.device('/cpu:0'):
# Create a variable to count the number of train() calls. This equals the
# number of batches processed * FLAGS.num_gpus.
global_step = tf.get_variable(
'global_step', [],
initiali... | [{'piece_type': 'error message', 'piece_content': '# python cifar10_multi_gpu_train.py --num_gpus=4\\nI tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcublas.so.8.0 locally\\nI tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcudnn.so.5 locally\\nI ten... | # python cifar10_multi_gpu_train.py --num_gpus=4
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully o... | AttributeError |
def __call__(self, direction, factor, values):
angles_deg = np.asarray(values)/factor
damping_ratios = np.cos((180-angles_deg) * np.pi/180)
ret = ["%.2f" % val for val in damping_ratios]
return ret | def __call__(self, direction, factor, values):
angles_deg = values/factor
damping_ratios = np.cos((180-angles_deg) * np.pi/180)
ret = ["%.2f" % val for val in damping_ratios]
return ret | [{'piece_type': 'source code', 'piece_content': 'import control\\ng = control.tf(1, [1,1])\\ncontrol.pzmap(g, grid=True)'}, {'piece_type': 'error message', 'piece_content': '---------------------------------------------------------------------------\\nAttributeError Traceback (most recent cal... | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-4e6a52bd77da> in <module>
1 import control
2 g = control.tf(1, [1,1])
----> 3 control.pzmap(g, grid=True)
~/src/python-control/control/pzmap.py in pzm... | AttributeError |
def __call__(self, transform_xy, x1, y1, x2, y2):
x, y = np.meshgrid(
np.linspace(x1, x2, self.nx), np.linspace(y1, y2, self.ny))
lon, lat = transform_xy(np.ravel(x), np.ravel(y))
with np.errstate(invalid='ignore'):
if self.lon_cycle is not None:
lon0... | def __call__(self, transform_xy, x1, y1, x2, y2):
x_, y_ = np.linspace(x1, x2, self.nx), np.linspace(y1, y2, self.ny)
x, y = np.meshgrid(x_, y_)
lon, lat = transform_xy(np.ravel(x), np.ravel(y))
with np.errstate(invalid='ignore'):
if self.lon_cycle is not None:
... | [{'piece_type': 'source code', 'piece_content': 'import control\\ng = control.tf(1, [1,1])\\ncontrol.pzmap(g, grid=True)'}, {'piece_type': 'error message', 'piece_content': '---------------------------------------------------------------------------\\nAttributeError Traceback (most recent cal... | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-4e6a52bd77da> in <module>
1 import control
2 g = control.tf(1, [1,1])
----> 3 control.pzmap(g, grid=True)
~/src/python-control/control/pzmap.py in pzm... | AttributeError |
def pzmap(sys, plot=None, grid=None, title='Pole Zero Map', **kwargs):
"""
Plot a pole/zero map for a linear system.
Parameters
----------
sys: LTI (StateSpace or TransferFunction)
Linear system for which poles and zeros are computed.
plot: bool, optional
If ``True`` a graph is ... | def pzmap(sys, plot=True, grid=False, title='Pole Zero Map', **kwargs):
"""
Plot a pole/zero map for a linear system.
Parameters
----------
sys: LTI (StateSpace or TransferFunction)
Linear system for which poles and zeros are computed.
plot: bool, optional
If ``True`` a graph is... | [{'piece_type': 'source code', 'piece_content': 'import control\\ng = control.tf(1, [1,1])\\ncontrol.pzmap(g, grid=True)'}, {'piece_type': 'error message', 'piece_content': '---------------------------------------------------------------------------\\nAttributeError Traceback (most recent cal... | ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-7-4e6a52bd77da> in <module>
1 import control
2 g = control.tf(1, [1,1])
----> 3 control.pzmap(g, grid=True)
~/src/python-control/control/pzmap.py in pzm... | AttributeError |
def __str__(self):
"""String representation of an input/output system"""
str = "System: " + (self.name if self.name else "(None)") + "\\n"
str += "Inputs (%s): " % self.ninputs
for key in self.input_index: str += key + ", "
str += "\\nOutputs (%s): " % self.noutputs
f... | def __str__(self):
"""String representation of an input/output system"""
str = "System: " + (self.name if self.name else "(none)") + "\\n"
str += "Inputs (%d): " % self.ninputs
for key in self.input_index: str += key + ", "
str += "\\nOutputs (%d): " % self.noutputs
f... | [{'piece_type': 'error message', 'piece_content': 'sys = ctl.NonlinearIOSystem(lambda t, x, u, params: x)\\nprint(sys)\\n\\n---------------------------------------------------------------------------\\nTypeError Traceback (most recent call last)\\n<ipython-input-4-85c64df40808> in <modul... | sys = ctl.NonlinearIOSystem(lambda t, x, u, params: x)
print(sys)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-85c64df40808> in <module>()
----> 1 print(sys)
/home/arnold/pythonBox/control_dev/p... | TypeError |
def __add__(sys1, sys2):
"""Add two input/output systems (parallel interconnection)"""
# TODO: Allow addition of scalars and matrices
if not isinstance(sys2, InputOutputSystem):
raise ValueError("Unknown I/O system object ", sys2)
elif isinstance(sys1, StateSpace) and isi... | def __add__(sys1, sys2):
"""Add two input/output systems (parallel interconnection)"""
# TODO: Allow addition of scalars and matrices
if not isinstance(sys2, InputOutputSystem):
raise ValueError("Unknown I/O system object ", sys2)
elif isinstance(sys1, StateSpace) and isi... | [{'piece_type': 'error message', 'piece_content': 'sys = ctl.NonlinearIOSystem(lambda t, x, u, params: x)\\nprint(sys)\\n\\n---------------------------------------------------------------------------\\nTypeError Traceback (most recent call last)\\n<ipython-input-4-85c64df40808> in <modul... | sys = ctl.NonlinearIOSystem(lambda t, x, u, params: x)
print(sys)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-85c64df40808> in <module>()
----> 1 print(sys)
/home/arnold/pythonBox/control_dev/p... | TypeError |
def __init__(self, syslist, connections=[], inplist=[], outlist=[],
inputs=None, outputs=None, states=None,
params={}, dt=None, name=None):
"""Create an I/O system from a list of systems + connection info.
The InterconnectedSystem class is used to represent an inpu... | def __init__(self, syslist, connections=[], inplist=[], outlist=[],
inputs=None, outputs=None, states=None,
params={}, dt=None, name=None):
"""Create an I/O system from a list of systems + connection info.
The InterconnectedSystem class is used to represent an inpu... | [{'piece_type': 'error message', 'piece_content': 'sys = ctl.NonlinearIOSystem(lambda t, x, u, params: x)\\nprint(sys)\\n\\n---------------------------------------------------------------------------\\nTypeError Traceback (most recent call last)\\n<ipython-input-4-85c64df40808> in <modul... | sys = ctl.NonlinearIOSystem(lambda t, x, u, params: x)
print(sys)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-85c64df40808> in <module>()
----> 1 print(sys)
/home/arnold/pythonBox/control_dev/p... | TypeError |
def __init__(self,
node_ip_address,
redis_address,
dashboard_agent_port,
redis_password=None,
temp_dir=None,
log_dir=None,
metrics_export_port=None,
node_manager_port=None,
... | def __init__(self,
redis_address,
dashboard_agent_port,
redis_password=None,
temp_dir=None,
log_dir=None,
metrics_export_port=None,
node_manager_port=None,
object_store_name=None,
... | [{'piece_type': 'error message', 'piece_content': '2020-11-11 14:13:37,114\\tWARNING worker.py:1111 -- The agent on node *** failed with the following error:\\nTraceback (most recent call last):\\nFile "/usr/local/lib/python3.6/dist-packages/ray/new_dashboard/agent.py", line 298, in <module>\\nloop.run_until_complete(a... | 2020-11-11 14:13:37,114 WARNING worker.py:1111 -- The agent on node *** failed with the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/ray/new_dashboard/agent.py", line 298, in <module>
loop.run_until_complete(agent.run())
File "/usr/lib/python3.6/asyncio/base_events.py... | grpc.experimental.aio._call.AioRpcError |
def start_raylet(redis_address,
node_ip_address,
node_manager_port,
raylet_name,
plasma_store_name,
worker_path,
temp_dir,
session_dir,
log_dir,
resource_spec,
... | def start_raylet(redis_address,
node_ip_address,
node_manager_port,
raylet_name,
plasma_store_name,
worker_path,
temp_dir,
session_dir,
log_dir,
resource_spec,
... | [{'piece_type': 'error message', 'piece_content': '2020-11-11 14:13:37,114\\tWARNING worker.py:1111 -- The agent on node *** failed with the following error:\\nTraceback (most recent call last):\\nFile "/usr/local/lib/python3.6/dist-packages/ray/new_dashboard/agent.py", line 298, in <module>\\nloop.run_until_complete(a... | 2020-11-11 14:13:37,114 WARNING worker.py:1111 -- The agent on node *** failed with the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/ray/new_dashboard/agent.py", line 298, in <module>
loop.run_until_complete(agent.run())
File "/usr/lib/python3.6/asyncio/base_events.py... | grpc.experimental.aio._call.AioRpcError |
def __init__(self,
redis_address,
autoscaling_config,
redis_password=None,
prefix_cluster_info=False):
# Initialize the Redis clients.
ray.state.state._initialize_global_state(
redis_address, redis_password=redis_passwor... | def __init__(self,
redis_address,
autoscaling_config,
redis_password=None,
prefix_cluster_info=False):
# Initialize the Redis clients.
ray.state.state._initialize_global_state(
redis_address, redis_password=redis_passwor... | [{'piece_type': 'error message', 'piece_content': 'In [1]: import ray\\n\\nIn [2]: ray.init()\\n2021-02-25 22:41:24,961 INFO services.py:1226 -- View the Ray dashboard at http://127.0.0.1:8265\\n2021-02-25 22:41:26,775 WARNING worker.py:1063 -- The autoscaler failed with the following error:\\nTraceback (most recent ca... | In [1]: import ray
In [2]: ray.init()
2021-02-25 22:41:24,961 INFO services.py:1226 -- View the Ray dashboard at http://127.0.0.1:8265
2021-02-25 22:41:26,775 WARNING worker.py:1063 -- The autoscaler failed with the following error:
Traceback (most recent call last):
File "/home/lxy/git_repository/ray/python/ray/monit... | grpc._channel._InactiveRpcError |
def terminate_node(self, node_id):
node = self._get_cached_node(node_id)
if self.cache_stopped_nodes:
if node.spot_instance_request_id:
cli_logger.print(
"Terminating instance {} " +
cf.dimmed("(cannot stop spot instances, only term... | def terminate_node(self, node_id):
node = self._get_cached_node(node_id)
if self.cache_stopped_nodes:
if node.spot_instance_request_id:
cli_logger.print(
"Terminating instance {} " +
cf.dimmed("(cannot stop spot instances, only term... | [{'piece_type': 'error message', 'piece_content': '2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).\\n2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.\\n2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics... | 2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).
2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.
2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics: Removed mapping: 172.31.23.116 - 1613573430.7000167
2... | KeyError |
def terminate_nodes(self, node_ids):
if not node_ids:
return
if self.cache_stopped_nodes:
spot_ids = []
on_demand_ids = []
for node_id in node_ids:
if self._get_cached_node(node_id).spot_instance_request_id:
spot_id... | def terminate_nodes(self, node_ids):
if not node_ids:
return
if self.cache_stopped_nodes:
spot_ids = []
on_demand_ids = []
for node_id in node_ids:
if self._get_cached_node(node_id).spot_instance_request_id:
spot_id... | [{'piece_type': 'error message', 'piece_content': '2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).\\n2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.\\n2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics... | 2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).
2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.
2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics: Removed mapping: 172.31.23.116 - 1613573430.7000167
2... | KeyError |
def _print(self,
msg: str,
_level_str: str = "INFO",
_linefeed: bool = True):
"""Proxy for printing messages.
Args:
msg (str): Message to print.
linefeed (bool):
If `linefeed` is `False` no linefeed is printed at t... | def _print(self,
msg: str,
_level_str: str = "INFO",
_linefeed: bool = True):
"""Proxy for printing messages.
Args:
msg (str): Message to print.
linefeed (bool):
If `linefeed` is `False` no linefeed is printed at t... | [{'piece_type': 'error message', 'piece_content': '2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).\\n2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.\\n2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics... | 2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).
2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.
2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics: Removed mapping: 172.31.23.116 - 1613573430.7000167
2... | KeyError |
def _handle_failure(self, error):
logger.exception("Error in monitor loop")
if self.autoscaler is not None and \\
os.environ.get("RAY_AUTOSCALER_FATESHARE_WORKERS", "") == "1":
self.autoscaler.kill_workers()
# Take down autoscaler workers if necessary.
... | def _handle_failure(self, error):
logger.exception("Error in monitor loop")
if self.autoscaler is not None:
self.autoscaler.kill_workers()
# Take down autoscaler workers if necessary.
self.destroy_autoscaler_workers()
# Something went wrong, so push an er... | [{'piece_type': 'error message', 'piece_content': '2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).\\n2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.\\n2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics... | 2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Removing 1 nodes of type cpu_48_spot (idle).
2021-02-17 14:55:34,817 INFO monitor.py:207 – :event_summary:Adding 1 nodes of type cpu_48_spot.
2021-02-17 14:55:40,430 INFO load_metrics.py:102 – LoadMetrics: Removed mapping: 172.31.23.116 - 1613573430.7000167
2... | KeyError |
def close_all_files(self):
"""Close all open files (so that we can open more)."""
while len(self.open_file_infos) > 0:
file_info = self.open_file_infos.pop(0)
file_info.file_handle.close()
file_info.file_handle = None
try:
# Test if the... | def close_all_files(self):
"""Close all open files (so that we can open more)."""
while len(self.open_file_infos) > 0:
file_info = self.open_file_infos.pop(0)
file_info.file_handle.close()
file_info.file_handle = None
try:
# Test if the... | [{'piece_type': 'error message', 'piece_content': '2020-12-02 07:26:37,751\\tWARNING worker.py:1011 -- The log monitor on node ip-172-31-18-179 failed with the following error:\\nTraceback (most recent call last):\\nFile "/home/ubuntu/anaconda3/lib/python3.7/site-packages/ray/log_monitor.py", line 354, in <module>\\nlo... | 2020-12-02 07:26:37,751 WARNING worker.py:1011 -- The log monitor on node ip-172-31-18-179 failed with the following error:
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/ray/log_monitor.py", line 354, in <module>
log_monitor.run()
File "/home/ubuntu/anaconda3/lib/python3.7/... | TypeError |
def update_log_filenames(self):
"""Update the list of log files to monitor."""
# output of user code is written here
log_file_paths = glob.glob(f"{self.logs_dir}/worker*[.out|.err]")
# segfaults and other serious errors are logged here
raylet_err_paths = glob.glob(f"{self.log... | def update_log_filenames(self):
"""Update the list of log files to monitor."""
# output of user code is written here
log_file_paths = glob.glob(f"{self.logs_dir}/worker*[.out|.err]")
# segfaults and other serious errors are logged here
raylet_err_paths = glob.glob(f"{self.log... | [{'piece_type': 'error message', 'piece_content': '2020-12-02 07:26:37,751\\tWARNING worker.py:1011 -- The log monitor on node ip-172-31-18-179 failed with the following error:\\nTraceback (most recent call last):\\nFile "/home/ubuntu/anaconda3/lib/python3.7/site-packages/ray/log_monitor.py", line 354, in <module>\\nlo... | 2020-12-02 07:26:37,751 WARNING worker.py:1011 -- The log monitor on node ip-172-31-18-179 failed with the following error:
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/ray/log_monitor.py", line 354, in <module>
log_monitor.run()
File "/home/ubuntu/anaconda3/lib/python3.7/... | TypeError |
async def run(self):
async def _check_parent():
"""Check if raylet is dead and fate-share if it is."""
try:
curr_proc = psutil.Process()
while True:
parent = curr_proc.parent()
if (parent is None or parent.pid ==... | async def run(self):
async def _check_parent():
"""Check if raylet is dead and fate-share if it is."""
try:
curr_proc = psutil.Process()
while True:
parent = curr_proc.parent()
if (parent is None or parent.pid ==... | [{'piece_type': 'error message', 'piece_content': '2021-01-07 03:57:35,395\\tWARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:\\nTraceback (most recent call last):\\nFile "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in c... | 2021-01-07 03:57:35,395 WARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:
Traceback (most recent call last):
File "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in create_server
sock.bind(sa)
OSError: [Errno 98] Address al... | OSError |
def setup_static_dir():
build_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "client", "build")
module_name = os.path.basename(os.path.dirname(__file__))
if not os.path.isdir(build_dir):
raise FrontendNotFoundError(
errno.ENOENT, "Dashboard build directory not fo... | def setup_static_dir():
build_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "client", "build")
module_name = os.path.basename(os.path.dirname(__file__))
if not os.path.isdir(build_dir):
raise OSError(
errno.ENOENT, "Dashboard build directory not found. If instal... | [{'piece_type': 'error message', 'piece_content': '2021-01-07 03:57:35,395\\tWARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:\\nTraceback (most recent call last):\\nFile "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in c... | 2021-01-07 03:57:35,395 WARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:
Traceback (most recent call last):
File "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in create_server
sock.bind(sa)
OSError: [Errno 98] Address al... | OSError |
def __init__(self,
host,
port,
port_retries,
redis_address,
redis_password=None,
log_dir=None):
self.dashboard_head = dashboard_head.DashboardHead(
http_host=host,
http_port=port,
... | def __init__(self,
host,
port,
redis_address,
redis_password=None,
log_dir=None):
self.dashboard_head = dashboard_head.DashboardHead(
http_host=host,
http_port=port,
redis_address=redis_a... | [{'piece_type': 'error message', 'piece_content': '2021-01-07 03:57:35,395\\tWARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:\\nTraceback (most recent call last):\\nFile "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in c... | 2021-01-07 03:57:35,395 WARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:
Traceback (most recent call last):
File "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in create_server
sock.bind(sa)
OSError: [Errno 98] Address al... | OSError |
def __init__(self, http_host, http_port, http_port_retries, redis_address,
redis_password, log_dir):
# NodeInfoGcsService
self._gcs_node_info_stub = None
self._gcs_rpc_error_counter = 0
# Public attributes are accessible for all head modules.
# Walkaround for... | def __init__(self, http_host, http_port, redis_address, redis_password,
log_dir):
# NodeInfoGcsService
self._gcs_node_info_stub = None
self._gcs_rpc_error_counter = 0
# Public attributes are accessible for all head modules.
self.http_host = http_host
... | [{'piece_type': 'error message', 'piece_content': '2021-01-07 03:57:35,395\\tWARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:\\nTraceback (most recent call last):\\nFile "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in c... | 2021-01-07 03:57:35,395 WARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:
Traceback (most recent call last):
File "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in create_server
sock.bind(sa)
OSError: [Errno 98] Address al... | OSError |
async def run(self):
# Create an aioredis client for all modules.
try:
self.aioredis_client = await dashboard_utils.get_aioredis_client(
self.redis_address, self.redis_password,
dashboard_consts.CONNECT_REDIS_INTERNAL_SECONDS,
dashboard_con... | async def run(self):
# Create an aioredis client for all modules.
try:
self.aioredis_client = await dashboard_utils.get_aioredis_client(
self.redis_address, self.redis_password,
dashboard_consts.CONNECT_REDIS_INTERNAL_SECONDS,
dashboard_con... | [{'piece_type': 'error message', 'piece_content': '2021-01-07 03:57:35,395\\tWARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:\\nTraceback (most recent call last):\\nFile "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in c... | 2021-01-07 03:57:35,395 WARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:
Traceback (most recent call last):
File "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in create_server
sock.bind(sa)
OSError: [Errno 98] Address al... | OSError |
def start_dashboard(require_dashboard,
host,
redis_address,
temp_dir,
logdir,
port=ray_constants.DEFAULT_DASHBOARD_PORT,
stdout_file=None,
stderr_file=None,
red... | def start_dashboard(require_dashboard,
host,
redis_address,
temp_dir,
logdir,
port=ray_constants.DEFAULT_DASHBOARD_PORT,
stdout_file=None,
stderr_file=None,
red... | [{'piece_type': 'error message', 'piece_content': '2021-01-07 03:57:35,395\\tWARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:\\nTraceback (most recent call last):\\nFile "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in c... | 2021-01-07 03:57:35,395 WARNING worker.py:1044 -- The dashboard on node travis-job-a2c3f054-a588-45a5-b10a-2456ba486c28 failed with the following error:
Traceback (most recent call last):
File "/opt/miniconda/lib/python3.6/asyncio/base_events.py", line 1073, in create_server
sock.bind(sa)
OSError: [Errno 98] Address al... | OSError |
def learn_on_batch(self, samples: SampleBatchType) -> dict:
"""Update policies based on the given batch.
This is the equivalent to apply_gradients(compute_gradients(samples)),
but can be optimized to avoid pulling gradients into CPU memory.
Returns:
info: dictionary of ... | def learn_on_batch(self, samples: SampleBatchType) -> dict:
"""Update policies based on the given batch.
This is the equivalent to apply_gradients(compute_gradients(samples)),
but can be optimized to avoid pulling gradients into CPU memory.
Returns:
info: dictionary of ... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/home/justinkterry/.local/lib/python3.6/site-packages/ray/tune/trial_runner.py", line 519, in _process_trial\\nresult = self.trial_executor.fetch_result(trial)\\nFile "/home/justinkterry/.local/lib/python3.6/site-packages/ray/... | Traceback (most recent call last):
File "/home/justinkterry/.local/lib/python3.6/site-packages/ray/tune/trial_runner.py", line 519, in _process_trial
result = self.trial_executor.fetch_result(trial)
File "/home/justinkterry/.local/lib/python3.6/site-packages/ray/tune/ray_trial_executor.py", line 497, in fetch_result
re... | ValueError |
def __call__(self,
samples: SampleBatchType) -> (SampleBatchType, List[dict]):
_check_sample_batch_type(samples)
# Handle everything as if multiagent
if isinstance(samples, SampleBatch):
samples = MultiAgentBatch({
DEFAULT_POLICY_ID: samples
... | def __call__(self,
samples: SampleBatchType) -> (SampleBatchType, List[dict]):
_check_sample_batch_type(samples)
# Handle everything as if multiagent
if isinstance(samples, SampleBatch):
samples = MultiAgentBatch({
DEFAULT_POLICY_ID: samples
... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/home/justinkterry/.local/lib/python3.6/site-packages/ray/tune/trial_runner.py", line 519, in _process_trial\\nresult = self.trial_executor.fetch_result(trial)\\nFile "/home/justinkterry/.local/lib/python3.6/site-packages/ray/... | Traceback (most recent call last):
File "/home/justinkterry/.local/lib/python3.6/site-packages/ray/tune/trial_runner.py", line 519, in _process_trial
result = self.trial_executor.fetch_result(trial)
File "/home/justinkterry/.local/lib/python3.6/site-packages/ray/tune/ray_trial_executor.py", line 497, in fetch_result
re... | ValueError |
def _get(self, ref: ClientObjectRef, timeout: float):
req = ray_client_pb2.GetRequest(id=ref.id, timeout=timeout)
try:
data = self.data_client.GetObject(req)
except grpc.RpcError as e:
raise e.details()
if not data.valid:
try:
err =... | def _get(self, ref: ClientObjectRef, timeout: float):
req = ray_client_pb2.GetRequest(id=ref.id, timeout=timeout)
try:
data = self.data_client.GetObject(req)
except grpc.RpcError as e:
raise e.details()
if not data.valid:
try:
err =... | [{'piece_type': 'source code', 'piece_content': 'import ray\\nray.init(address="auto")\\n\\ntry:\\nray.get_actor("abc")\\nexcept ValueError:\\npass'}, {'piece_type': 'other', 'piece_content': '2021-02-17 13:07:34,905 INFO worker.py:648 -- Connecting to existing Ray cluster at address: 192.168.0.124:6379'}, {'piece_type... | Failed to deserialize b"\\x80\\x05\\x95\\xf1\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x8c\\x08builtins\\x94\\x8c\\nValueError\\x94\\x93\\x94\\x8c\\xcfFailed to look up actor with name 'abc'. You are either trying to look up a named actor you didn't create, the named actor died, or the actor hasn't been created because named... | ValueError |
def _call_schedule_for_task(
self, task: ray_client_pb2.ClientTask) -> List[bytes]:
logger.debug("Scheduling %s" % task)
task.client_id = self._client_id
try:
ticket = self.server.Schedule(task, metadata=self.metadata)
except grpc.RpcError as e:
ra... | def _call_schedule_for_task(
self, task: ray_client_pb2.ClientTask) -> List[bytes]:
logger.debug("Scheduling %s" % task)
task.client_id = self._client_id
try:
ticket = self.server.Schedule(task, metadata=self.metadata)
except grpc.RpcError as e:
ra... | [{'piece_type': 'source code', 'piece_content': 'import ray\\nray.init(address="auto")\\n\\ntry:\\nray.get_actor("abc")\\nexcept ValueError:\\npass'}, {'piece_type': 'other', 'piece_content': '2021-02-17 13:07:34,905 INFO worker.py:648 -- Connecting to existing Ray cluster at address: 192.168.0.124:6379'}, {'piece_type... | Failed to deserialize b"\\x80\\x05\\x95\\xf1\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x8c\\x08builtins\\x94\\x8c\\nValueError\\x94\\x93\\x94\\x8c\\xcfFailed to look up actor with name 'abc'. You are either trying to look up a named actor you didn't create, the named actor died, or the actor hasn't been created because named... | ValueError |
def normalize(data, wrt):
""" Normalize data to be in range (0,1), with respect to (wrt) boundaries,
which can be specified.
"""
return (data - np.min(wrt, axis=0)) / (
np.max(wrt, axis=0) - np.min(wrt, axis=0) + 1e-8) | def normalize(data, wrt):
""" Normalize data to be in range (0,1), with respect to (wrt) boundaries,
which can be specified.
"""
return (data - np.min(wrt, axis=0)) / (
np.max(wrt, axis=0) - np.min(wrt, axis=0)) | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "./tune_pb2.py", line 303, in <module>\\nraise_on_failed_trial=False)\\nFile "/home/john/anaconda3/envs/python3.7/lib/python3.7/site-packages/ray/tune/tune.py", line 411, in run\\nrunner.step()\\nFile "/home/john/anaconda3/envs... | Traceback (most recent call last):
File "./tune_pb2.py", line 303, in <module>
raise_on_failed_trial=False)
File "/home/john/anaconda3/envs/python3.7/lib/python3.7/site-packages/ray/tune/tune.py", line 411, in run
runner.step()
File "/home/john/anaconda3/envs/python3.7/lib/python3.7/site-packages/ray/tune/trial_runner.... | ray.tune.error.TuneError |
def on_step_begin(self, **info):
import click
from ray.autoscaler._private.commands import kill_node
failures = 0
max_failures = 3
# With 10% probability inject failure to a worker.
if random.random() < self.probability and not self.disable:
# With 10% pro... | def on_step_begin(self, **info):
from ray.autoscaler._private.commands import kill_node
# With 10% probability inject failure to a worker.
if random.random() < self.probability and not self.disable:
# With 10% probability fully terminate the node.
should_terminate = r... | [{'piece_type': 'error message', 'piece_content': '2021-02-04 17:58:07,590 INFO commands.py:283 -- Checking AWS environment settings\\n2021-02-04 17:58:08,874 INFO commands.py:431 -- A random node will be killed. Confirm [y/N]: y [automatic, due to --yes]\\n2021-02-04 17:58:09,027 INFO commands.py:441 -- Shutdown i-03a... | 2021-02-04 17:58:07,590 INFO commands.py:283 -- Checking AWS environment settings
2021-02-04 17:58:08,874 INFO commands.py:431 -- A random node will be killed. Confirm [y/N]: y [automatic, due to --yes]
2021-02-04 17:58:09,027 INFO commands.py:441 -- Shutdown i-03aa1f3b86602ada0
2021-02-04 17:58:09,028 INFO command_run... | click.exceptions.ClickException |
def _check_ami(config):
"""Provide helpful message for missing ImageId for node configuration."""
_set_config_info(head_ami_src="config", workers_ami_src="config")
region = config["provider"]["region"]
default_ami = DEFAULT_AMI.get(region)
if not default_ami:
# If we do not provide a defau... | def _check_ami(config):
"""Provide helpful message for missing ImageId for node configuration."""
_set_config_info(head_ami_src="config", workers_ami_src="config")
region = config["provider"]["region"]
default_ami = DEFAULT_AMI.get(region)
if not default_ami:
# If we do not provide a defau... | [{'piece_type': 'error message', 'piece_content': 'Traceback (most recent call last):\\nFile "/home/ubuntu/.local/bin/ray", line 11, in <module>\\nload_entry_point(\\'ray\\', \\'console_scripts\\', \\'ray\\')()\\nFile "/home/ubuntu/ray/python/ray/scripts/scripts.py", line 1519, in main\\nreturn cli()\\nFile "/home/ubun... | Traceback (most recent call last):
File "/home/ubuntu/.local/bin/ray", line 11, in <module>
load_entry_point('ray', 'console_scripts', 'ray')()
File "/home/ubuntu/ray/python/ray/scripts/scripts.py", line 1519, in main
return cli()
File "/home/ubuntu/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call... | KeyError |
def on_checkpoint(self, checkpoint):
"""Starts tracking checkpoint metadata on checkpoint.
Sets the newest checkpoint. For PERSISTENT checkpoints: Deletes
previous checkpoint as long as it isn't one of the best ones. Also
deletes the worst checkpoint if at capacity.
Args:
... | def on_checkpoint(self, checkpoint):
"""Starts tracking checkpoint metadata on checkpoint.
Sets the newest checkpoint. For PERSISTENT checkpoints: Deletes
previous checkpoint as long as it isn't one of the best ones. Also
deletes the worst checkpoint if at capacity.
Args:
... | [{'piece_type': 'error message', 'piece_content': 'Failure # 1 (occurred at 2020-06-19_11-26-36)\\nTraceback (most recent call last):\\nFile "/usr/local/lib/python3.6/dist-packages/ray/tune/ray_trial_executor.py", line 294, in start_trial\\nself._start_trial(trial, checkpoint, train=train)\\nFile "/usr/local/lib/python... | Failure # 1 (occurred at 2020-06-19_11-26-36)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/ray/tune/ray_trial_executor.py", line 294, in start_trial
self._start_trial(trial, checkpoint, train=train)
File "/usr/local/lib/python3.6/dist-packages/ray/tune/ray_trial_executor.py", line 235... | FileNotFoundError |
def __init__(self, controller_handle, sync: bool):
self.controller_handle = controller_handle
self.sync = sync
self.router = Router(controller_handle)
if sync:
self.async_loop = create_or_get_async_loop_in_thread()
asyncio.run_coroutine_threadsafe(
... | def __init__(self, controller_handle, sync: bool):
self.router = Router(controller_handle)
if sync:
self.async_loop = create_or_get_async_loop_in_thread()
asyncio.run_coroutine_threadsafe(
self.router.setup_in_async_loop(),
self.async_loop,
... | [{'piece_type': 'other', 'piece_content': 'from ray import serve\\nimport ray\\n\\ndef f(_): pass\\n\\nclient = serve.start()\\nclient.create_backend("f", f)\\nclient.create_endpoint("f", backend="f")\\nhandle = client.get_handle("f")\\n\\nray.put(handle)'}, {'piece_type': 'error message', 'piece_content': '2021-01-04 ... | 2021-01-04 21:15:59,360 INFO services.py:1173 -- View the Ray dashboard at http://127.0.0.1:8265
(pid=6369) 2021-01-04 21:16:01,432 INFO controller.py:346 -- Starting router with name 'hRhwaS:SERVE_CONTROLLER_ACTOR:SERVE_PROXY_ACTOR-node:192.168.31.141-0' on node 'node:192.168.31.141-0' listening on '127.0.0.1:8000'
(p... | TypeError |
def __init__(
self,
router, # ThreadProxiedRouter
endpoint_name,
handle_options: Optional[HandleOptions] = None):
self.router = router
self.endpoint_name = endpoint_name
self.handle_options = handle_options or HandleOptions() | def __init__(self,
router: Router,
endpoint_name,
handle_options: Optional[HandleOptions] = None):
self.router = router
self.endpoint_name = endpoint_name
self.handle_options = handle_options or HandleOptions() | [{'piece_type': 'other', 'piece_content': 'from ray import serve\\nimport ray\\n\\ndef f(_): pass\\n\\nclient = serve.start()\\nclient.create_backend("f", f)\\nclient.create_endpoint("f", backend="f")\\nhandle = client.get_handle("f")\\n\\nray.put(handle)'}, {'piece_type': 'error message', 'piece_content': '2021-01-04 ... | 2021-01-04 21:15:59,360 INFO services.py:1173 -- View the Ray dashboard at http://127.0.0.1:8265
(pid=6369) 2021-01-04 21:16:01,432 INFO controller.py:346 -- Starting router with name 'hRhwaS:SERVE_CONTROLLER_ACTOR:SERVE_PROXY_ACTOR-node:192.168.31.141-0' on node 'node:192.168.31.141-0' listening on '127.0.0.1:8000'
(p... | TypeError |
async def remote(self,
request_data: Optional[Union[Dict, Any]] = None,
**kwargs):
"""Issue an asynchronous request to the endpoint.
Returns a Ray ObjectRef whose results can be waited for or retrieved
using ray.wait or ray.get (or ``await object_re... | async def remote(self,
request_data: Optional[Union[Dict, Any]] = None,
**kwargs):
"""Issue an asynchrounous request to the endpoint.
Returns a Ray ObjectRef whose results can be waited for or retrieved
using ray.wait or ray.get (or ``await object_r... | [{'piece_type': 'other', 'piece_content': 'from ray import serve\\nimport ray\\n\\ndef f(_): pass\\n\\nclient = serve.start()\\nclient.create_backend("f", f)\\nclient.create_endpoint("f", backend="f")\\nhandle = client.get_handle("f")\\n\\nray.put(handle)'}, {'piece_type': 'error message', 'piece_content': '2021-01-04 ... | 2021-01-04 21:15:59,360 INFO services.py:1173 -- View the Ray dashboard at http://127.0.0.1:8265
(pid=6369) 2021-01-04 21:16:01,432 INFO controller.py:346 -- Starting router with name 'hRhwaS:SERVE_CONTROLLER_ACTOR:SERVE_PROXY_ACTOR-node:192.168.31.141-0' on node 'node:192.168.31.141-0' listening on '127.0.0.1:8000'
(p... | TypeError |
def __init__(self,
node_ip_address,
redis_address,
dashboard_agent_port,
redis_password=None,
temp_dir=None,
log_dir=None,
metrics_export_port=None,
node_manager_port=None,
... | def __init__(self,
node_ip_address,
redis_address,
dashboard_agent_port,
redis_password=None,
temp_dir=None,
log_dir=None,
metrics_export_port=None,
node_manager_port=None,
... | [{'piece_type': 'error message', 'piece_content': '2021-01-05T07:27:22.1039161Z 2021-01-05 07:26:40,486\\tWARNING worker.py:1044 -- The agent on node fv-az68-689 failed with the following error:\\n2021-01-05T07:27:22.1039976Z Traceback (most recent call last):\\n2021-01-05T07:27:22.1040684Z File "d:\\\\a\\\\ray\\\\ra... | 2021-01-05T07:27:22.1039161Z 2021-01-05 07:26:40,486 WARNING worker.py:1044 -- The agent on node fv-az68-689 failed with the following error:
2021-01-05T07:27:22.1039976Z Traceback (most recent call last):
2021-01-05T07:27:22.1040684Z File "d:\\a\\ray\\ray\\python\\ray\\new_dashboard/agent.py", line 311, in <module>
... | UnboundLocalError |
async def run(self):
async def _check_parent():
"""Check if raylet is dead and fate-share if it is."""
try:
curr_proc = psutil.Process()
while True:
parent = curr_proc.parent()
if (parent is None or parent.pid ==... | async def run(self):
async def _check_parent():
"""Check if raylet is dead and fate-share if it is."""
try:
curr_proc = psutil.Process()
while True:
parent = curr_proc.parent()
if (parent is None or parent.pid ==... | [{'piece_type': 'error message', 'piece_content': '2021-01-05T07:27:22.1039161Z 2021-01-05 07:26:40,486\\tWARNING worker.py:1044 -- The agent on node fv-az68-689 failed with the following error:\\n2021-01-05T07:27:22.1039976Z Traceback (most recent call last):\\n2021-01-05T07:27:22.1040684Z File "d:\\\\a\\\\ray\\\\ra... | 2021-01-05T07:27:22.1039161Z 2021-01-05 07:26:40,486 WARNING worker.py:1044 -- The agent on node fv-az68-689 failed with the following error:
2021-01-05T07:27:22.1039976Z Traceback (most recent call last):
2021-01-05T07:27:22.1040684Z File "d:\\a\\ray\\ray\\python\\ray\\new_dashboard/agent.py", line 311, in <module>
... | UnboundLocalError |
def is_connected(self) -> bool:
if self.client_worker is None:
return False
return self.client_worker.is_connected() | def is_connected(self) -> bool:
return self.client_worker is not None | [{'piece_type': 'error message', 'piece_content': 'Got Error from data channel -- shutting down: <_MultiThreadedRendezvous of RPC that terminated with:\\nstatus = StatusCode.UNAVAILABLE\\ndetails = "Received http2 header with status: 502"\\ndebug_error_string = "{"created":"@1610421939.184399675","description":"Receive... | Got Error from data channel -- shutting down: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Received http2 header with status: 502"
debug_error_string = "{"created":"@1610421939.184399675","description":"Received http2 :status header with non-200 OK status","file":"sr... | debug_error |
def __init__(self, channel: "grpc._channel.Channel", client_id: str,
metadata: list):
"""Initializes a thread-safe datapath over a Ray Client gRPC channel.
Args:
channel: connected gRPC channel
client_id: the generated ID representing this client
... | def __init__(self, channel: "grpc._channel.Channel", client_id: str,
metadata: list):
"""Initializes a thread-safe datapath over a Ray Client gRPC channel.
Args:
channel: connected gRPC channel
client_id: the generated ID representing this client
... | [{'piece_type': 'error message', 'piece_content': 'Got Error from data channel -- shutting down: <_MultiThreadedRendezvous of RPC that terminated with:\\nstatus = StatusCode.UNAVAILABLE\\ndetails = "Received http2 header with status: 502"\\ndebug_error_string = "{"created":"@1610421939.184399675","description":"Receive... | Got Error from data channel -- shutting down: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Received http2 header with status: 502"
debug_error_string = "{"created":"@1610421939.184399675","description":"Received http2 :status header with non-200 OK status","file":"sr... | debug_error |
def _data_main(self) -> None:
stub = ray_client_pb2_grpc.RayletDataStreamerStub(self.channel)
resp_stream = stub.Datapath(
iter(self.request_queue.get, None),
metadata=[("client_id", self._client_id)] + self._metadata,
wait_for_ready=True)
try:
... | def _data_main(self) -> None:
stub = ray_client_pb2_grpc.RayletDataStreamerStub(self.channel)
resp_stream = stub.Datapath(
iter(self.request_queue.get, None),
metadata=[("client_id", self._client_id)] + self._metadata,
wait_for_ready=True)
try:
... | [{'piece_type': 'error message', 'piece_content': 'Got Error from data channel -- shutting down: <_MultiThreadedRendezvous of RPC that terminated with:\\nstatus = StatusCode.UNAVAILABLE\\ndetails = "Received http2 header with status: 502"\\ndebug_error_string = "{"created":"@1610421939.184399675","description":"Receive... | Got Error from data channel -- shutting down: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Received http2 header with status: 502"
debug_error_string = "{"created":"@1610421939.184399675","description":"Received http2 :status header with non-200 OK status","file":"sr... | debug_error |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.