after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def show_table(self, result): table = result.node.agate_table rand_table = table.order_by(lambda x: random.random()) schema = result.node.schema alias = result.node.alias header = "Random sample of table: {}.{}".format(schema, alias) logger.info("") logger.info(header) logger.info("-" ...
def show_table(self, result): table = result.node["agate_table"] rand_table = table.order_by(lambda x: random.random()) schema = result.node["schema"] alias = result.node["alias"] header = "Random sample of table: {}.{}".format(schema, alias) logger.info("") logger.info(header) logger....
https://github.com/fishtown-analytics/dbt/issues/1288
2019-02-12 10:58:28,566 (MainThread): Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x10bcc7e48>, <snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x108697518>, <snowplow_tracker.self_describi...
KeyError
def clone(repo, cwd, dirname=None, remove_git_dir=False): clone_cmd = ["git", "clone", "--depth", "1", repo] if dirname is not None: clone_cmd.append(dirname) result = run_cmd(cwd, clone_cmd, env={"LC_ALL": "C"}) if remove_git_dir: rmdir(os.path.join(dirname, ".git")) return resu...
def clone(repo, cwd, dirname=None, remove_git_dir=False): clone_cmd = ["git", "clone", "--depth", "1", repo] if dirname is not None: clone_cmd.append(dirname) result = run_cmd(cwd, clone_cmd) if remove_git_dir: rmdir(os.path.join(dirname, ".git")) return result
https://github.com/fishtown-analytics/dbt/issues/1222
analytics-core git:(master) 1M 2A ₹ LC_ALL=es_ES dbt deps Encountered an error: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "/Users/vijay/.pyenv/versions/3.6.5/lib/python3.6/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/Users/vijay...
AttributeError
def list_tags(cwd): out, err = run_cmd(cwd, ["git", "tag", "--list"], env={"LC_ALL": "C"}) tags = out.decode("utf-8").strip().split("\n") return tags
def list_tags(cwd): out, err = run_cmd(cwd, ["git", "tag", "--list"]) tags = out.decode("utf-8").strip().split("\n") return tags
https://github.com/fishtown-analytics/dbt/issues/1222
analytics-core git:(master) 1M 2A ₹ LC_ALL=es_ES dbt deps Encountered an error: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "/Users/vijay/.pyenv/versions/3.6.5/lib/python3.6/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/Users/vijay...
AttributeError
def _checkout(cwd, repo, branch): logger.debug(" Checking out branch {}.".format(branch)) run_cmd(cwd, ["git", "remote", "set-branches", "origin", branch]) run_cmd(cwd, ["git", "fetch", "--tags", "--depth", "1", "origin", branch]) tags = list_tags(cwd) # Prefer tags to branches if one exists ...
def _checkout(cwd, repo, branch): logger.debug(" Checking out branch {}.".format(branch)) run_cmd(cwd, ["git", "remote", "set-branches", "origin", branch]) run_cmd(cwd, ["git", "fetch", "--tags", "--depth", "1", "origin", branch]) tags = list_tags(cwd) # Prefer tags to branches if one exists ...
https://github.com/fishtown-analytics/dbt/issues/1222
analytics-core git:(master) 1M 2A ₹ LC_ALL=es_ES dbt deps Encountered an error: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "/Users/vijay/.pyenv/versions/3.6.5/lib/python3.6/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/Users/vijay...
AttributeError
def get_current_sha(cwd): out, err = run_cmd(cwd, ["git", "rev-parse", "HEAD"], env={"LC_ALL": "C"}) return out.decode("utf-8")
def get_current_sha(cwd): out, err = run_cmd(cwd, ["git", "rev-parse", "HEAD"]) return out.decode("utf-8")
https://github.com/fishtown-analytics/dbt/issues/1222
analytics-core git:(master) 1M 2A ₹ LC_ALL=es_ES dbt deps Encountered an error: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "/Users/vijay/.pyenv/versions/3.6.5/lib/python3.6/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/Users/vijay...
AttributeError
def remove_remote(cwd): return run_cmd(cwd, ["git", "remote", "rm", "origin"], env={"LC_ALL": "C"})
def remove_remote(cwd): return run_cmd(cwd, ["git", "remote", "rm", "origin"])
https://github.com/fishtown-analytics/dbt/issues/1222
analytics-core git:(master) 1M 2A ₹ LC_ALL=es_ES dbt deps Encountered an error: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "/Users/vijay/.pyenv/versions/3.6.5/lib/python3.6/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/Users/vijay...
AttributeError
def run_cmd(cwd, cmd, env=None): logger.debug('Executing "{}"'.format(" ".join(cmd))) if len(cmd) == 0: raise dbt.exceptions.CommandError(cwd, cmd) # the env argument replaces the environment entirely, which has exciting # consequences on Windows! Do an update instead. full_env = env if...
def run_cmd(cwd, cmd): logger.debug('Executing "{}"'.format(" ".join(cmd))) if len(cmd) == 0: raise dbt.exceptions.CommandError(cwd, cmd) try: proc = subprocess.Popen( cmd, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE ) out, err = proc.communicate() ...
https://github.com/fishtown-analytics/dbt/issues/1222
analytics-core git:(master) 1M 2A ₹ LC_ALL=es_ES dbt deps Encountered an error: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "/Users/vijay/.pyenv/versions/3.6.5/lib/python3.6/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/Users/vijay...
AttributeError
def safe_run(self, manifest): catchable_errors = ( dbt.exceptions.CompilationException, dbt.exceptions.RuntimeException, ) result = RunModelResult(self.node) started = time.time() try: # if we fail here, we still have a compiled node to return # this has the benefit...
def safe_run(self, manifest): catchable_errors = ( dbt.exceptions.CompilationException, dbt.exceptions.RuntimeException, ) result = RunModelResult(self.node) started = time.time() exc_info = (None, None, None) try: # if we fail here, we still have a compiled node to ret...
https://github.com/fishtown-analytics/dbt/issues/1223
$ cat macros/oops_materialization.sql {% materialization oops, default -%} {{ exceptions.raise_dependency_error('x') }} {%- endmaterialization %} $ cat models/base.sql {{ config(materialized='oops') }} select 1 as id $ cat models/dependent.sql select * from {{ ref('base') }} $ cat dbt_project.yml name: 'debug' version:...
dbt.exceptions.DependencyException
def __init__(self, profile_name, target_name, config, threads, credentials): self.profile_name = profile_name self.target_name = target_name if isinstance(config, dict): config = UserConfig.from_dict(config) self.config = config self.threads = threads self.credentials = credentials
def __init__( self, profile_name, target_name, send_anonymous_usage_stats, use_colors, threads, credentials, ): self.profile_name = profile_name self.target_name = target_name self.send_anonymous_usage_stats = send_anonymous_usage_stats self.use_colors = use_colors self.t...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def to_profile_info(self, serialize_credentials=False): """Unlike to_project_config, this dict is not a mirror of any existing on-disk data structure. It's used when creating a new profile from an existing one. :param serialize_credentials bool: If True, serialize the credentials. Otherwise, th...
def to_profile_info(self, serialize_credentials=False): """Unlike to_project_config, this dict is not a mirror of any existing on-disk data structure. It's used when creating a new profile from an existing one. :param serialize_credentials bool: If True, serialize the credentials. Otherwise, th...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def from_credentials( cls, credentials, threads, profile_name, target_name, user_cfg=None ): """Create a profile from an existing set of Credentials and the remaining information. :param credentials Credentials: The credentials for this profile. :param threads int: The number of threads to use for ...
def from_credentials( cls, credentials, threads, profile_name, target_name, user_cfg=None ): """Create a profile from an existing set of Credentials and the remaining information. :param credentials Credentials: The credentials for this profile. :param threads int: The number of threads to use for ...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def from_args(cls, args, project_profile_name=None, cli_vars=None): """Given the raw profiles as read from disk and the name of the desired profile if specified, return the profile component of the runtime config. :param args argparse.Namespace: The arguments as parsed from the cli. :param cli_vars...
def from_args(cls, args, project_profile_name=None, cli_vars=None): """Given the raw profiles as read from disk and the name of the desired profile if specified, return the profile component of the runtime config. :param args argparse.Namespace: The arguments as parsed from the cli. :param cli_vars...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def __init__( self, project_name, version, project_root, source_paths, macro_paths, data_paths, test_paths, analysis_paths, docs_paths, target_path, clean_targets, log_path, modules_path, quoting, models, on_run_start, on_run_end, archive, ...
def __init__( self, project_name, version, project_root, source_paths, macro_paths, data_paths, test_paths, analysis_paths, docs_paths, target_path, clean_targets, log_path, modules_path, quoting, models, on_run_start, on_run_end, archive, ...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def from_parts(cls, project, profile, args): """Instantiate a RuntimeConfig from its components. :param profile Profile: A parsed dbt Profile. :param project Project: A parsed dbt Project. :param args argparse.Namespace: The parsed command-line arguments. :returns RuntimeConfig: The new configurati...
def from_parts(cls, project, profile, args): """Instantiate a RuntimeConfig from its components. :param profile Profile: A parsed dbt Profile. :param project Project: A parsed dbt Project. :param args argparse.Namespace: The parsed command-line arguments. :returns RuntimeConfig: The new configurati...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def handle_and_check(args): parsed = parse_args(args) profiler_enabled = False if parsed.record_timing_info: profiler_enabled = True with dbt.profiler.profiler( enable=profiler_enabled, outfile=parsed.record_timing_info ): initialize_config_values(parsed) reset_ada...
def handle_and_check(args): parsed = parse_args(args) profiler_enabled = False if parsed.record_timing_info: profiler_enabled = True with dbt.profiler.profiler( enable=profiler_enabled, outfile=parsed.record_timing_info ): # this needs to happen after args are parsed so we ...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def parse_args(args): p = DBTArgumentParser( prog="dbt: data build tool", formatter_class=argparse.RawTextHelpFormatter, description="An ELT tool for managing your SQL " "transformations and data models." "\nFor more documentation on these commands, visit: " "docs.get...
def parse_args(args): p = DBTArgumentParser( prog="dbt: data build tool", formatter_class=argparse.RawTextHelpFormatter, description="An ELT tool for managing your SQL " "transformations and data models." "\nFor more documentation on these commands, visit: " "docs.get...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def __init__(self, cookie_dir): self.do_not_track = True self.cookie_dir = cookie_dir self.id = None self.invocation_id = str(uuid.uuid4()) self.run_started_at = datetime.now(tz=pytz.utc)
def __init__(self): self.do_not_track = True self.id = None self.invocation_id = str(uuid.uuid4()) self.run_started_at = datetime.now(tz=pytz.utc)
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def set_cookie(self): user = {"id": str(uuid.uuid4())} dbt.clients.system.make_directory(self.cookie_dir) with open(self.cookie_path, "w") as fh: yaml.dump(user, fh) return user
def set_cookie(self): cookie_dir = os.path.dirname(COOKIE_PATH) user = {"id": str(uuid.uuid4())} dbt.clients.system.make_directory(cookie_dir) with open(COOKIE_PATH, "w") as fh: yaml.dump(user, fh) return user
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def get_cookie(self): if not os.path.isfile(self.cookie_path): user = self.set_cookie() else: with open(self.cookie_path, "r") as fh: try: user = yaml.safe_load(fh) if user is None: user = self.set_cookie() except yaml.r...
def get_cookie(self): if not os.path.isfile(COOKIE_PATH): user = self.set_cookie() else: with open(COOKIE_PATH, "r") as fh: try: user = yaml.safe_load(fh) if user is None: user = self.set_cookie() except yaml.reader.Read...
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def do_not_track(): global active_user active_user = User(None)
def do_not_track(): global active_user active_user = User()
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def initialize_tracking(cookie_dir): global active_user active_user = User(cookie_dir) try: active_user.initialize() except Exception: logger.debug("Got an exception trying to initialize tracking", exc_info=True) active_user = User(None)
def initialize_tracking(): global active_user active_user = User() active_user.initialize()
https://github.com/fishtown-analytics/dbt/issues/1180
[Errno 13] Permission denied: '/.dbt' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 76, in main results, succeeded = handle_and_check(args) File "/usr/local/lib/python3.7/site-packages/dbt/main.py", line 120, in handle_and_check dbt.tracking.initialize_tracking() Fil...
PermissionError
def create_macro_capture_env(node): class ParserMacroCapture(jinja2.Undefined): """ This class sets up the parser to capture macros. """ def __init__(self, hint=None, obj=None, name=None, exc=None): super(jinja2.Undefined, self).__init__() self.node = node ...
def create_macro_capture_env(node): class ParserMacroCapture(jinja2.Undefined): """ This class sets up the parser to capture macros. """ def __init__(self, hint=None, obj=None, name=None, exc=None): super(jinja2.Undefined, self).__init__() self.node = node ...
https://github.com/fishtown-analytics/dbt/issues/1080
(MainThread): maximum recursion depth exceeded in comparison 2018-10-22 16:36:31,926 (MainThread): Traceback (most recent call last): File "/Users/azme/anaconda3/lib/python3.6/site-packages/dbt/main.py", line 72, in main results, succeeded = handle_and_check(args) File "/Users/azme/anaconda3/lib/python3.6/site-packages...
RecursionError
def __init__(self, hint=None, obj=None, name=None, exc=None): super(jinja2.Undefined, self).__init__() self.node = node self.name = name self.package_name = node.get("package_name") # jinja uses these for safety, so we have to override them. # see https://github.com/pallets/jinja/blob/master/jin...
def __init__(self, hint=None, obj=None, name=None, exc=None): super(jinja2.Undefined, self).__init__() self.node = node self.name = name self.package_name = node.get("package_name")
https://github.com/fishtown-analytics/dbt/issues/1080
(MainThread): maximum recursion depth exceeded in comparison 2018-10-22 16:36:31,926 (MainThread): Traceback (most recent call last): File "/Users/azme/anaconda3/lib/python3.6/site-packages/dbt/main.py", line 72, in main results, succeeded = handle_and_check(args) File "/Users/azme/anaconda3/lib/python3.6/site-packages...
RecursionError
def __getattr__(self, name): if name == "name" or _is_dunder_name(name): raise AttributeError( "'{}' object has no attribute '{}'".format(type(self).__name__, name) ) self.package_name = self.name self.name = name return self
def __getattr__(self, name): # jinja uses these for safety, so we have to override them. # see https://github.com/pallets/jinja/blob/master/jinja2/sandbox.py#L332-L339 # noqa if name in ["unsafe_callable", "alters_data"]: return False self.package_name = self.name self.name = name retu...
https://github.com/fishtown-analytics/dbt/issues/1080
(MainThread): maximum recursion depth exceeded in comparison 2018-10-22 16:36:31,926 (MainThread): Traceback (most recent call last): File "/Users/azme/anaconda3/lib/python3.6/site-packages/dbt/main.py", line 72, in main results, succeeded = handle_and_check(args) File "/Users/azme/anaconda3/lib/python3.6/site-packages...
RecursionError
def get_catalog(cls, profile, project_cfg, manifest): try: table = cls.run_operation( profile, project_cfg, manifest, GET_CATALOG_OPERATION_NAME ) finally: cls.release_connection(profile, GET_CATALOG_OPERATION_NAME) results = table.where(_filter_schemas(manifest)) re...
def get_catalog(cls, profile, project_cfg, manifest): try: table = cls.run_operation( profile, project_cfg, manifest, GET_CATALOG_OPERATION_NAME ) finally: cls.release_connection(profile, GET_CATALOG_OPERATION_NAME) schemas = list({node.schema.lower() for node in manifes...
https://github.com/fishtown-analytics/dbt/issues/980
from svv_table_info DEBUG:dbt:SQL status: SELECT in 2.90 seconds DEBUG:dbt:On get_catalog_data: ROLLBACK DEBUG:dbt:Flushing usage events Encountered an error: INFO:dbt:Encountered an error: 'NoneType' object has no attribute 'lower' INFO:dbt:'NoneType' object has no attribute 'lower' DEBUG:dbt:Traceback (most recent ca...
AttributeError
def print_start_line(node, schema_name, index, total): if node.get("resource_type") == NodeType.Model: print_model_start_line(node, schema_name, index, total) if node.get("resource_type") == NodeType.Test: print_test_start_line(node, schema_name, index, total) if node.get("resource_type") ==...
def print_start_line(node, schema_name, index, total): if node.get("resource_type") == NodeType.Model: print_model_start_line(node, schema_name, index, total) if node.get("resource_type") == NodeType.Test: print_test_start_line(node, schema_name, index, total)
https://github.com/fishtown-analytics/dbt/issues/252
(venv)Tristans-MacBook-Pro:analytics tristan$ dbt archive Traceback (most recent call last): File "/Users/tristan/dev/venv/bin/dbt", line 6, in <module> exec(compile(open(__file__).read(), __file__, 'exec')) File "/Users/tristan/dev/dbt/scripts/dbt", line 8, in <module> dbt.main.main(sys.argv[1:]) File "/Users/tristan/...
psycopg2.NotSupportedError
def print_result_line(result, schema_name, index, total): node = result.node if node.get("resource_type") == NodeType.Model: print_model_result_line(result, schema_name, index, total) elif node.get("resource_type") == NodeType.Test: print_test_result_line(result, schema_name, index, total) ...
def print_result_line(result, schema_name, index, total): node = result.node if node.get("resource_type") == NodeType.Model: print_model_result_line(result, schema_name, index, total) elif node.get("resource_type") == NodeType.Test: print_test_result_line(result, schema_name, index, total)
https://github.com/fishtown-analytics/dbt/issues/252
(venv)Tristans-MacBook-Pro:analytics tristan$ dbt archive Traceback (most recent call last): File "/Users/tristan/dev/venv/bin/dbt", line 6, in <module> exec(compile(open(__file__).read(), __file__, 'exec')) File "/Users/tristan/dev/dbt/scripts/dbt", line 8, in <module> dbt.main.main(sys.argv[1:]) File "/Users/tristan/...
psycopg2.NotSupportedError
def execute_archive(profile, node, context): adapter = get_adapter(profile) node_cfg = node.get("config", {}) source_columns = adapter.get_columns_in_table( profile, node_cfg.get("source_schema"), node_cfg.get("source_table") ) if len(source_columns) == 0: source_schema = node_cfg...
def execute_archive(profile, node, context): adapter = get_adapter(profile) node_cfg = node.get("config", {}) source_columns = adapter.get_columns_in_table( profile, node_cfg.get("source_schema"), node_cfg.get("source_table") ) if len(source_columns) == 0: raise RuntimeError( ...
https://github.com/fishtown-analytics/dbt/issues/252
(venv)Tristans-MacBook-Pro:analytics tristan$ dbt archive Traceback (most recent call last): File "/Users/tristan/dev/venv/bin/dbt", line 6, in <module> exec(compile(open(__file__).read(), __file__, 'exec')) File "/Users/tristan/dev/dbt/scripts/dbt", line 8, in <module> dbt.main.main(sys.argv[1:]) File "/Users/tristan/...
psycopg2.NotSupportedError
def do_compile(self): schema_tests = [] for model_name, constraint_blob in self.schema.items(): constraints = constraint_blob.get("constraints", {}) for constraint_type, constraint_data in constraints.items(): if constraint_data is None: compiler_error( ...
def do_compile(self): schema_tests = [] for model_name, constraint_blob in self.schema.items(): constraints = constraint_blob.get("constraints", {}) for constraint_type, constraint_data in constraints.items(): for params in constraint_data: schema_test_klass = self.ge...
https://github.com/fishtown-analytics/dbt/issues/240
Traceback (most recent call last): File "/Users/tristan/dev/venv/bin/dbt", line 6, in <module> exec(compile(open(__file__).read(), __file__, 'exec')) File "/Users/tristan/dev/dbt/scripts/dbt", line 8, in <module> dbt.main.main(sys.argv[1:]) File "/Users/tristan/dev/dbt/dbt/main.py", line 41, in main handle(args) File "...
TypeError
def dosetup(name, version, packages, datafiles, scripts, ext_modules=[]): description, long_description = __doc__.split("\n", 1) kwargs = {} if py2exe: kwargs["distclass"] = TranslateDistribution setup( name=name, version=version, license="GNU General Public License (GPL...
def dosetup(name, version, packages, datafiles, scripts, ext_modules=[]): from setuptools import setup description, long_description = __doc__.split("\n", 1) kwargs = {} if py2exe: kwargs["distclass"] = TranslateDistribution setup( name=name, version=version, licens...
https://github.com/translate/translate/issues/3958
Traceback (most recent call last): File "setup.py", line 526, in <module> standardsetup("translate-toolkit", translateversion) File "setup.py", line 486, in standardsetup translatebashscripts) File "setup.py", line 490, in dosetup from setuptools import setup File "C:\Python27\lib\site-packages\setuptools\__init__.py",...
AssertionError
def finalizetempoutputfile(self, options, outputfile, fulloutputpath): """Write the temp outputfile to its final destination.""" outputfile.seek(0, 0) outputstring = outputfile.read() outputfile = self.openoutputfile(options, fulloutputpath) outputfile.write(outputstring) outputfile.close()
def finalizetempoutputfile(self, options, outputfile, fulloutputpath): """Write the temp outputfile to its final destination.""" outputfile.reset() outputstring = outputfile.read() outputfile = self.openoutputfile(options, fulloutputpath) outputfile.write(outputstring) outputfile.close()
https://github.com/translate/translate/issues/3419
$ pot2po --errorlevel=traceback -t af templates af pot2po: WARNING: writing to temporary output... 9% pot2po: WARNING: Error processing: input templates/browser/chrome/overrides/appstrings.properties.pot, output af/browser/chrome/overrides/appstrings.properties.po, template af/browser/chrome/overrides/appstrings.proper...
AttributeError
def __init__(self, coordinates=None): """ Parameters ---------- coordinates : sequence A sequence of (x, y [,z]) numeric coordinate pairs or triples. Also can be a sequence of Point objects. Rings are implicitly closed. There is no need to specific a final coordinate pair identi...
def __init__(self, coordinates=None): """ Parameters ---------- coordinates : sequence A sequence of (x, y [,z]) numeric coordinate pairs or triples Rings are implicitly closed. There is no need to specific a final coordinate pair identical to the first. Example ------- Con...
https://github.com/Toblerity/Shapely/issues/706
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) ~\Miniconda3\lib\site-packages\shapely\speedups\_speedups.pyx in shapely.speedups._speedups.geos_linearring_from_py() AttributeError: 'list' object has no attribute '_...
AttributeError
def __init__(self, shell=None, holes=None): """ Parameters ---------- shell : sequence A sequence of (x, y [,z]) numeric coordinate pairs or triples. Also can be a sequence of Point objects. holes : sequence A sequence of objects which satisfy the same requirements as the ...
def __init__(self, shell=None, holes=None): """ Parameters ---------- shell : sequence A sequence of (x, y [,z]) numeric coordinate pairs or triples holes : sequence A sequence of objects which satisfy the same requirements as the shell parameters above Example -----...
https://github.com/Toblerity/Shapely/issues/706
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) ~\Miniconda3\lib\site-packages\shapely\speedups\_speedups.pyx in shapely.speedups._speedups.geos_linearring_from_py() AttributeError: 'list' object has no attribute '_...
AttributeError
def geos_linearring_from_py(ob, update_geom=None, update_ndim=0): # If a LinearRing is passed in, clone it and return # If a LineString is passed in, clone the coord seq and return a # LinearRing. # # NB: access to coordinates using the array protocol has been moved # entirely to the speedups mo...
def geos_linearring_from_py(ob, update_geom=None, update_ndim=0): # If a LinearRing is passed in, clone it and return # If a LineString is passed in, clone the coord seq and return a # LinearRing. # # NB: access to coordinates using the array protocol has been moved # entirely to the speedups mo...
https://github.com/Toblerity/Shapely/issues/706
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) ~\Miniconda3\lib\site-packages\shapely\speedups\_speedups.pyx in shapely.speedups._speedups.geos_linearring_from_py() AttributeError: 'list' object has no attribute '_...
AttributeError
def bounds(self): """Returns minimum bounding region (minx, miny, maxx, maxy)""" try: xy = self.coords[0] except IndexError: return () return (xy[0], xy[1], xy[0], xy[1])
def bounds(self): xy = self.coords[0] return (xy[0], xy[1], xy[0], xy[1])
https://github.com/Toblerity/Shapely/issues/716
In [51]: Point().bounds --------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-51-6ed8561bf72c> in <module> ----> 1 Point().bounds ~/miniconda3/envs/dev37/lib/python3.7/site-packages/shapely/geometry/point.p...
IndexError
def _split_line_with_point(line, splitter): """Split a LineString with a Point""" assert isinstance(line, LineString) assert isinstance(splitter, Point) # check if point is in the interior of the line if not line.relate_pattern(splitter, "0********"): # point not on line interior --> retur...
def _split_line_with_point(line, splitter): """Split a LineString with a Point""" assert isinstance(line, LineString) assert isinstance(splitter, Point) # check if point is in the interior of the line if not line.relate_pattern(splitter, "0********"): # point not on line interior --> retur...
https://github.com/Toblerity/Shapely/issues/585
Traceback (most recent call last): File "t_test.py", line 8, in <module> split(line, multi_point) File "/home/lihongyuan02/.pyenv/versions/3.6.5/lib/python3.6/site-packages/shapely/ops.py", line 474, in split return GeometryCollection(split_func(geom, splitter)) File "/home/lihongyuan02/.pyenv/versions/3.6.5/lib/python...
TypeError
def _geom(self): """Keeps the GEOS geometry in synch with the context.""" gtag = self.gtag() if gtag != self._gtag or self._is_empty: self.empty() if len(self.context) > 0: self.__geom__, n = self.factory(self.context) self._gtag = gtag return self.__geom__
def _geom(self): """Keeps the GEOS geometry in synch with the context.""" gtag = self.gtag() if gtag != self._gtag or self._is_empty: self.empty() self.__geom__, n = self.factory(self.context) self._gtag = gtag return self.__geom__
https://github.com/Toblerity/Shapely/issues/542
Python 3.6.2 (default, Aug 7 2017, 17:26:39) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux Type "help", "copyright", "credits" or "license" for more information. import shapely shapely.__version__ '1.6.2.post1' from shapely import geometry empty_mp = geometry.MultiPolygon() empty_mp.is_empty True empty_json = geome...
AssertionError
def __geo_interface__(self): if not self.exterior: coords = [] else: coords = [tuple(self.exterior.coords)] for hole in self.interiors: coords.append(tuple(hole.coords)) return {"type": "Polygon", "coordinates": tuple(coords)}
def __geo_interface__(self): coords = [tuple(self.exterior.coords)] for hole in self.interiors: coords.append(tuple(hole.coords)) return {"type": "Polygon", "coordinates": tuple(coords)}
https://github.com/Toblerity/Shapely/issues/450
import shapely from shapely import wkt shapely.__version__ '1.5.17' pg = wkt.loads('POLYGON EMPTY') pg.wkt 'POLYGON EMPTY' pg.__geo_interface__ Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Python27\ArcGIS10.5\lib\site-packages\shapely\geometry\polygon.py", line 300, i...
AttributeError
def array_interface(self): """Provide the Numpy array protocol.""" if self.is_empty: ai = {"version": 3, "typestr": "<f8", "shape": (0,), "data": (c_double * 0)()} else: ai = self.coords.array_interface() return ai
def array_interface(self): """Provide the Numpy array protocol.""" return self.coords.array_interface()
https://github.com/Toblerity/Shapely/issues/403
Point().__array_interface__ Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/snorf/Desktop/Shapely/shapely/geometry/point.py", line 112, in array_interface ai = self.array_interface_base File "/Users/snorf/Desktop/Shapely/shapely/geometry/base.py", line 299, in array_interface_base 'd...
TypeError
def array_interface(self): """Provide the Numpy array protocol.""" if self.is_empty: ai = {"version": 3, "typestr": "<f8", "shape": (0,), "data": (c_double * 0)()} else: ai = self.array_interface_base ai.update({"shape": (self._ndim,)}) return ai
def array_interface(self): """Provide the Numpy array protocol.""" ai = self.array_interface_base ai.update({"shape": (self._ndim,)}) return ai
https://github.com/Toblerity/Shapely/issues/403
Point().__array_interface__ Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/snorf/Desktop/Shapely/shapely/geometry/point.py", line 112, in array_interface ai = self.array_interface_base File "/Users/snorf/Desktop/Shapely/shapely/geometry/base.py", line 299, in array_interface_base 'd...
TypeError
def __init__(self, dll): super(LGEOS300, self).__init__(dll) self.geos_handle = self._lgeos.initGEOS(notice_h, error_h) keys = list(self._lgeos.__dict__.keys()) for key in keys: setattr(self, key, getattr(self._lgeos, key)) self.GEOSFree = self._lgeos.free # Deprecated self.GEOSGeomT...
def __init__(self, dll): super(LGEOS300, self).__init__(dll) self.geos_handle = self._lgeos.initGEOS(notice_h, error_h) keys = list(self._lgeos.__dict__.keys()) for key in keys: setattr(self, key, getattr(self._lgeos, key)) self.GEOSFree = self._lgeos.free # Deprecated self.GEOSGeomT...
https://github.com/Toblerity/Shapely/issues/176
$ python -c "import shapely.geos" Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/openerp/europortetest/railfleetng/ve/local/lib/python2.7/site-packages/shapely/geos.py", line 133, in <module> prototype(_lgeos, geos_version) File "/home/openerp/europortetest/railfleetng/ve/local/lib/...
AttributeError
def __init__(self, dll): super(LGEOS310, self).__init__(dll) self.geos_handle = self._lgeos.initGEOS_r(notice_h, error_h) keys = list(self._lgeos.__dict__.keys()) for key in [x for x in keys if not x.endswith("_r")]: if key + "_r" in keys: reentr_func = getattr(self._lgeos, key + "_r...
def __init__(self, dll): super(LGEOS310, self).__init__(dll) self.geos_handle = self._lgeos.initGEOS_r(notice_h, error_h) keys = list(self._lgeos.__dict__.keys()) for key in [x for x in keys if not x.endswith("_r")]: if key + "_r" in keys: reentr_func = getattr(self._lgeos, key + "_r...
https://github.com/Toblerity/Shapely/issues/176
$ python -c "import shapely.geos" Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/openerp/europortetest/railfleetng/ve/local/lib/python2.7/site-packages/shapely/geos.py", line 133, in <module> prototype(_lgeos, geos_version) File "/home/openerp/europortetest/railfleetng/ve/local/lib/...
AttributeError
def __init__(self, dll): super(LGEOS330, self).__init__(dll) # GEOS 3.3.8 from homebrew has, but doesn't advertise # GEOSPolygonize_full. We patch it in explicitly here. key = "GEOSPolygonize_full" func = getattr(self._lgeos, key + "_r") attr = ftools.partial(func, self.geos_handle) attr.__...
def __init__(self, dll): super(LGEOS330, self).__init__(dll) # GEOS 3.3.8 from homebrew has, but doesn't advertise # GEOSPolygonize_full. We patch it in explicitly here. key = "GEOSPolygonize_full" func = getattr(self._lgeos, key + "_r") attr = ftools.partial(func, self.geos_handle) attr.__...
https://github.com/Toblerity/Shapely/issues/176
$ python -c "import shapely.geos" Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/openerp/europortetest/railfleetng/ve/local/lib/python2.7/site-packages/shapely/geos.py", line 133, in <module> prototype(_lgeos, geos_version) File "/home/openerp/europortetest/railfleetng/ve/local/lib/...
AttributeError
def cleanup(): del lgeos
def cleanup(): lgeos.__del__()
https://github.com/Toblerity/Shapely/issues/106
Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/opt/python-2.7.6/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/home/kwilcox/.virtualenvs/larvamap/lib/python2.7/site-packages/shapely/geos.py", line 729, in cleanup lgeos.__del__() AttributeError: 'NoneType' ob...
AttributeError
def __del__(self): """Cleanup GEOS related processes""" if self._lgeos is not None: self._lgeos.finishGEOS() self._lgeos = None self.geos_handle = None LOG.debug("GEOS Finished")
def __del__(self): """Cleanup GEOS related processes""" if self._lgeos is not None: self._lgeos.finishGEOS() self._lgeos = None self.geos_handle = None
https://github.com/Toblerity/Shapely/issues/106
Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/opt/python-2.7.6/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/home/kwilcox/.virtualenvs/larvamap/lib/python2.7/site-packages/shapely/geos.py", line 729, in cleanup lgeos.__del__() AttributeError: 'NoneType' ob...
AttributeError
def cleanup(proxy): del proxy
def cleanup(): del lgeos
https://github.com/Toblerity/Shapely/issues/106
Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/opt/python-2.7.6/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/home/kwilcox/.virtualenvs/larvamap/lib/python2.7/site-packages/shapely/geos.py", line 729, in cleanup lgeos.__del__() AttributeError: 'NoneType' ob...
AttributeError
def _exploit_host(self): LOG.info("Attempting to trigger the Backdoor..") ftp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if self.socket_connect(ftp_socket, self.host.ip_addr, FTP_PORT): ftp_socket.recv(RECV_128).decode("utf-8") if self.socket_send_recv(ftp_socket, USERNAME + b"...
def _exploit_host(self): LOG.info("Attempting to trigger the Backdoor..") ftp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if self.socket_connect(ftp_socket, self.host.ip_addr, FTP_PORT): ftp_socket.recv(RECV_128).decode("utf-8") if self.socket_send_recv(ftp_socket, USERNAME + b"...
https://github.com/guardicore/monkey/issues/616
2020-04-13 14:20:02,287 [7236:1716:INFO] vsftpd._exploit_host.102: src for suitable monkey executable for host VictimHost('192.168.56.101') is monkeyfs://monkey-linux-32 2020-04-13 14:20:07,142 [7236:1716:INFO] vsftpd._exploit_host.111: Download link for monkey is http://192.168.56.1:4059/monkey-linux-32 2020-04-13 14:...
TypeError
def do_CONNECT(self): LOG.info("Received a connect request!") # just provide a tunnel, transfer the data with no modification req = self req.path = "https://%s/" % req.path.replace(":443", "") u = urlsplit(req.path) address = (u.hostname, u.port or 443) try: conn = socket.create_con...
def do_CONNECT(self): # just provide a tunnel, transfer the data with no modification req = self req.path = "https://%s/" % req.path.replace(":443", "") u = urlsplit(req.path) address = (u.hostname, u.port or 443) try: conn = socket.create_connection(address) except socket.error as ...
https://github.com/guardicore/monkey/issues/528
2020-01-17 10:14:45,982 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1504 ('1.1.1.2', 4469): [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1076) 2020-01-17 10:14:46,055 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1500 ('1.1.1.2', 4470): [SSL: VERSION_TOO_LOW] version too lo...
OSError
def do_POST(self): try: content_length = int(self.headers["Content-Length"]) post_data = self.rfile.read(content_length).decode() LOG.info("Received bootloader's request: {}".format(post_data)) try: dest_path = self.path r = requests.post( url=...
def do_POST(self): self.send_error(501, "Unsupported method (POST)") return
https://github.com/guardicore/monkey/issues/528
2020-01-17 10:14:45,982 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1504 ('1.1.1.2', 4469): [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1076) 2020-01-17 10:14:46,055 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1500 ('1.1.1.2', 4470): [SSL: VERSION_TOO_LOW] version too lo...
OSError
def init_api_resources(api): api.add_resource(Root, "/api") api.add_resource(Monkey, "/api/monkey", "/api/monkey/", "/api/monkey/<string:guid>") api.add_resource(Bootloader, "/api/bootloader/<string:os>") api.add_resource(LocalRun, "/api/local-monkey", "/api/local-monkey/") api.add_resource(ClientRu...
def init_api_resources(api): api.add_resource(Root, "/api") api.add_resource(Monkey, "/api/monkey", "/api/monkey/", "/api/monkey/<string:guid>") api.add_resource(LocalRun, "/api/local-monkey", "/api/local-monkey/") api.add_resource(ClientRun, "/api/client-monkey", "/api/client-monkey/") api.add_reso...
https://github.com/guardicore/monkey/issues/528
2020-01-17 10:14:45,982 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1504 ('1.1.1.2', 4469): [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1076) 2020-01-17 10:14:46,055 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1500 ('1.1.1.2', 4470): [SSL: VERSION_TOO_LOW] version too lo...
OSError
def main(): logger.info("Starting bootloader server") mongo_url = os.environ.get("MONGO_URL", env.get_mongo_url()) bootloader_server_thread = Thread( target=BootloaderHttpServer(mongo_url).serve_forever, daemon=True ) bootloader_server_thread.start() start_island_server() bootloader...
def main(): from tornado.wsgi import WSGIContainer from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop mongo_url = os.environ.get("MONGO_URL", env.get_mongo_url()) wait_for_mongo_db_server(mongo_url) assert_mongo_db_version(mongo_url) populate_exporter_list() ap...
https://github.com/guardicore/monkey/issues/528
2020-01-17 10:14:45,982 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1504 ('1.1.1.2', 4469): [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1076) 2020-01-17 10:14:46,055 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1500 ('1.1.1.2', 4470): [SSL: VERSION_TOO_LOW] version too lo...
OSError
def get_edge_label(edge): node_service = monkey_island.cc.services.node.NodeService from_id = edge["from"] to_id = edge["to"] try: from_label = Monkey.get_label_by_id(from_id) except MonkeyNotFoundError: from_label = node_service.get_node_by_id(from_id)["domain_name"] if to_id ...
def get_edge_label(edge): node_service = monkey_island.cc.services.node.NodeService from_id = edge["from"] to_id = edge["to"] from_label = Monkey.get_label_by_id(from_id) if to_id == ObjectId("000000000000000000000000"): to_label = "MonkeyIsland" else: if Monkey.is_monkey(to_id...
https://github.com/guardicore/monkey/issues/528
2020-01-17 10:14:45,982 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1504 ('1.1.1.2', 4469): [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1076) 2020-01-17 10:14:46,055 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1500 ('1.1.1.2', 4470): [SSL: VERSION_TOO_LOW] version too lo...
OSError
def get_monkey_group(monkey): keywords = [] if len(set(monkey["ip_addresses"]).intersection(local_ip_addresses())) != 0: keywords.extend(["island", "monkey"]) else: monkey_type = ( "manual" if NodeService.get_monkey_manual_run(monkey) else "monkey" ) keywords.appe...
def get_monkey_group(monkey): if len(set(monkey["ip_addresses"]).intersection(local_ip_addresses())) != 0: monkey_type = "island_monkey" else: monkey_type = ( "manual" if NodeService.get_monkey_manual_run(monkey) else "monkey" ) monkey_os = NodeService.get_monkey_os(monk...
https://github.com/guardicore/monkey/issues/528
2020-01-17 10:14:45,982 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1504 ('1.1.1.2', 4469): [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1076) 2020-01-17 10:14:46,055 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1500 ('1.1.1.2', 4470): [SSL: VERSION_TOO_LOW] version too lo...
OSError
def get_node_group(node) -> str: if "group" in node and node["group"]: return node["group"] node_type = "exploited" if node.get("exploited") else "clean" node_os = NodeService.get_node_os(node) return NodeStates.get_by_keywords([node_type, node_os]).value
def get_node_group(node): node_type = "exploited" if node.get("exploited") else "clean" node_os = NodeService.get_node_os(node) return "%s_%s" % (node_type, node_os)
https://github.com/guardicore/monkey/issues/528
2020-01-17 10:14:45,982 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1504 ('1.1.1.2', 4469): [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1076) 2020-01-17 10:14:46,055 - iostream.py:1518 - _do_ssl_handshake() - WARNING - SSL Error on 1500 ('1.1.1.2', 4470): [SSL: VERSION_TOO_LOW] version too lo...
OSError
def process_system_info_telemetry(telemetry_json): telemetry_processing_stages = [ process_ssh_info, process_credential_info, process_mimikatz_and_wmi_info, process_aws_data, update_db_with_new_hostname, test_antivirus_existence, ] # Calling safe_process_tele...
def process_system_info_telemetry(telemetry_json): process_ssh_info(telemetry_json) process_credential_info(telemetry_json) process_mimikatz_and_wmi_info(telemetry_json) process_aws_data(telemetry_json) update_db_with_new_hostname(telemetry_json) test_antivirus_existence(telemetry_json)
https://github.com/guardicore/monkey/issues/460
2019-10-11 19:36:09,431 - processing.py:29 - process_telemetry() - ERROR - Exception caught while processing telemetry. Info: _id Traceback (most recent call last): File "C:\Users\shay.nehmad\PycharmProjects\monkey\monkey\monkey_island\cc\services\telemetry\processing\processing.py", line 25, in process_telemetry TELEM...
KeyError
def update_db_with_new_hostname(telemetry_json): Monkey.get_single_monkey_by_guid(telemetry_json["monkey_guid"]).set_hostname( telemetry_json["data"]["hostname"] )
def update_db_with_new_hostname(telemetry_json): Monkey.get_single_monkey_by_id(telemetry_json["_id"]).set_hostname( telemetry_json["data"]["hostname"] )
https://github.com/guardicore/monkey/issues/460
2019-10-11 19:36:09,431 - processing.py:29 - process_telemetry() - ERROR - Exception caught while processing telemetry. Info: _id Traceback (most recent call last): File "C:\Users\shay.nehmad\PycharmProjects\monkey\monkey\monkey_island\cc\services\telemetry\processing\processing.py", line 25, in process_telemetry TELEM...
KeyError
def exploit_host(self): # Brute force to get connection username_passwords_pairs_list = self._config.get_exploit_user_password_pairs() cursor = self.brute_force( self.host.ip_addr, self.SQL_DEFAULT_TCP_PORT, username_passwords_pairs_list ) if not cursor: LOG.error("Bruteforce proces...
def exploit_host(self): # Brute force to get connection username_passwords_pairs_list = self._config.get_exploit_user_password_pairs() cursor = self.brute_force( self.host.ip_addr, self.SQL_DEFAULT_TCP_PORT, username_passwords_pairs_list ) if not cursor: LOG.error("Bruteforce proces...
https://github.com/guardicore/monkey/issues/348
2019-06-12 10:19:04,545 [24008:17700:ERROR] main.main.130: Exception thrown from monkey's start function Traceback (most recent call last): File "monkey\infection_monkey\main.py", line 121, in main File "monkey\infection_monkey\monkey.py", line 83, in start File "monkey\infection_monkey\utils.py", line 46, in create_mo...
WindowsError
def is_64bit_windows_os(): """ Checks for 64 bit Windows OS using environment variables. """ return "PROGRAMFILES(X86)" in os.environ
def is_64bit_windows_os(): """ Checks for 64 bit Windows OS using environment variables. :return: """ return "PROGRAMFILES(X86)" in os.environ
https://github.com/guardicore/monkey/issues/348
2019-06-12 10:19:04,545 [24008:17700:ERROR] main.main.130: Exception thrown from monkey's start function Traceback (most recent call last): File "monkey\infection_monkey\main.py", line 121, in main File "monkey\infection_monkey\monkey.py", line 83, in start File "monkey\infection_monkey\utils.py", line 46, in create_mo...
WindowsError
def get_monkey_dir_path(): return os.path.join(tempfile.gettempdir(), WormConfiguration.monkey_dir_name)
def get_monkey_dir_path(): if is_windows_os(): return WormConfiguration.monkey_dir_windows else: return WormConfiguration.monkey_dir_linux
https://github.com/guardicore/monkey/issues/348
2019-06-12 10:19:04,545 [24008:17700:ERROR] main.main.130: Exception thrown from monkey's start function Traceback (most recent call last): File "monkey\infection_monkey\main.py", line 121, in main File "monkey\infection_monkey\monkey.py", line 83, in start File "monkey\infection_monkey\utils.py", line 46, in create_mo...
WindowsError
def get_redirected(url): # Returns false if url is not right headers = {"User-Agent": "Mozilla/5.0"} request = urllib2.Request(url, headers=headers) try: return urllib2.urlopen( request, context=ssl._create_unverified_context() ).geturl() except urllib2.URLError: ...
def get_redirected(url): # Returns false if url is not right headers = {"User-Agent": "Mozilla/5.0"} request = urllib2.Request(url, headers=headers) try: return urllib2.urlopen(request).geturl() except urllib2.URLError: LOG.error("Can't reach struts2 server") return False
https://github.com/guardicore/monkey/issues/306
2019-04-17 15:52:15,293 [23152:22664:ERROR] monkey.start.190: Exception while attacking Victim Host 216.58.207.78: OS - [type-linux ] Services - [tcp-443-{'data': ('gws', True), 'name': 'http'} tcp-80-{'data': ('gws', False), 'name': 'http'} ] target monkey: None using Struts2Exploiter: hostname '216.58.207.78' doesn't...
CertificateError
def _show_text_with_options(self, cc, pl, text, text_x, text_y): cc.move_to(text_x, text_y) pl.set_text(text, -1) PangoCairo.update_layout(cc, pl) PangoCairo.show_layout(cc, pl)
def _show_text_with_options(self, cc, pl, text, text_x, text_y): cc.move_to(text_x, text_y) pl.set_text(text) PangoCairo.update_layout(cc, pl) PangoCairo.show_layout(cc, pl)
https://github.com/maoschanz/drawing/issues/275
Traceback (most recent call last): File "/usr/share/drawing/drawing/tool_text.py", line 184, in _preview_text self.do_tool_operation(operation) File "/usr/share/drawing/drawing/tool_text.py", line 251, in do_tool_operation entire_text, text_x + dx, text_y + dy) File "/usr/share/drawing/drawing/tool_text.py", line 264, ...
TypeError
def _set_active_type(self, *args): state_as_string = self.get_option_value("filters_type") self._reset_type_values() if state_as_string == "blur_fast": self.blur_algo = BlurType.CAIRO_REPAINTS self.type_label = _("Fast blur") elif state_as_string == "blur_slow": self.blur_algo = ...
def _set_active_type(self, *args): state_as_string = self.get_option_value("filters_type") self._reset_type_values() if state_as_string == "blur_fast": self.blur_algo = BlurType.CAIRO_REPAINTS self.type_label = _("Fast blur") elif state_as_string == "blur_slow": self.blur_algo = ...
https://github.com/maoschanz/drawing/issues/275
Traceback (most recent call last): File "/usr/share/drawing/drawing/tool_text.py", line 184, in _preview_text self.do_tool_operation(operation) File "/usr/share/drawing/drawing/tool_text.py", line 251, in do_tool_operation entire_text, text_x + dx, text_y + dy) File "/usr/share/drawing/drawing/tool_text.py", line 264, ...
TypeError
def __init__(self, window, **kwargs): super().__init__("select", _("Selection"), "tool-select-symbolic", window) self.use_color = False self.accept_selection = True self.selected_type_id = "rectangle" self.selected_type_label = _("Rectangle selection") self.closing_x = 0 self.closing_y = 0 ...
def __init__(self, window, **kwargs): super().__init__("select", _("Selection"), "tool-select-symbolic", window) self.use_color = False self.accept_selection = True self.selected_type_id = "rectangle" self.selected_type_label = _("Rectangle selection") self.closing_x = 0 self.closing_y = 0 ...
https://github.com/maoschanz/drawing/issues/70
Traceback (most recent call last): File "/usr/bin/drawing", line 42, in <module> from drawing import main File "/usr/share/drawing/drawing/main.py", line 23, in <module> from .window import DrawingWindow File "/usr/share/drawing/drawing/window.py", line 40, in <module> from .image import DrawingImage File "/usr/share/d...
AttributeError
def set_tools_labels_visibility(self, visible): """Change the way tools are displayed in the side panel. Visible labels mean the tools will be arranged in a scrollable list of buttons, else they will be in an adaptative flowbox.""" for tool_id in self.tools: self.tools[tool_id].label_widget.set_...
def set_tools_labels_visibility(self, visible): """Change the way tools are displayed in the side panel. Visible labels mean the tools will be arranged in a scrollable list of buttons, else they will be in an adaptative flowbox.""" for tool_id in self.tools: self.tools[tool_id].label_widget.set_...
https://github.com/maoschanz/drawing/issues/70
Traceback (most recent call last): File "/usr/bin/drawing", line 42, in <module> from drawing import main File "/usr/share/drawing/drawing/main.py", line 23, in <module> from .window import DrawingWindow File "/usr/share/drawing/drawing/window.py", line 40, in <module> from .image import DrawingImage File "/usr/share/d...
AttributeError
def set_compact(self, state): # TODO state as an int if state: self.main_menu_btn.set_menu_model(self.long_main_menu) else: self.main_menu_btn.set_menu_model(self.short_main_menu) self.save_label.set_visible(not state) self.save_icon.set_visible(state) self.hidable_widget.set_visibl...
def set_compact(self, state): if state: self.main_menu_btn.set_menu_model(self.long_main_menu) else: self.main_menu_btn.set_menu_model(self.short_main_menu) self.save_label.set_visible(not state) self.save_icon.set_visible(state) self.hidable_widget.set_visible(not state) self.ne...
https://github.com/maoschanz/drawing/issues/70
Traceback (most recent call last): File "/usr/bin/drawing", line 42, in <module> from drawing import main File "/usr/share/drawing/drawing/main.py", line 23, in <module> from .window import DrawingWindow File "/usr/share/drawing/drawing/window.py", line 40, in <module> from .image import DrawingImage File "/usr/share/d...
AttributeError
def _exec_middleman(command, env, exit_event, stdout, stderr, rw): stdout_r, stdout_w = stdout stderr_r, stderr_w = stderr r, w = rw # Close unused file descriptors to enforce PIPE behavior. stdout_r.close() stderr_r.close() w.close() os.setsid() executor_shell = subprocess.Popen( ...
def _exec_middleman(command, env, exit_event, stdout, stderr, rw): stdout_r, stdout_w = stdout stderr_r, stderr_w = stderr r, w = rw # Close unused file descriptors to enforce PIPE behavior. stdout_r.close() stderr_r.close() w.close() os.setsid() executor_shell = subprocess.Popen( ...
https://github.com/horovod/horovod/issues/2367
Tue Oct 13 10:54:25 2020[0]<stderr>:[10/13/2020 10:54:25 - INFO - __main__ - start running validation... Tue Oct 13 10:54:25 2020[0]<stderr>: 0%| | 0/1327 [00:00<?, ?it/s] Tue Oct 13 10:55:56 2020[0]<stderr>: Exception in thread Thread-17:derr>: 65%|██████▌ | 866/1327 [01:17<00:47, 9.80it/s] Traceback (m...
UnicodeDecodeError
def execute( command, env=None, stdout=None, stderr=None, index=None, events=None, prefix_output_with_timestamp=False, ): """ Execute the given command and forward stdout and stderr of the command to the given stdout and stderr text streams, or sys.stdout and sys.stderr, respecti...
def execute( command, env=None, stdout=None, stderr=None, index=None, events=None, prefix_output_with_timestamp=False, ): ctx = multiprocessing.get_context("spawn") # When this event is set, signal to middleman to terminate its children and exit. exit_event = _create_event(ctx) ...
https://github.com/horovod/horovod/issues/2367
Tue Oct 13 10:54:25 2020[0]<stderr>:[10/13/2020 10:54:25 - INFO - __main__ - start running validation... Tue Oct 13 10:54:25 2020[0]<stderr>: 0%| | 0/1327 [00:00<?, ?it/s] Tue Oct 13 10:55:56 2020[0]<stderr>: Exception in thread Thread-17:derr>: 65%|██████▌ | 866/1327 [01:17<00:47, 9.80it/s] Traceback (m...
UnicodeDecodeError
def write(text): if index is not None and prefix is not None: context = get_context(index, prefix) dst_stream.write(context) dst_stream.write(text) dst_stream.flush()
def write(text): if index is not None: text = prepend_context(text, index, prefix) dst_stream.write(text) dst_stream.flush()
https://github.com/horovod/horovod/issues/2367
Tue Oct 13 10:54:25 2020[0]<stderr>:[10/13/2020 10:54:25 - INFO - __main__ - start running validation... Tue Oct 13 10:54:25 2020[0]<stderr>: 0%| | 0/1327 [00:00<?, ?it/s] Tue Oct 13 10:55:56 2020[0]<stderr>: Exception in thread Thread-17:derr>: 65%|██████▌ | 866/1327 [01:17<00:47, 9.80it/s] Traceback (m...
UnicodeDecodeError
def allgather(tensor, name=None, priority=0): """ A function that concatenates the input tensor with the same input tensor on all other Horovod processes. The input tensor is not modified. The concatenation is done on the first dimension, so the input tensors on the different processes must have th...
def allgather(tensor, name=None, priority=0): """ A function that concatenates the input tensor with the same input tensor on all other Horovod processes. The input tensor is not modified. The concatenation is done on the first dimension, so the input tensors on the different processes must have th...
https://github.com/horovod/horovod/issues/1669
(before) a.shape = (10, 100, 100) (before) a[0]= [[0.6686509 0.17409194 0.3850025 ... 0.43011498 0.0661214 0.2502998 ] [0.7005292 0.19000232 0.6673837 ... 0.27718288 0.16084558 0.223108 ] [0.96042585 0.81086403 0.54152083 ... 0.5650488 0.5196334 0.6767488 ] ... [0.96879214 0.9387428 0.04036242 ... 0.13176239 0...
mxnet.base.MXNetError
def mpi_run(settings, nics, env, command, stdout=None, stderr=None): """ Runs mpi_run. Args: settings: Settings for running MPI. Note: settings.num_proc and settings.hosts must not be None. nics: Interfaces to include by MPI. env: Environment dictionary to use for ...
def mpi_run(settings, nics, env, command, stdout=None, stderr=None): """ Runs mpi_run. Args: settings: Settings for running MPI. Note: settings.num_proc and settings.hosts must not be None. nics: Interfaces to include by MPI. env: Environment dictionary to use for ...
https://github.com/horovod/horovod/issues/2033
File "/usr/lib/python3.7/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.7/runpy.py", line 109, in _get_module_details __import__(pkg_name) File "/home/weichen.xu/.local/lib/python3.7/site-packages/horovod/spark/__init__.py", line 18, i...
ModuleNotFoundError
def mpi_run(settings, nics, env, command, stdout=None, stderr=None): """ Runs mpi_run. Args: settings: Settings for running MPI. Note: settings.num_proc and settings.hosts must not be None. nics: Interfaces to include by MPI. env: Environment dictionary to use for ...
def mpi_run(settings, nics, env, command, stdout=None, stderr=None): """ Runs mpi_run. Args: settings: Settings for running MPI. Note: settings.num_proc and settings.hosts must not be None. nics: Interfaces to include by MPI. env: Environment dictionary to use for ...
https://github.com/horovod/horovod/issues/2037
Traceback (most recent call last): File "horovod/run/common/util/tiny_shell_exec.py", line 32, in execute exit_code = safe_shell_exec.execute(command, env=env, stdout=output, stderr=output) File "horovod/run/common/util/safe_shell_exec.py", line 183, in execute middleman.start() File "multiprocessing/process.py", line ...
AttributeError
def rsh( driver_addresses, key, host_hash, command, env, local_rank, verbose, background=True, events=None, ): """ Method to run a command remotely given a host hash, local rank and driver addresses. This method connects to the SparkDriverService running on the Spark dri...
def rsh( driver_addresses, key, settings, host_hash, command, env, local_rank, background=True, events=None, ): """ Method to run a command remotely given a host hash, local rank and driver addresses. This method connects to the SparkDriverService running on the Spark dr...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def _exec_command_fn(driver_addresses, key, settings, env): def _exec_command(command, slot_info, events): host = slot_info.hostname local_rank = slot_info.local_rank verbose = settings.verbose result = rsh( driver_addresses, key, host, ...
def _exec_command_fn(driver_addresses, key, settings, env): def _exec_command(command, slot_info, events): host = slot_info.hostname local_rank = slot_info.local_rank result = rsh( driver_addresses, key, settings, host, command, ...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def _exec_command(command, slot_info, events): host = slot_info.hostname local_rank = slot_info.local_rank verbose = settings.verbose result = rsh( driver_addresses, key, host, command, env, local_rank, verbose, False, events ) return result, time.time()
def _exec_command(command, slot_info, events): host = slot_info.hostname local_rank = slot_info.local_rank result = rsh( driver_addresses, key, settings, host, command, env, local_rank, False, events ) return result, time.time()
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def gloo_run(settings, nics, driver, env): """ Run distributed gloo jobs. :param settings: Settings for running the distributed jobs. Note: settings.num_proc and settings.hosts must not be None. :param nics: Interfaces to use by gloo. :param driver: The Spark driver service tha...
def gloo_run(settings, nics, driver, env): """ Run distributed gloo jobs. :param settings: Settings for running the distributed jobs. Note: settings.num_proc and settings.hosts must not be None. :param nics: Interfaces to use by gloo. :param driver: The Spark driver service tha...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def mpi_run(settings, nics, driver, env, stdout=None, stderr=None): """ Runs mpirun. :param settings: Settings for running MPI. Note: settings.num_proc and settings.hosts must not be None. :param nics: Interfaces to include by MPI. :param driver: The Spark driver service that t...
def mpi_run(settings, nics, driver, env, stdout=None, stderr=None): """ Runs mpirun. :param settings: Settings for running MPI. Note: settings.num_proc and settings.hosts must not be None. :param nics: Interfaces to include by MPI. :param driver: The Spark driver service that t...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def _launch_task_servers(all_host_names, local_host_names, driver_addresses, settings): """ Executes the task server and service client task for registration on the hosts. :param all_host_names: list of addresses. for example, ['worker-0','worker-1'] ['10.11.11.11', '10.11.11.12'] :t...
def _launch_task_servers(all_host_names, local_host_names, driver_addresses, settings): """ Executes the task server and service client task for registration on the hosts. :param all_host_names: list of addresses. for example, ['worker-0','worker-1'] ['10.11.11.11', '10.11.11.12'] :t...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def _exec_command_fn(settings): """ executes the jobs defined by run command on hosts. :param hosts_alloc: list of dict indicating the allocating info. For example, [{'Hostname':'worker-0', 'Rank': 0, 'Local_rank': 0, 'Cross_rank':0, 'Size':2, 'Local_size':1, 'Cross_size':2}, ...
def _exec_command_fn(settings): """ executes the jobs defined by run command on hosts. :param hosts_alloc: list of dict indicating the allocating info. For example, [{'Hostname':'worker-0', 'Rank': 0, 'Local_rank': 0, 'Cross_rank':0, 'Size':2, 'Local_size':1, 'Cross_size':2}, ...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def _exec_command(command, slot_info, events): index = slot_info.rank host_name = slot_info.hostname host_address = network.resolve_host_address(host_name) local_addresses = network.get_local_host_addresses() if host_address not in local_addresses: command = ( "ssh -o PasswordAu...
def _exec_command(command, slot_info, events): index = slot_info.rank host_name = slot_info.hostname host_address = network.resolve_host_address(host_name) local_addresses = network.get_local_host_addresses() if host_address not in local_addresses: command = ( "ssh -o StrictHost...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def _check_all_hosts_ssh_successful(host_addresses, ssh_port=None): """ checks if ssh can successfully be performed to all the hosts. :param host_addresses: list of addresses to ssh into. for example, ['worker-0','worker-1'] ['10.11.11.11', '10.11.11.12'] :type host_addresses: list(strin...
def _check_all_hosts_ssh_successful(host_addresses, ssh_port=None): """ checks if ssh can successfully be performed to all the hosts. :param host_addresses: list of addresses to ssh into. for example, ['worker-0','worker-1'] ['10.11.11.11', '10.11.11.12'] :type host_addresses: list(strin...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def _run_static(args): all_host_names, _ = parse_hosts_and_slots(args.hosts) nics_set = set(args.nics.split(",")) if args.nics else None # horovodrun has to finish all the checks before this timeout runs out. if args.start_timeout: start_timeout = args.start_timeout else: # Lookup ...
def _run_static(args): all_host_names, _ = parse_hosts_and_slots(args.hosts) nics_set = set(args.nics.split(",")) if args.nics else None # horovodrun has to finish all the checks before this timeout runs out. if args.start_timeout: start_timeout = args.start_timeout else: # Lookup ...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def get_num_threads(): """Returns the number of hardware threads.""" lscpu_cmd = ( "ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no " "{host} {cmd}".format( host=LSFUtils.get_compute_hosts()[0], cmd=LSFUtils._LSCPU_CMD ) ) output = io.StringIO() exit_...
def get_num_threads(): """Returns the number of hardware threads.""" lscpu_cmd = "ssh -o StrictHostKeyChecking=no {host} {cmd}".format( host=LSFUtils.get_compute_hosts()[0], cmd=LSFUtils._LSCPU_CMD ) output = io.StringIO() exit_code = safe_shell_exec.execute(lscpu_cmd, stdout=output, stderr=...
https://github.com/horovod/horovod/issues/1969
root@ip-172-31-37-52:/# horovodrun -np 2 -H localhost:1,172.31.35.37:1 -p 12345 --verbose ls Filtering local host names. Remote host found: 172.31.35.37 Checking ssh on all remote hosts. SSH was successful into all the remote hosts. Testing interfaces on all the hosts. Launched horovod server. Attempted to launch horov...
struct.error
def broadcast_optimizer_state(optimizer, root_rank): """ Broadcasts an optimizer state from root rank to all other processes. Arguments: optimizer: An optimizer. root_rank: The rank of the process from which the optimizer will be broadcasted to all other processes. ""...
def broadcast_optimizer_state(optimizer, root_rank): """ Broadcasts an optimizer state from root rank to all other processes. Arguments: optimizer: An optimizer. root_rank: The rank of the process from which the optimizer will be broadcasted to all other processes. ""...
https://github.com/horovod/horovod/issues/1725
Traceback (most recent call last): ... File ************ HVD.broadcast_optimizer_state(optimizer, root_rank=0) File "/usr/local/lib/python3.7/dist-packages/horovod/torch/__init__.py", line 572, in broadcast_optimizer_state param_state = state_dict['state'][pid] KeyError: 140137585983888
KeyError
def _get_mpi_implementation_flags(): output = six.StringIO() command = "mpirun --version" try: exit_code = safe_shell_exec.execute(command, stdout=output, stderr=output) output_msg = output.getvalue() except Exception: print(traceback.format_exc(), file=sys.stderr) return...
def _get_mpi_implementation_flags(): output = six.StringIO() command = "mpirun --version" try: exit_code = safe_shell_exec.execute(command, stdout=output, stderr=output) output_msg = output.getvalue() except Exception: print(traceback.format_exc(), file=sys.stderr) return...
https://github.com/horovod/horovod/issues/1690
horovodrun -np 1 -H localhost:1 python pytorch_mnist.py Open MPI not found in output of mpirun --version. Traceback (most recent call last): File "/opt/conda/bin/horovodrun", line 21, in <module> run.run() File "/opt/conda/lib/python3.6/site-packages/horovod/run/run.py", line 448, in run 'horovodrun convenience script ...
Exception
def broadcast_optimizer_state(optimizer, root_rank): """ Broadcasts an optimizer state from root rank to all other processes. Arguments: optimizer: An optimizer. root_rank: The rank of the process from which the optimizer will be broadcasted to all other processes. ""...
def broadcast_optimizer_state(optimizer, root_rank): """ Broadcasts an optimizer state from root rank to all other processes. Arguments: optimizer: An optimizer. root_rank: The rank of the process from which the optimizer will be broadcasted to all other processes. ""...
https://github.com/horovod/horovod/issues/1608
Traceback (most recent call last): File "/.../mwe.py", line 30, in <module> hvd.broadcast_optimizer_state(optimizer, root_rank=0) File "/.../python2.7/dist-packages/horovod-0.16.1-py2.7-linux-x86_64.egg/horovod/torch/__init__.py", line 261, in broadcast_optimizer_state super(optimizer.__class__, optimizer).step() File ...
RuntimeError
def create_distributed_optimizer( keras, optimizer, name, device_dense, device_sparse, compression, sparse_as_dense ): class _DistributedOptimizer(keras.optimizers.Optimizer): def __init__(self, **kwargs): self._name = name or "Distributed%s" % self.__class__.__base__.__name__ se...
def create_distributed_optimizer( keras, optimizer, name, device_dense, device_sparse, compression, sparse_as_dense ): class _DistributedOptimizer(keras.optimizers.Optimizer): def __init__( self, name, device_dense, device_sparse, compression, ...
https://github.com/horovod/horovod/issues/1573
[1,0]<stderr>:Traceback (most recent call last): [1,0]<stderr>: File "/home/pstjohn/miniconda3/envs/tf2/lib/python3.7/site-packages/tensorflow_core/python/keras/optimizer_v2/optimizer_v2.py", line 541, in __getattribute__ [1,0]<stderr>: return super(OptimizerV2, self).__getattribute__(name) [1,0]<stderr>:AttributeE...
AttributeError
def __init__(self, **kwargs): self._name = name or "Distributed%s" % self.__class__.__base__.__name__ self._device_dense = device_dense self._device_sparse = device_sparse self._compression = compression self._sparse_as_dense = sparse_as_dense self._get_gradients_used = False super(self.__cl...
def __init__( self, name, device_dense, device_sparse, compression, sparse_as_dense, config ): if name is None: name = "Distributed%s" % self.__class__.__base__.__name__ self._name = name self._device_dense = device_dense self._device_sparse = device_sparse self._compression = compressio...
https://github.com/horovod/horovod/issues/1573
[1,0]<stderr>:Traceback (most recent call last): [1,0]<stderr>: File "/home/pstjohn/miniconda3/envs/tf2/lib/python3.7/site-packages/tensorflow_core/python/keras/optimizer_v2/optimizer_v2.py", line 541, in __getattribute__ [1,0]<stderr>: return super(OptimizerV2, self).__getattribute__(name) [1,0]<stderr>:AttributeE...
AttributeError
def allreduce( tensor, average=None, device_dense="", device_sparse="", compression=Compression.none, op=None, ): """Perform an allreduce on a tf.Tensor or tf.IndexedSlices. This function performs a bandwidth-optimal ring allreduce on the input tensor. If the input is an tf.IndexedS...
def allreduce( tensor, average=None, device_dense="", device_sparse="", compression=Compression.none, op=None, ): """Perform an allreduce on a tf.Tensor or tf.IndexedSlices. This function performs a bandwidth-optimal ring allreduce on the input tensor. If the input is an tf.IndexedS...
https://github.com/horovod/horovod/issues/1568
d996a8f8-e1d4-4e1e-8d9e-e3c5804c0369 || Checking whether extension tensorflow was built with MPI. d996a8f8-e1d4-4e1e-8d9e-e3c5804c0369 || /opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version ...
AssertionError
def _allreduce_async(tensor, output, name, op): if tensor.dtype == torch.float16 and not _fp16_supported: raise NotImplementedError( "float16 allreduce is not supported for PyTorch version {} < 1.0.0".format( torch.__version__ ) ) # Set the divisor for re...
def _allreduce_async(tensor, output, name, op): if tensor.dtype == torch.float16 and not _fp16_supported: raise NotImplementedError( "float16 allreduce is not supported for PyTorch version {} < 1.0.0".format( torch.__version__ ) ) # Set the divisor for re...
https://github.com/horovod/horovod/issues/1568
d996a8f8-e1d4-4e1e-8d9e-e3c5804c0369 || Checking whether extension tensorflow was built with MPI. d996a8f8-e1d4-4e1e-8d9e-e3c5804c0369 || /opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version ...
AssertionError
def find_matching_gcc_compiler_path(gxx_compiler_version): for path_dir, bin_file in enumerate_binaries_in_path(): if re.match("^gcc(?:-\\d+(?:\\.\\d+)*)?$", bin_file): # gcc, or gcc-7, gcc-4.9, or gcc-4.8.5 compiler = os.path.join(path_dir, bin_file) compiler_version = d...
def find_matching_gcc_compiler_path(gxx_compiler_version): for path_dir, bin_file in enumerate_binaries_in_path(): if re.match("^gcc(?:-\\d+(?:\\.\\d+)*)?$", bin_file): # gcc, or gcc-7, gcc-4.9, or gcc-4.8.5 compiler = os.path.join(path_dir, bin_file) compiler_version = d...
https://github.com/horovod/horovod/issues/1334
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/ Collecting horovod Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8f/d9/67e496de0e04d314bb4bf3621442880486a560ab4e682f1c24ec7bf3c9b6/horovod-0.17.0.post1.tar.gz Requirement already satisfied: cloudpickle in /home/wyz/.pyenv/versions/3.7.2/envs/env-3...
ModuleNotFoundError
def run(): args = parse_args() # if hosts are not specified, either parse from hostfile, or default as # localhost if not args.hosts: if args.hostfile: args.hosts = parse_host_files(args.hostfile) else: # Set hosts to localhost if not specified args.h...
def run(): args = parse_args() # if hosts are not specified, either parse from hostfile, or default as # localhost if not args.hosts: if args.hostfile: args.hosts = parse_host_files(args.hostfile) else: # Set hosts to localhost if not specified args.h...
https://github.com/horovod/horovod/issues/1325
# horovodrun --verbose -np 1 -H 10.0.0.3:1 -p 12345 python /horovod/examples/keras_mnist.py Traceback (most recent call last): File "/usr/local/bin/horovodrun", line 21, in <module> run.run() File "/usr/local/lib/python3.6/dist-packages/horovod/run/run.py", line 396, in run raise ValueError('Invalid host input, please ...
ValueError
def train(epoch): model.train() train_sampler.set_epoch(epoch) train_loss = Metric("train_loss") train_accuracy = Metric("train_accuracy") with tqdm( total=len(train_loader), desc="Train Epoch #{}".format(epoch + 1), disable=not verbose, ) as t: for batch_idx...
def train(epoch): model.train() train_sampler.set_epoch(epoch) train_loss = Metric("train_loss") train_accuracy = Metric("train_accuracy") with tqdm( total=len(train_loader), desc="Train Epoch #{}".format(epoch + 1), disable=not verbose, ) as t: for batch_idx...
https://github.com/horovod/horovod/issues/852
Train Epoch #1: 0%| | 0/10010 [00:00<?, ?it/s]Traceback (most recent call last): File "main_hvd.py", line 272, in <module> train(epoch) File "main_hvd.py", line 179, in train train_loss.update(loss.item()) File "main_hvd.py", line 263, in update self.sum += hvd.allreduce(val.detach().cpu(), name=self.nam...
AttributeError
def broadcast_optimizer_state(optimizer, root_rank): """ Broadcasts an optimizer state from root rank to all other processes. Arguments: optimizer: An optimizer. root_rank: The rank of the process from which the optimizer will be broadcasted to all other processes. ""...
def broadcast_optimizer_state(optimizer, root_rank): """ Broadcasts an optimizer state from root rank to all other processes. Arguments: optimizer: An optimizer. root_rank: The rank of the process from which the optimizer will be broadcasted to all other processes. ""...
https://github.com/horovod/horovod/issues/605
Traceback (most recent call last): File "train.py", line 641, in <module> train_images(hps) File "train.py", line 444, in train_images train_step(batch, batch_idx, epoch, hps, model, opt, train_logger) File "train.py", line 457, in train_step opt.step() File "/opt/conda/lib/python3.6/site-packages/horovod/torch/__init_...
TypeError
def _create_option_callback(index, option_key, option_tensor, dtypes): def _from_tensor(): optimizer.param_groups[index][option_key] = _recursive_cast( option_tensor.numpy()[0], dtypes ) return _from_tensor
def _create_option_callback(index, option_key, option_tensor, dtype): def _from_tensor(): optimizer.param_groups[index][option_key] = dtype(option_tensor.numpy()[0]) return _from_tensor
https://github.com/horovod/horovod/issues/605
Traceback (most recent call last): File "train.py", line 641, in <module> train_images(hps) File "train.py", line 444, in train_images train_step(batch, batch_idx, epoch, hps, model, opt, train_logger) File "train.py", line 457, in train_step opt.step() File "/opt/conda/lib/python3.6/site-packages/horovod/torch/__init_...
TypeError
def _from_tensor(): optimizer.param_groups[index][option_key] = _recursive_cast( option_tensor.numpy()[0], dtypes )
def _from_tensor(): optimizer.param_groups[index][option_key] = dtype(option_tensor.numpy()[0])
https://github.com/horovod/horovod/issues/605
Traceback (most recent call last): File "train.py", line 641, in <module> train_images(hps) File "train.py", line 444, in train_images train_step(batch, batch_idx, epoch, hps, model, opt, train_logger) File "train.py", line 457, in train_step opt.step() File "/opt/conda/lib/python3.6/site-packages/horovod/torch/__init_...
TypeError
def find_fragments(base_directory, sections, fragment_directory, definitions): """ Sections are a dictonary of section names to paths. """ content = OrderedDict() fragment_filenames = [] for key, val in sections.items(): if fragment_directory is not None: section_dir = os.pa...
def find_fragments(base_directory, sections, fragment_directory, definitions): """ Sections are a dictonary of section names to paths. """ content = OrderedDict() fragment_filenames = [] for key, val in sections.items(): if fragment_directory is not None: section_dir = os.pa...
https://github.com/twisted/towncrier/issues/85
Loading template... Finding news fragments... Traceback (most recent call last): … File "/tmp/myvenv/lib/python2.7/site-packages/towncrier/_builder.py", line 46, in find_fragments files = os.listdir(section_dir) OSError: [Errno 2] No such file or directory: '…/PyInstaller/newsfragments'
OSError
def __main(comparewith, directory, config): base_directory, config = load_config_from_options(directory, config) # Use UTF-8 both when sys.stdout does not have .encoding (Python 2.7) and # when the attribute is present but set to None (explicitly piped output # and also some CI such as GitHub Actions)....
def __main(comparewith, directory, config): base_directory, config = load_config_from_options(directory, config) try: files_changed = ( _run( ["git", "diff", "--name-only", comparewith + "..."], cwd=base_directory ) .decode(getattr(sys.stdout, "encodi...
https://github.com/twisted/towncrier/issues/175
Traceback (most recent call last): File "/opt/hostedtoolcache/Python/2.7.17/x64/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/opt/hostedtoolcache/Python/2.7.17/x64/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/runner/work/taho...
TypeError
def start(self, workers=1, max_queue_size=10): """Start the handler's workers. # Arguments workers: number of worker threads max_queue_size: queue size (when full, workers could block on `put()`) """ if self.use_multiprocessing: self.executor_fn = lambda seqs: multip...
def start(self, workers=1, max_queue_size=10): """Start the handler's workers. # Arguments workers: number of worker threads max_queue_size: queue size (when full, workers could block on `put()`) """ if self.use_multiprocessing: self.executor_fn = lambda: multiproces...
https://github.com/keras-team/keras/issues/9434
Traceback (most recent call last): File "C:\Users\elcombato\AppData\Local\Continuum\Anaconda3\envs\ml\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "C:\Users\elcombato\AppData\Local\Continuum\Anaconda3\envs\ml\lib\site-packages\keras\utils\data_utils.py", line 392, in get_i...
KeyError
def _run(self): """Submits request to the executor and queue the `Future` objects.""" sequence = list(range(len(self.sequence))) self._send_sequence() # Share the initial sequence while True: if self.shuffle: random.shuffle(sequence) with closing(self.executor_fn(_SHARED_SE...
def _run(self): """Submits request to the executor and queue the `Future` objects.""" sequence = list(range(len(self.sequence))) self._send_sequence() # Share the initial sequence while True: if self.shuffle: random.shuffle(sequence) with closing(self.executor_fn()) as exec...
https://github.com/keras-team/keras/issues/9434
Traceback (most recent call last): File "C:\Users\elcombato\AppData\Local\Continuum\Anaconda3\envs\ml\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "C:\Users\elcombato\AppData\Local\Continuum\Anaconda3\envs\ml\lib\site-packages\keras\utils\data_utils.py", line 392, in get_i...
KeyError
def __init__( self, address=None, loop=None, timeout=no_default, set_as_default=True, scheduler_file=None, security=None, asynchronous=False, name=None, heartbeat_interval=None, serializers=None, deserializers=None, extensions=DEFAULT_EXTENSIONS, direct_to_workers...
def __init__( self, address=None, loop=None, timeout=no_default, set_as_default=True, scheduler_file=None, security=None, asynchronous=False, name=None, heartbeat_interval=None, serializers=None, deserializers=None, extensions=DEFAULT_EXTENSIONS, direct_to_workers...
https://github.com/dask/distributed/issues/3839
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-3-82a29784114b> in <module> 1 cluster = LocalCluster ----> 2 client = Client(cluster) ~/Projects/dask/distributed/distributed/client.py in __init__(self...
TypeError