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 write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ settings_path = Path(settings_path) if settings_pa...
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ if settings_path.exists() and merge: # pragma: no co...
https://github.com/rochacbruno/dynaconf/issues/129
In [1]: from dynaconf import settings In [2]: settings.POTATO Out[2]: 'test' In [3]: settings.get_fresh('POTATO') In [4]: settings.POTATO --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-22d467a777...
AttributeError
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ settings_path = Path(settings_path) if settings_pa...
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ if settings_path.exists() and merge: # pragma: no cov...
https://github.com/rochacbruno/dynaconf/issues/129
In [1]: from dynaconf import settings In [2]: settings.POTATO Out[2]: 'test' In [3]: settings.get_fresh('POTATO') In [4]: settings.POTATO --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-22d467a777...
AttributeError
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ settings_path = Path(settings_path) if settings_pa...
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ if settings_path.exists() and merge: # pragma: no cov...
https://github.com/rochacbruno/dynaconf/issues/129
In [1]: from dynaconf import settings In [2]: settings.POTATO Out[2]: 'test' In [3]: settings.get_fresh('POTATO') In [4]: settings.POTATO --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-22d467a777...
AttributeError
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ settings_path = Path(settings_path) if settings_pa...
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ if settings_path.exists() and merge: # pragma: no cov...
https://github.com/rochacbruno/dynaconf/issues/129
In [1]: from dynaconf import settings In [2]: settings.POTATO Out[2]: 'test' In [3]: settings.get_fresh('POTATO') In [4]: settings.POTATO --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-22d467a777...
AttributeError
def settings_module(self): """Gets SETTINGS_MODULE variable""" settings_module = os.environ.get( self.ENVVAR_FOR_DYNACONF, self.SETTINGS_MODULE_FOR_DYNACONF ) if settings_module != getattr(self, "SETTINGS_MODULE", None): self.set("SETTINGS_MODULE", settings_module) return self.SETTIN...
def settings_module(self): """Gets SETTINGS_MODULE variable""" settings_module = os.environ.get( self.ENVVAR_FOR_DYNACONF, self.SETTINGS_MODULE_FOR_DYNACONF ) if settings_module != self.SETTINGS_MODULE: self.set("SETTINGS_MODULE", settings_module) return self.SETTINGS_MODULE
https://github.com/rochacbruno/dynaconf/issues/94
development var1_dev var2_dev production Traceback (most recent call last): File "/home/hch/PycharmProjects/dynaconf/iia/my_project/main.py", line 13, in <module> settings.setenv('production') File "/home/hch/.virtualenvs/dynaconf/lib/python3.6/site-packages/dynaconf/base.py", line 459, in setenv self.execute_loaders(...
AttributeError
def init(self, conf: ConfigTree) -> None: conf = conf.with_fallback(GlueExtractor.DEFAULT_CONFIG) self._filters = conf.get(GlueExtractor.FILTER_KEY) self._connection_name = conf.get(GlueExtractor.CONNECTION_NAME_KEY) or "" self._is_location_parsing_enabled = conf.get( GlueExtractor.IS_LOCATION_P...
def init(self, conf: ConfigTree) -> None: conf = conf.with_fallback(GlueExtractor.DEFAULT_CONFIG) self._filters = conf.get(GlueExtractor.FILTER_KEY) self._glue = boto3.client("glue") self._extract_iter: Union[None, Iterator] = None self._connection_name = conf.get(GlueExtractor.CONNECTION_NAME_KEY, ...
https://github.com/dataframehq/whale/issues/90
Traceback (most recent call last): File "/usr/local/Cellar/whale/v1.1.4/bin/../libexec/build_script.py", line 23, in <module> pull() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/lib/python3.8/site-packages/whale/utils/task_wrappers.py", line 113, in pull task.run() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/l...
IndexError
def _get_extract_iter(self) -> Iterator[TableMetadata]: for row in self._get_raw_extract_iter(): columns, i = [], 0 for column in row["StorageDescriptor"]["Columns"] + row.get( "PartitionKeys", [] ): columns.append( ColumnMetadata( ...
def _get_extract_iter(self) -> Iterator[TableMetadata]: for row in self._get_raw_extract_iter(): columns, i = [], 0 for column in row["StorageDescriptor"]["Columns"] + row.get( "PartitionKeys", [] ): columns.append( ColumnMetadata( ...
https://github.com/dataframehq/whale/issues/90
Traceback (most recent call last): File "/usr/local/Cellar/whale/v1.1.4/bin/../libexec/build_script.py", line 23, in <module> pull() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/lib/python3.8/site-packages/whale/utils/task_wrappers.py", line 113, in pull task.run() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/l...
IndexError
def __init__( self, metadata_source: str, dialect: Optional[str] = None, uri: Optional[str] = None, port: Optional[int] = None, username: Optional[str] = None, password: Optional[str] = None, name: Optional[str] = None, database: Optional[str] = None, instance: Optional[str] = No...
def __init__( self, metadata_source: str, dialect: Optional[str] = None, uri: Optional[str] = None, port: Optional[int] = None, username: Optional[str] = None, password: Optional[str] = None, name: Optional[str] = None, database: Optional[str] = None, instance: Optional[str] = No...
https://github.com/dataframehq/whale/issues/90
Traceback (most recent call last): File "/usr/local/Cellar/whale/v1.1.4/bin/../libexec/build_script.py", line 23, in <module> pull() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/lib/python3.8/site-packages/whale/utils/task_wrappers.py", line 113, in pull task.run() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/l...
IndexError
def format_table_metadata(self, record) -> metadata_model_whale.TableMetadata: block_template = textwrap.dedent( """ # `{schema_statement}{name}`{view_statement} `{database}`{cluster_statement} {description} {column_details_delimiter} {columns} ...
def format_table_metadata(self, record) -> metadata_model_whale.TableMetadata: block_template = textwrap.dedent( """ # `{schema}.{name}`{view_statement} `{database}`{cluster_statement} {description} {column_details_delimiter} {columns} "...
https://github.com/dataframehq/whale/issues/90
Traceback (most recent call last): File "/usr/local/Cellar/whale/v1.1.4/bin/../libexec/build_script.py", line 23, in <module> pull() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/lib/python3.8/site-packages/whale/utils/task_wrappers.py", line 113, in pull task.run() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/l...
IndexError
def get_table_file_path_relative(database, cluster, schema, table): if cluster is not None: relative_file_path = TABLE_RELATIVE_FILE_PATH.format( database=database, cluster=cluster, schema=schema, table=table ) else: if schema is not None: relative_file_path = CLU...
def get_table_file_path_relative(database, cluster, schema, table): if cluster is not None: relative_file_path = TABLE_RELATIVE_FILE_PATH.format( database=database, cluster=cluster, schema=schema, table=table ) else: relative_file_path = CLUSTERLESS_TABLE_RELATIVE_FILE_PATH.f...
https://github.com/dataframehq/whale/issues/90
Traceback (most recent call last): File "/usr/local/Cellar/whale/v1.1.4/bin/../libexec/build_script.py", line 23, in <module> pull() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/lib/python3.8/site-packages/whale/utils/task_wrappers.py", line 113, in pull task.run() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/l...
IndexError
def get_table_info_from_path( file_path, ): database = os.path.dirname(file_path) table_string = str(file_path).split(database + "/")[-1] database = str(database).split("/")[-1] table_components = table_string.split(".") table = table_components[-2] if len(table_components) == 4: cl...
def get_table_info_from_path( file_path, ): database = os.path.dirname(file_path) table_string = str(file_path).split(database + "/")[-1] database = str(database).split("/")[-1] table_components = table_string.split(".") table = table_components[-2] schema = table_components[-3] if len(...
https://github.com/dataframehq/whale/issues/90
Traceback (most recent call last): File "/usr/local/Cellar/whale/v1.1.4/bin/../libexec/build_script.py", line 23, in <module> pull() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/lib/python3.8/site-packages/whale/utils/task_wrappers.py", line 113, in pull task.run() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/l...
IndexError
def configure_glue_extractors(connection: ConnectionConfigSchema): Extractor = GlueExtractor extractor = Extractor() scope = extractor.get_scope() conf = ConfigFactory.from_dict( { f"{scope}.{Extractor.CONNECTION_NAME_KEY}": connection.name, f"{scope}.{Extractor.FILTER_K...
def configure_glue_extractors(connection: ConnectionConfigSchema): Extractor = GlueExtractor extractor = Extractor() scope = extractor.get_scope() conf = ConfigFactory.from_dict( { f"{scope}.{Extractor.CONNECTION_NAME_KEY}": connection.name, f"{scope}.{Extractor.FILTER_K...
https://github.com/dataframehq/whale/issues/90
Traceback (most recent call last): File "/usr/local/Cellar/whale/v1.1.4/bin/../libexec/build_script.py", line 23, in <module> pull() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/lib/python3.8/site-packages/whale/utils/task_wrappers.py", line 113, in pull task.run() File "/usr/local/Cellar/whale/v1.1.4/libexec/env/l...
IndexError
def step(title): if callable(title): return StepContext(title.__name__, ({}, {}))(title) else: return StepContext(title, ({}, {}))
def step(title): if callable(title): return StepContext(title.__name__, [])(title) else: return StepContext(title, [])
https://github.com/allure-framework/allure-python/issues/100
$ pytest test_3.py --alluredir areport4 ========================================================================= test session starts ========================================================================== platform linux2 -- Python 2.7.8, pytest-3.1.3, py-1.4.34, pluggy-0.4.0 metadata: {'Python': '2.7.8', 'Platform'...
PyTestError
def __enter__(self): args, kwargs = self.params args.update(kwargs) params = list(args.items()) plugin_manager.hook.start_step(uuid=self.uuid, title=self.title, params=params)
def __enter__(self): plugin_manager.hook.start_step(uuid=self.uuid, title=self.title, params=self.params)
https://github.com/allure-framework/allure-python/issues/100
$ pytest test_3.py --alluredir areport4 ========================================================================= test session starts ========================================================================== platform linux2 -- Python 2.7.8, pytest-3.1.3, py-1.4.34, pluggy-0.4.0 metadata: {'Python': '2.7.8', 'Platform'...
PyTestError
def __call__(self, func): @wraps(func) def impl(*a, **kw): __tracebackhide__ = True params = func_parameters(func, *a, **kw) args, kwargs = params with StepContext(self.title.format(*args.values(), **kwargs), params): return func(*a, **kw) return impl
def __call__(self, func): @wraps(func) def impl(*a, **kw): __tracebackhide__ = True params = func_parameters(func, *a, **kw) with StepContext(self.title.format(*a, **kw), params): return func(*a, **kw) return impl
https://github.com/allure-framework/allure-python/issues/100
$ pytest test_3.py --alluredir areport4 ========================================================================= test session starts ========================================================================== platform linux2 -- Python 2.7.8, pytest-3.1.3, py-1.4.34, pluggy-0.4.0 metadata: {'Python': '2.7.8', 'Platform'...
PyTestError
def impl(*a, **kw): __tracebackhide__ = True params = func_parameters(func, *a, **kw) args, kwargs = params with StepContext(self.title.format(*args.values(), **kwargs), params): return func(*a, **kw)
def impl(*a, **kw): __tracebackhide__ = True params = func_parameters(func, *a, **kw) with StepContext(self.title.format(*a, **kw), params): return func(*a, **kw)
https://github.com/allure-framework/allure-python/issues/100
$ pytest test_3.py --alluredir areport4 ========================================================================= test session starts ========================================================================== platform linux2 -- Python 2.7.8, pytest-3.1.3, py-1.4.34, pluggy-0.4.0 metadata: {'Python': '2.7.8', 'Platform'...
PyTestError
def func_parameters(func, *a, **kw): bowels = ( inspect.getargspec(func) if sys.version_info.major < 3 else inspect.getfullargspec(func) ) args_dict = dict(zip(bowels.args, map(represent, a))) kwargs_dict = dict(zip(kw, list(map(lambda i: represent(kw[i]), kw)))) kwarg_defaul...
def func_parameters(func, *a, **kw): if sys.version_info.major < 3: all_names = inspect.getargspec(func).args defaults = inspect.getargspec(func).defaults else: all_names = inspect.getfullargspec(func).args defaults = inspect.getfullargspec(func).defaults args_part = [(n, str...
https://github.com/allure-framework/allure-python/issues/100
$ pytest test_3.py --alluredir areport4 ========================================================================= test session starts ========================================================================== platform linux2 -- Python 2.7.8, pytest-3.1.3, py-1.4.34, pluggy-0.4.0 metadata: {'Python': '2.7.8', 'Platform'...
PyTestError
def selected(self) -> Optional[Gtk.TreeIter]: (model, tree_iter) = self.selection.get_selected() return tree_iter
def selected(self) -> Gtk.TreeIter: (model, tree_iter) = self.selection.get_selected() assert tree_iter is not None return tree_iter
https://github.com/blueman-project/blueman/issues/1420
Traceback (most recent call last): File "/home/cschramm/src/blueman/blueman/gui/manager/ManagerMenu.py", line 249, in on_adapter_selected self.blueman.List.set_adapter(adapter_path) File "/home/cschramm/src/blueman/blueman/gui/DeviceList.py", line 245, in set_adapter self.clear() File "/home/cschramm/src/blueman/bluema...
AssertionError
def compare( self, iter_a: Optional[Gtk.TreeIter], iter_b: Optional[Gtk.TreeIter] ) -> bool: if iter_a is not None and iter_b is not None: model = self.get_model() assert model is not None return model.get_path(iter_a) == model.get_path(iter_b) else: return False
def compare(self, iter_a: Gtk.TreeIter, iter_b: Gtk.TreeIter) -> bool: if iter_a is not None and iter_b is not None: model = self.get_model() assert model is not None return model.get_path(iter_a) == model.get_path(iter_b) else: return False
https://github.com/blueman-project/blueman/issues/1420
Traceback (most recent call last): File "/home/cschramm/src/blueman/blueman/gui/manager/ManagerMenu.py", line 249, in on_adapter_selected self.blueman.List.set_adapter(adapter_path) File "/home/cschramm/src/blueman/blueman/gui/DeviceList.py", line 245, in set_adapter self.clear() File "/home/cschramm/src/blueman/bluema...
AssertionError
def _on_popup_menu(self, _widget: Gtk.Widget) -> bool: if self.Blueman is None: return False if self.menu is None: self.menu = ManagerDeviceMenu(self.Blueman) window = self.get_window() assert window is not None selected = self.selected() assert selected is not None rect = ...
def _on_popup_menu(self, _widget: Gtk.Widget) -> bool: if self.Blueman is None: return False if self.menu is None: self.menu = ManagerDeviceMenu(self.Blueman) window = self.get_window() assert window is not None rect = self.get_cell_area( self.liststore.get_path(self.select...
https://github.com/blueman-project/blueman/issues/1420
Traceback (most recent call last): File "/home/cschramm/src/blueman/blueman/gui/manager/ManagerMenu.py", line 249, in on_adapter_selected self.blueman.List.set_adapter(adapter_path) File "/home/cschramm/src/blueman/blueman/gui/DeviceList.py", line 245, in set_adapter self.clear() File "/home/cschramm/src/blueman/bluema...
AssertionError
def on_selection_changed(self, _selection: Gtk.TreeSelection) -> None: tree_iter = self.List.selected() assert tree_iter if self.List.get_cursor()[0]: # GtkTreePath returns row when used as string self.Config["services-last-item"] = int(str(self.List.get_cursor()[0])) row = self.List.get...
def on_selection_changed(self, _selection: Gtk.TreeSelection) -> None: tree_iter = self.List.selected() if self.List.get_cursor()[0]: # GtkTreePath returns row when used as string self.Config["services-last-item"] = int(str(self.List.get_cursor()[0])) row = self.List.get(tree_iter, "id") ...
https://github.com/blueman-project/blueman/issues/1420
Traceback (most recent call last): File "/home/cschramm/src/blueman/blueman/gui/manager/ManagerMenu.py", line 249, in on_adapter_selected self.blueman.List.set_adapter(adapter_path) File "/home/cschramm/src/blueman/blueman/gui/DeviceList.py", line 245, in set_adapter self.clear() File "/home/cschramm/src/blueman/bluema...
AssertionError
def ask_passkey( self, dialog_msg, notify_msg, is_numeric, notification, device_path, ok, err ): def passkey_dialog_cb(dialog, response_id): if response_id == Gtk.ResponseType.ACCEPT: ret = pin_entry.get_text() ok(int(ret) if is_numeric else ret) else: err(Blu...
def ask_passkey( self, dialog_msg, notify_msg, is_numeric, notification, device_path, ok, err ): def passkey_dialog_cb(dialog, response_id): if response_id == Gtk.ResponseType.ACCEPT: ret = pin_entry.get_text() if is_numeric: ret = GLib.Variant("(u)", int(ret)) ...
https://github.com/blueman-project/blueman/issues/1159
(blueman-tray:79548): Gdk-CRITICAL **: 16:36:17.940: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed blueman-manager version 2.1.1 starting Stale PID, overwriting blueman-manager 16.36.23 WARNING DeviceList:193 monitor_power_levels: Failed to get power levels, proba...
TypeError
def passkey_dialog_cb(dialog, response_id): if response_id == Gtk.ResponseType.ACCEPT: ret = pin_entry.get_text() ok(int(ret) if is_numeric else ret) else: err(BluezErrorRejected("Rejected")) dialog.destroy() self.dialog = None
def passkey_dialog_cb(dialog, response_id): if response_id == Gtk.ResponseType.ACCEPT: ret = pin_entry.get_text() if is_numeric: ret = GLib.Variant("(u)", int(ret)) ok(ret) else: err(BluezErrorRejected("Rejected")) dialog.destroy() self.dialog = None
https://github.com/blueman-project/blueman/issues/1159
(blueman-tray:79548): Gdk-CRITICAL **: 16:36:17.940: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed blueman-manager version 2.1.1 starting Stale PID, overwriting blueman-manager 16.36.23 WARNING DeviceList:193 monitor_power_levels: Failed to get power levels, proba...
TypeError
def __init__(self, plugin_class, module_path, parent): super().__init__() self.__deps: Dict[str, str] = {} self.__cfls: Dict[str, str] = {} self.__plugins: Dict[str, Union[AppletPlugin, ManagerPlugin]] = {} self.__classes: Dict[str, Type[Union[AppletPlugin, ManagerPlugin]]] = {} self.__loaded: L...
def __init__(self, plugin_class, module_path, parent): super().__init__() self.__plugins: Dict[str, T] = {} self.__classes: Dict[str, Type[T]] = {} self.__deps: Dict[str, str] = {} self.__cfls: Dict[str, str] = {} self.__loaded: List[str] = [] self.parent = parent self.module_path = mod...
https://github.com/blueman-project/blueman/issues/1130
$ git clone https://github.com/blueman-project/blueman.git … $ cd blueman/ $ ./autogen.sh … $ make … $ PYTHONPATH=$(pwd) python3.6 ./blueman/main/Applet.py Traceback (most recent call last): File "./blueman/main/Applet.py", line 3, in <module> import blueman.bluez as bluez File "/home/dakkar/src/blueman/blueman/bluez/_...
AttributeError
def set_adapter(self, adapter=None): self.clear() if self.discovering: self.stop_discovery() self.emit("adapter-property-changed", self.Adapter, ("Discovering", False)) adapter = adapter_path_to_name(adapter) logging.debug("Setting adapter to: %s " % adapter) if adapter is not Non...
def set_adapter(self, adapter=None): self.clear() if self.discovering: self.stop_discovery() self.emit("adapter-property-changed", self.Adapter, ("Discovering", False)) adapter = adapter_path_to_name(adapter) logging.debug(adapter) # The pattern may be incorrect (ie removed adapte...
https://github.com/blueman-project/blueman/issues/1050
$ blueman-manager blueman-manager version 2.1 starting Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/blueman/gui/manager/ManagerDeviceList.py", line 212, in on_finished super().device_remove_event(device, tree_iter) TypeError: super(type, obj): obj must be an instance or subtype of type Trac...
TypeError
def on_item_activated(self, item): logging.info("Connect %s %s" % (item["address"], item["uuid"])) item["mitem"]["sensitive"] = False self.parent.Plugins.Menu.on_menu_changed() def reply(*args): Notification( _("Connected"), _("Connected to %s") % item["mitem"]["text"],...
def on_item_activated(self, item): logging.info("Connect %s %s" % (item["address"], item["uuid"])) item["mitem"]["sensitive"] = False self.parent.Plugins.Menu.on_menu_changed() def reply(*args): Notification( _("Connected"), _("Connected to %s") % item["mitem"]["text"],...
https://github.com/blueman-project/blueman/issues/1059
Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/blueman/main/indicators/GtkStatusIcon.py", line 19, in <lambda> gtk_item.connect('activate', lambda _, idx=index: activate(idx)) File "/usr/lib/python3.7/site-packages/blueman/main/indicators/GtkStatusIcon.py", line 21, in <lambda> gt...
gi.repository.GLib.Error
def get(self, name): prop = self._dbus_proxy.get_cached_property(name) if prop is None and name in self.__fallback: return self.__fallback[name] elif prop is None: # Fallback when cached property is not available param = GLib.Variant("(ss)", (self._interface_name, name)) try...
def get(self, name): prop = self._dbus_proxy.get_cached_property(name) if prop is not None: return prop.unpack() elif not prop and name in self.__fallback: return self.__fallback[name] else: raise BluezDBusException("No such property '%s'" % name)
https://github.com/blueman-project/blueman/issues/555
_________ _on_dbus_name_vanished (/usr/bin/blueman-applet:84) org.bluez _________ update_menuitems (/usr/lib64/python3.5/site-packages/blueman/plugins/applet/DiscvManager.py:116) warning: Adapter is None _________ on_unregistered (/usr/lib64/python3.5/site-packages/blueman/bluez/obex/AgentManager.py:28) /org/bluez/obex...
TypeError
def get_properties(self): param = GLib.Variant("(s)", (self._interface_name,)) res = self._call("GetAll", param, True) prop_names = res[0].keys() result = {} for name in prop_names: result[name] = self.get(name) if result: for k, v in self.__fallback.items(): if k i...
def get_properties(self): prop_names = self._dbus_proxy.get_cached_property_names() result = {} for name in prop_names: result[name] = self._dbus_proxy.get_cached_property(name).unpack() if result: for k, v in self.__fallback.items(): if k in result: continue...
https://github.com/blueman-project/blueman/issues/555
_________ _on_dbus_name_vanished (/usr/bin/blueman-applet:84) org.bluez _________ update_menuitems (/usr/lib64/python3.5/site-packages/blueman/plugins/applet/DiscvManager.py:116) warning: Adapter is None _________ on_unregistered (/usr/lib64/python3.5/site-packages/blueman/bluez/obex/AgentManager.py:28) /org/bluez/obex...
TypeError
def __init__(self, applet): self._applet = applet self._config = Config("org.blueman.transfer") self._agent_path = "/org/blueman/obex_agent" self._agent = obex.Agent(self._agent_path) self._agent.connect("release", self._on_release) self._agent.connect("authorize", self._on_authorize) self...
def __init__(self, applet): self._applet = applet self._config = Config("org.blueman.transfer") self._agent_path = "/org/blueman/obex_agent" self._agent = obex.Agent(self._agent_path) self._agent.connect("release", self._on_release) self._agent.connect("authorize", self._on_authorize) self...
https://github.com/blueman-project/blueman/issues/441
_________ Unload (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:183) Unloading TransferService _________ __load_plugin (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:133) loading <class 'blueman.plugins.applet.TransferService.TransferService'> _________ _on_obex_owner_changed (/usr...
KeyError
def on_unload(self): if self._watch: self._watch.cancel() self._unregister_agent()
def on_unload(self): if self._watch: self._watch.cancel() self._agent = None
https://github.com/blueman-project/blueman/issues/441
_________ Unload (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:183) Unloading TransferService _________ __load_plugin (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:133) loading <class 'blueman.plugins.applet.TransferService.TransferService'> _________ _on_obex_owner_changed (/usr...
KeyError
def on_manager_state_changed(self, state): if not state: self._unregister_agent()
def on_manager_state_changed(self, state): if not state: self._agent = None
https://github.com/blueman-project/blueman/issues/441
_________ Unload (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:183) Unloading TransferService _________ __load_plugin (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:133) loading <class 'blueman.plugins.applet.TransferService.TransferService'> _________ _on_obex_owner_changed (/usr...
KeyError
def _on_obex_owner_changed(self, owner): dprint("obex owner changed:", owner) if owner == "": self._unregister_agent() else: self._register_agent()
def _on_obex_owner_changed(self, owner): dprint("obex owner changed:", owner) if owner == "": self._agent = None else: self._agent = _Agent(self._applet)
https://github.com/blueman-project/blueman/issues/441
_________ Unload (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:183) Unloading TransferService _________ __load_plugin (/usr/lib64/python3.4/site-packages/blueman/main/PluginManager.py:133) loading <class 'blueman.plugins.applet.TransferService.TransferService'> _________ _on_obex_owner_changed (/usr...
KeyError
def wait_for_adapter(bluez_adapter, callback, timeout=1000): def on_prop_changed(adapter, key, value, _path): if key == "Powered" and value: GLib.source_remove(source) adapter.disconnect_signal(sig) callback() def on_timeout(): bluez_adapter.disconnect_signal...
def wait_for_adapter(bluez_adapter, callback, timeout=1000): def on_prop_changed(adapter, key, value): if key == "Powered" and value: GLib.source_remove(source) adapter.disconnect_signal(sig) callback() def on_timeout(): bluez_adapter.disconnect_signal(sig) ...
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def on_prop_changed(adapter, key, value, _path): if key == "Powered" and value: GLib.source_remove(source) adapter.disconnect_signal(sig) callback()
def on_prop_changed(adapter, key, value): if key == "Powered" and value: GLib.source_remove(source) adapter.disconnect_signal(sig) callback()
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _handle_signal( self, handler, signal, interface_name=None, object_path=None, path_keyword=None ): args = ( handler, signal, interface_name or self.__interface_name, self.__bus_name, object_path or self.__obj_path, ) self.__bus.add_signal_receiver(*args, path_...
def _handle_signal(self, handler, signal, interface_name=None, object_path=None): args = ( handler, signal, interface_name or self.__interface_name, self.__bus_name, object_path or self.__obj_path, ) self.__bus.add_signal_receiver(*args) self.__signals.append(args...
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def __init__(self, interface, obj_path): super(PropertiesBase, self).__init__(interface, obj_path) self._handler_wrappers = {} if obj_path: self.__properties_interface = dbus.Interface( self._dbus_proxy, "org.freedesktop.DBus.Properties" ) self._handle_signal( self...
def __init__(self, interface, obj_path): super(PropertiesBase, self).__init__(interface, obj_path) self._handler_wrappers = {} if obj_path: self.__properties_interface = dbus.Interface( self._dbus_proxy, "org.freedesktop.DBus.Properties" ) self._handle_signal( self...
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_property_changed(self, key, value, path): dprint(path, key, value) self.emit("property-changed", key, value, path)
def _on_property_changed(self, key, value): dprint(self.get_object_path(), key, value) self.emit("property-changed", key, value)
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_properties_changed( self, interface_name, changed_properties, _invalidated_properties, path ): if interface_name == self._interface_name: for name, value in changed_properties.items(): self._on_property_changed(name, value, path)
def _on_properties_changed( self, interface_name, changed_properties, _invalidated_properties ): if interface_name == self._interface_name: for name, value in changed_properties.items(): self._on_property_changed(name, value)
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_property_changed(self, _adapter, key, value, _path): if key == "Discovering": if not value and self.discovering: self.StopDiscovery() self.emit("adapter-property-changed", self.Adapter, (key, value))
def _on_property_changed(self, _adapter, key, value): if key == "Discovering": if not value and self.discovering: self.StopDiscovery() self.emit("adapter-property-changed", self.Adapter, (key, value))
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_device_property_changed(self, _device, key, value, path): iter = self.find_device_by_path(path) if iter != None: dev = self.get(iter, "device")["device"] self.row_update_event(iter, key, value) self.emit("device-property-changed", dev, iter, (key, value)) if key == "Co...
def _on_device_property_changed(self, device, key, value): iter = self.find_device_by_path(device.get_object_path()) if iter != None: dev = self.get(iter, "device")["device"] self.row_update_event(iter, key, value) self.emit("device-property-changed", dev, iter, (key, value)) ...
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_service_property_changed(self, _service, key, _value, _path): if key == "Connected": self.Generate()
def _on_service_property_changed(self, _service, key, value): if key == "Connected": self.Generate()
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def __init__(self, instance): GObject.GObject.__init__(self) self.Properties = {} self.Temp = False if hasattr(instance, "format") and hasattr(instance, "upper"): self.Device = BluezDevice(instance) else: self.Device = instance # set fallback icon, fixes lp:#327718 self.De...
def __init__(self, instance): GObject.GObject.__init__(self) self.Properties = {} self.Temp = False if hasattr(instance, "format") and hasattr(instance, "upper"): self.Device = BluezDevice(instance) else: self.Device = instance # set fallback icon, fixes lp:#327718 self.De...
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_network_prop_changed(self, _network, key, value, _path): if key == "Interface": if value != "": self.dhcp_acquire(value)
def _on_network_prop_changed(self, _network, key, value): if key == "Interface": if value != "": self.dhcp_acquire(value)
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_device_property_changed(self, _device, key, value, path): if key == "Connected": klass = bluez.Device(path).get_properties()["Class"] & 0x1FFF if klass == 0x504 or klass == 0x508: if value: self.xdg_screensaver("suspend") else: self.xd...
def _on_device_property_changed(self, device, key, value): if key == "Connected": klass = device.get_properties()["Class"] & 0x1FFF if klass == 0x504 or klass == 0x508: if value: self.xdg_screensaver("suspend") else: self.xdg_screensaver("resu...
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_network_property_changed(self, _network, key, value, path): if key == "Interface" and value != "": d = BluezDevice(path) d = Device(d) self.monitor_interface(Monitor, d, value)
def _on_network_property_changed(self, network, key, value): if key == "Interface" and value != "": d = BluezDevice(network.get_object_path()) d = Device(d) self.monitor_interface(Monitor, d, value)
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_adapter_property_changed(self, _adapter, key, value, _path): if key == "Powered": if value and not self.CurrentState: dprint("adapter powered on while in off state, turning bluetooth on") self.RequestPowerState(True) self.UpdatePowerState()
def _on_adapter_property_changed(self, _adapter, key, value): if key == "Powered": if value and not self.CurrentState: dprint("adapter powered on while in off state, turning bluetooth on") self.RequestPowerState(True) self.UpdatePowerState()
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_device_property_changed(self, _device, key, value, path): if key == "Connected" and not value: self.terminate_all_scripts(Device(path).Address)
def _on_device_property_changed(self, device, key, value): if key == "Connected" and not value: self.terminate_all_scripts(device.Address)
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def _on_device_property_changed(self, _device, key, value, _path): if key == "Connected": if value: self.num_connections += 1 else: self.num_connections -= 1 if (self.num_connections > 0 and not self.active) or ( self.num_connections == 0 and self.active ...
def _on_device_property_changed(self, _device, key, value): if key == "Connected": if value: self.num_connections += 1 else: self.num_connections -= 1 if (self.num_connections > 0 and not self.active) or ( self.num_connections == 0 and self.active ...
https://github.com/blueman-project/blueman/issues/341
_________ _on_property_changed (/usr/lib64/python2.7/site-packages/blueman/bluez/PropertiesBase.py:28) None Connected 0 Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/blueman/plugins/applet/SerialManager.py", line 59, in _on_device_property_changed self.terminate_all_scripts(device.Address)...
AttributeError
def connected(self): try: return self._service.get_properties()["Connected"] except DBusException as e: dprint("Could not get properties of network service: %s" % e) return False
def connected(self): return self._service.get_properties()["Connected"]
https://github.com/blueman-project/blueman/issues/208
Run (/usr/local/lib/python2.7/site-packages/blueman/main/PluginManager.py:203) Function on_request_menu_items on Services Failed Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/blueman/main/PluginManager.py", line 207, in Run ret = getattr(inst, function)(args, *kwargs) File "/usr/local/...
DBusException
def Generate(self): self.clear() appl = AppletService() items = [] if not self.is_popup or self.props.visible: selected = self.Blueman.List.selected() if not selected: return device = self.Blueman.List.get(selected, "device")["device"] else: (x, y) = se...
def Generate(self): self.clear() appl = AppletService() items = [] if not self.is_popup or self.props.visible: selected = self.Blueman.List.selected() if not selected: return device = self.Blueman.List.get(selected, "device")["device"] else: (x, y) = se...
https://github.com/blueman-project/blueman/issues/117
Nov 02 22:27:54 zamanjaro org.gtk.vfs.Daemon[10692]: ** (process:10958): WARNING **: send_done_cb: No such interface 'org.gtk.vfs.Enumerator' on object at path /org/gtk/vfs/client/enumerator/1 (g-dbus-error-quark, 19) Nov 02 22:45:57 zamanjaro org.gnome.Terminal[10692]: ** (gnome-terminal-server:3182): WARNING **: Coul...
AttributeError
def DisplayPasskey(self, device, passkey, entered): dprint("DisplayPasskey (%s, %d)" % (device, passkey)) notify_message = _("Pairing passkey for") + " %s: %s" % ( self.get_device_alias(device), passkey, ) self.n = Notification( "Bluetooth", notify_message, 0, ...
def DisplayPasskey(self, device, passkey, entered): dprint("DisplayPasskey (%s, %d)" % (device, passkey)) notify_message = _("Pairing passkey for") + " %s: %s" % ( self.get_device_alias(device), passkey, ) Notification( "Bluetooth", notify_message, 0, pixb...
https://github.com/blueman-project/blueman/issues/120
aep-haswell bluetoothd[655]: Agent replied with an error: org.freedesktop.DBus.Error.UnknownMethod, Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/dbus/service.py", line 654, in _message_cb (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name) File "/usr/lib6...
UnknownMethodException
def DisplayPinCode(self, device, pin_code): dprint("DisplayPinCode (%s, %s)" % (device, pin_code)) notify_message = _("Pairing PIN code for") + " %s: %s" % ( self.get_device_alias(device), pin_code, ) self.n = Notification( "Bluetooth", notify_message, 0, ...
def DisplayPinCode(self, device, pin_code): dprint("DisplayPinCode (%s, %s)" % (device, pin_code)) notify_message = _("Pairing PIN code for") + " %s: %s" % ( self.get_device_alias(device), pin_code, ) Notification( "Bluetooth", notify_message, 0, pixbuf=ge...
https://github.com/blueman-project/blueman/issues/120
aep-haswell bluetoothd[655]: Agent replied with an error: org.freedesktop.DBus.Error.UnknownMethod, Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/dbus/service.py", line 654, in _message_cb (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name) File "/usr/lib6...
UnknownMethodException
def on_adapter_property_changed(self, list, adapter, kv): (key, value) = kv if key == "Name" or key == "Alias": self.generate_adapter_menu() elif key == "Discovering": if self.Search: if value: self.Search.props.sensitive = False else: ...
def on_adapter_property_changed(self, list, adapter, kv): (key, value) = kv if key == "Name": self.generate_adapter_menu() elif key == "Discovering": if self.Search: if value: self.Search.props.sensitive = False else: self.Search.props....
https://github.com/blueman-project/blueman/issues/104
Traceback (most recent call last): File "/usr/bin/blueman-adapters", line 78, in on_dialog_response adapter.SetProperty('Name', settings['name']) AttributeError: 'Adapter' object has no attribute 'SetProperty'
AttributeError
def generate_adapter_menu(self): menu = Gtk.Menu() sep = Gtk.SeparatorMenuItem() sep.show() menu.append(sep) settings = Gtk.ImageMenuItem.new_from_stock("gtk-preferences", None) settings.connect("activate", lambda x: self.blueman.adapter_properties()) settings.show() menu.append(settin...
def generate_adapter_menu(self): menu = Gtk.Menu() sep = Gtk.SeparatorMenuItem() sep.show() menu.append(sep) settings = Gtk.ImageMenuItem.new_from_stock("gtk-preferences", None) settings.connect("activate", lambda x: self.blueman.adapter_properties()) settings.show() menu.append(settin...
https://github.com/blueman-project/blueman/issues/104
Traceback (most recent call last): File "/usr/bin/blueman-adapters", line 78, in on_dialog_response adapter.SetProperty('Name', settings['name']) AttributeError: 'Adapter' object has no attribute 'SetProperty'
AttributeError
def mackinnoncrit( num_unit_roots: int = 1, regression: str = "c", nobs: float = inf, dist_type: str = "ADF-t", ) -> NDArray: """ Returns the critical values for cointegrating and the ADF test. In 2010 MacKinnon updated the values of his 1994 paper with critical values for the augmented...
def mackinnoncrit( num_unit_roots: int = 1, regression: str = "c", nobs: float = inf, dist_type: str = "ADF-t", ) -> NDArray: """ Returns the critical values for cointegrating and the ADF test. In 2010 MacKinnon updated the values of his 1994 paper with critical values for the augmented...
https://github.com/bashtage/arch/issues/385
y = PhillipsPerron(default, trend='n', test_type='rho') y.__str__() Traceback (most recent call last): File "<ipython-input-56-8cc462d9ab10>", line 1, in <module> y.__str__() File "C:\Users\u609587\AppData\Local\Continuum\anaconda3\lib\site-packages\arch\unitroot\unitroot.py", line 484, in __str__ return self.summar...
KeyError
def _redirect(self, to_fd, unbuffered=False, close=False): if close: fp = getattr(sys, self._stream) # TODO(jhr): does this still work under windows? are we leaking a fd? # Do not close old filedescriptor as others might be using it try: fp.close() except Excepti...
def _redirect(self, to_fd, unbuffered=False, close=False): if close: fp = getattr(sys, self._stream) # TODO(jhr): does this still work under windows? are we leaking a fd? # Do not close old filedescriptor as others might be using it fp.close() os.dup2(to_fd, self._old_fd) if...
https://github.com/wandb/client/issues/1321
Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_run.py", line 1172, in _atexit_cleanup self._on_finish() File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_run.py", line 1292, in _on_finish self._console_stop() # TODO: there's a r...
AttributeError
def notebook_metadata(): """Attempts to query jupyter for the path and name of the notebook file""" error_message = "Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable" try: import ipykernel from notebook.notebookapp import list_runni...
def notebook_metadata(): """Attempts to query jupyter for the path and name of the notebook file""" error_message = "Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable" try: import ipykernel from notebook.notebookapp import list_runni...
https://github.com/wandb/client/issues/678
AttributeError Traceback (most recent call last) C:\Python37\lib\site-packages\wandb\meta.py in setup(self) 46 import __main__ ---> 47 self.data["program"] = __main__.__file__ 48 except (ImportError, AttributeError): AttributeError: module '__main__' has no at...
AttributeError
def _set_win_sizes(self): try: win_size = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, "\0" * 8) except OSError: # eg. in MPI we can't do this rows, cols, xpix, ypix = 25, 80, 0, 0 else: rows, cols, xpix, ypix = struct.unpack("HHHH", win_size) if cols == 0: cols...
def _set_win_sizes(self): try: win_size = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, "\0" * 8) except OSError: # eg. in MPI we can't do this rows, cols, xpix, ypix = 25, 80, 0, 0 else: rows, cols, xpix, ypix = array.array("h", win_size) if cols == 0: cols = 80...
https://github.com/wandb/client/issues/401
(main) ÷19-06-28 09:14:41|ttys010|trippings-mbp-3|~/git0/mindscribe-question-ai\÷ python Python 3.6.8 |Anaconda, Inc.| (default, Dec 29 2018, 19:04:46) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin Type "help", "copyright", "credits" or "license" for more information. import wandb wandb.init(pro...
struct.error
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv=None ): if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) else: kpts = self.kpts if kpts.shape == (3,): ...
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv="ewald", ): if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) else: kpts = self.kpts ...
https://github.com/pyscf/pyscf/issues/253
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1476, in kernel return self.scf(dm0, **kwargs) File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1470, in scf conv_check=self.conv_check, **kwargs) File "/home/gagliard/phamx494/pys...
IndexError
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv=None ): if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) else: kpts = self.kpts kpts = numpy.asarray(kpts) ...
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv="ewald", ): if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) else: kpts = self.kpts ...
https://github.com/pyscf/pyscf/issues/253
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1476, in kernel return self.scf(dm0, **kwargs) File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1470, in scf conv_check=self.conv_check, **kwargs) File "/home/gagliard/phamx494/pys...
IndexError
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv=None ): from pyscf.pbc.df import fft_jk if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) else: kpts = self....
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv="ewald", ): from pyscf.pbc.df import fft_jk if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) ...
https://github.com/pyscf/pyscf/issues/253
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1476, in kernel return self.scf(dm0, **kwargs) File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1470, in scf conv_check=self.conv_check, **kwargs) File "/home/gagliard/phamx494/pys...
IndexError
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv=None ): if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) else: kpts = self.kpts kpts = numpy.asarray(kpts) ...
def get_jk( self, dm, hermi=1, kpts=None, kpts_band=None, with_j=True, with_k=True, exxdiv="ewald", ): if kpts is None: if numpy.all(self.kpts == 0): # Gamma-point calculation by default kpts = numpy.zeros(3) else: kpts = self.kpts ...
https://github.com/pyscf/pyscf/issues/253
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1476, in kernel return self.scf(dm0, **kwargs) File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1470, in scf conv_check=self.conv_check, **kwargs) File "/home/gagliard/phamx494/pys...
IndexError
def get_init_guess(self, cell=None, key="minao"): if cell is None: cell = self.cell dm_kpts = None key = key.lower() if key == "1e" or key == "hcore": dm_kpts = self.init_guess_by_1e(cell) elif getattr(cell, "natm", 0) == 0: logger.info(self, "No atom found in cell. Use 1e in...
def get_init_guess(self, cell=None, key="minao"): if cell is None: cell = self.cell dm_kpts = None key = key.lower() if key == "1e" or key == "hcore": dm_kpts = self.init_guess_by_1e(cell) elif getattr(cell, "natm", 0) == 0: logger.info(self, "No atom found in cell. Use 1e in...
https://github.com/pyscf/pyscf/issues/253
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1476, in kernel return self.scf(dm0, **kwargs) File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1470, in scf conv_check=self.conv_check, **kwargs) File "/home/gagliard/phamx494/pys...
IndexError
def get_init_guess(self, cell=None, key="minao"): if cell is None: cell = self.cell dm_kpts = None key = key.lower() if key == "1e" or key == "hcore": dm_kpts = self.init_guess_by_1e(cell) elif getattr(cell, "natm", 0) == 0: logger.info(self, "No atom found in cell. Use 1e in...
def get_init_guess(self, cell=None, key="minao"): if cell is None: cell = self.cell dm_kpts = None if key.lower() == "1e": dm_kpts = self.init_guess_by_1e(cell) elif getattr(cell, "natm", 0) == 0: logger.info(self, "No atom found in cell. Use 1e initial guess") dm_kpts = ...
https://github.com/pyscf/pyscf/issues/253
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1476, in kernel return self.scf(dm0, **kwargs) File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1470, in scf conv_check=self.conv_check, **kwargs) File "/home/gagliard/phamx494/pys...
IndexError
def get_init_guess(self, cell=None, key="minao"): if cell is None: cell = self.cell dm_kpts = None key = key.lower() if key == "1e" or key == "hcore": dm_kpts = self.init_guess_by_1e(cell) elif getattr(cell, "natm", 0) == 0: logger.info(self, "No atom found in cell. Use 1e in...
def get_init_guess(self, cell=None, key="minao"): if cell is None: cell = self.cell dm_kpts = None if key.lower() == "1e": dm_kpts = self.init_guess_by_1e(cell) elif getattr(cell, "natm", 0) == 0: logger.info(self, "No atom found in cell. Use 1e initial guess") dm_kpts = ...
https://github.com/pyscf/pyscf/issues/253
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1476, in kernel return self.scf(dm0, **kwargs) File "/home/gagliard/phamx494/pyscf/pyscf/scf/hf.py", line 1470, in scf conv_check=self.conv_check, **kwargs) File "/home/gagliard/phamx494/pys...
IndexError
def export_items(): result = { "timestamp": datetime.utcnow().isoformat(), "scope": [ { "target": item.target, "blacklist": item.blacklist, "tags": item.get_tag_names(), } for item in ScopeItem.getScope() ], ...
def export_items(): result = { "timestamp": datetime.utcnow().isoformat(), "scope": [ {"target": item.target, "blacklist": item.blacklist, "tags": item.tags} for item in ScopeItem.getScope() ], "blacklist": [ {"target": item.target, "blacklist": it...
https://github.com/natlas/natlas/issues/426
root@natlas:~# docker exec -ti natlas_server flask scope export Sentry.io enabled and reporting errors to https://sentry.technowizardry.net Traceback (most recent call last): File "/.venv/bin/flask", line 8, in <module> sys.exit(main()) File "/.venv/lib/python3.8/site-packages/flask/cli.py", line 967, in main cli.main(...
TypeError
def get_web_screenshots(target, scan_id, proctimeout): scan_dir = utils.get_scan_dir(scan_id) xml_file = os.path.join(scan_dir, f"nmap.{scan_id}.xml") output_dir = os.path.join(scan_dir, f"aquatone.{scan_id}") logger.info(f"Attempting to take screenshots for {target}") aquatoneArgs = ["aquatone", "...
def get_web_screenshots(target, scan_id, proctimeout): scan_dir = utils.get_scan_dir(scan_id) xml_file = os.path.join(scan_dir, f"nmap.{scan_id}.xml") outFiles = os.path.join(scan_dir, f"aquatone.{scan_id}") output = [] logger.info(f"Attempting to take screenshots for {target}") aquatoneArgs = ...
https://github.com/natlas/natlas/issues/412
[2020-07-25 00:22:59,784] ERROR in app: Exception on /api/submit [POST] Traceback (most recent call last): File "/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request rv...
PIL.UnidentifiedImageError
def get_vnc_screenshots(target, scan_id, proctimeout): scan_dir = utils.get_scan_dir(scan_id) output_file = os.path.join(scan_dir, f"vncsnapshot.{scan_id}.jpg") logger.info(f"Attempting to take VNC screenshot for {target}") vncsnapshot_args = [ "xvfb-run", "vncsnapshot", "-qual...
def get_vnc_screenshots(target, scan_id, proctimeout): scan_dir = utils.get_scan_dir(scan_id) outFile = os.path.join(scan_dir, f"vncsnapshot.{scan_id}.jpg") logger.info(f"Attempting to take VNC screenshot for {target}") process = subprocess.Popen( ["xvfb-run", "vncsnapshot", "-quality", "50", ...
https://github.com/natlas/natlas/issues/412
[2020-07-25 00:22:59,784] ERROR in app: Exception on /api/submit [POST] Traceback (most recent call last): File "/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request rv...
PIL.UnidentifiedImageError
def scan(target_data, config): if not utils.validate_target(target_data["target"], config): return False target = target_data["target"] scan_id = target_data["scan_id"] agentConfig = target_data["agent_config"] command = command_builder(scan_id, agentConfig, target) scan_dir = utils.g...
def scan(target_data, config): if not utils.validate_target(target_data["target"], config): return False target = target_data["target"] scan_id = target_data["scan_id"] agentConfig = target_data["agent_config"] command = command_builder(scan_id, agentConfig, target) scan_dir = utils.g...
https://github.com/natlas/natlas/issues/412
[2020-07-25 00:22:59,784] ERROR in app: Exception on /api/submit [POST] Traceback (most recent call last): File "/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request rv...
PIL.UnidentifiedImageError
def create_thumbnail(fname, file_ext): thumb_size = (255, 160) thumb = Image.open(fname) thumb.thumbnail(thumb_size) thumb_hash = hashlib.sha256(thumb.tobytes()).hexdigest() fname = get_file_path(thumb_hash, "thumbs", file_ext) thumb.save(fname) thumb.close() return thumb_hash
def create_thumbnail(fname, file_ext): thumb_size = (255, 160) thumb = Image.open(fname) thumb.thumbnail(thumb_size) thumb_hash = hashlib.sha256(thumb.tobytes()).hexdigest() thumbhashpath = f"{thumb_hash[0:2]}/{thumb_hash[2:4]}" thumbpath = os.path.join( current_app.config["MEDIA_DIRECTO...
https://github.com/natlas/natlas/issues/412
[2020-07-25 00:22:59,784] ERROR in app: Exception on /api/submit [POST] Traceback (most recent call last): File "/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request rv...
PIL.UnidentifiedImageError
def process_screenshots(screenshots: list) -> tuple: processed_screenshots = [] for item in screenshots: screenshot = process_screenshot(item) if not screenshot: current_app.logger.warning( f"Received invalid image for {screenshot['hostname']} port {screenshot['port']...
def process_screenshots(screenshots): # Handle screenshots num_screenshots = 0 for item in screenshots: if item["service"] == "VNC": file_ext = ".jpg" else: # Handles http, https files from aquatone/chromium-headless file_ext = ".png" image = base64.b64deco...
https://github.com/natlas/natlas/issues/412
[2020-07-25 00:22:59,784] ERROR in app: Exception on /api/submit [POST] Traceback (most recent call last): File "/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request rv...
PIL.UnidentifiedImageError
def _initialize_indices(self): """Check each required index and make sure it exists, if it doesn't then create it""" for index in self.natlasIndices: if not self.es.indices.exists(index): self.es.indices.create(index) # Avoid a race condition time.sleep(2) for index in self.nat...
def _initialize_indices(self): """Check each required index and make sure it exists, if it doesn't then create it""" for index in self.natlasIndices: if not self.es.indices.exists(index): self.es.indices.create(index) # Avoid a race condition time.sleep(2) for index in self.nat...
https://github.com/natlas/natlas/issues/311
172.18.0.1 - - [26/Jun/2020 08:50:28] "POST /admin/scans/delete/60ab2a6a40250d8c6c13e9f6d1a39e84 HTTP/1.1" 500 - Traceback (most recent call last): File "/.venv/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__ return self.wsgi_app(environ, start_response) File "/.venv/lib/python3.8/site-packages/flask/...
KeyError
def execute_delete_by_query(self, **kwargs): """Executes an arbitrary delete_by_query.""" with self._new_trace_span(operation="delete_by", **kwargs): results = self._execute_raw_query( self.es.delete_by_query, doc_type="_doc", **kwargs ) return results
def execute_delete_by_query(self, **kwargs): """Executes an arbitrary delete_by_query.""" with self._new_trace_span(operation="delete_by", **kwargs) as span: results = self._execute_raw_query( self.es.delete_by_query, doc_type="_doc", **kwargs ) self._attach_shard_span_attrs(...
https://github.com/natlas/natlas/issues/311
172.18.0.1 - - [26/Jun/2020 08:50:28] "POST /admin/scans/delete/60ab2a6a40250d8c6c13e9f6d1a39e84 HTTP/1.1" 500 - Traceback (most recent call last): File "/.venv/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__ return self.wsgi_app(environ, start_response) File "/.venv/lib/python3.8/site-packages/flask/...
KeyError
def create_app(config_class=Config, load_config=False): initialize_sentryio(config_class) app = Flask(__name__) app.config.from_object(Config) app.jinja_env.add_extension("jinja2.ext.do") db.init_app(app) migrate.init_app(app, db) login.init_app(app) mail.init_app(app) csrf.init_app...
def create_app(config_class=Config, load_config=False): initialize_sentryio(config_class) app = Flask(__name__) app.config.from_object(Config) app.jinja_env.add_extension("jinja2.ext.do") db.init_app(app) migrate.init_app(app, db) login.init_app(app) mail.init_app(app) csrf.init_app...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def admin(): configForm = forms.ConfigForm() configItems = current_app.config if configForm.validate_on_submit(): for fieldname, fieldvalue in configForm.data.items(): if fieldname.upper() in ["SUBMIT", "CSRF_TOKEN"]: continue current_app.config[fieldname.uppe...
def admin(): configForm = forms.ConfigForm() configItems = current_app.config if configForm.validate_on_submit(): for fieldname, fieldvalue in configForm.data.items(): if fieldname.upper() in ["SUBMIT", "CSRF_TOKEN"]: continue # if we've got a new elasticsearc...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def deleteScan(scan_id): delForm = forms.DeleteForm() if delForm.validate_on_submit(): deleted = current_app.elastic.delete_scan(scan_id) if deleted in [1, 2]: flash("Successfully deleted scan %s." % scan_id, "success") if request.referrer: if scan_id in ...
def deleteScan(scan_id): delForm = forms.DeleteForm() if delForm.validate_on_submit(): deleted = current_app.elastic.delete_scan(scan_id) if deleted in [1, 2]: flash("Successfully deleted scan %s." % scan_id, "success") if request.referrer: if scan_id in ...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def deleteHost(ip): delForm = forms.DeleteForm() if delForm.validate_on_submit(): deleted = current_app.elastic.delete_host(ip) if deleted > 0: flash( f"Successfully deleted {deleted - 1 if deleted > 1 else deleted} scans for {ip}", "success", ...
def deleteHost(ip): delForm = forms.DeleteForm() if delForm.validate_on_submit(): deleted = current_app.elastic.delete_host(ip) if deleted > 0: flash("Successfully deleted host %s" % ip, "success") return redirect(url_for("main.search")) else: flash("...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def get_unique_scan_id(): scan_id = "" while scan_id == "": rand = "".join( random.choice(string.ascii_lowercase + string.digits) for _ in range(16) ) count, context = current_app.elastic.get_host_by_scan_id(rand) if count == 0: scan_id = rand return s...
def get_unique_scan_id(): scan_id = "" while scan_id == "": rand = "".join( random.choice(string.ascii_lowercase + string.digits) for _ in range(16) ) count, context = current_app.elastic.gethost_scan_id(rand) if count == 0: scan_id = rand return scan_...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def submit(): status_code = None response_body = None data = request.get_json() newhost = {} newhost = json.loads(data) newhost["ctime"] = dt.now(tz.utc) if newhost["scan_reason"] == "requested": mark_scan_completed(newhost["ip"], newhost["scan_id"]) try: nmap = NmapPars...
def submit(): status_code = None response_body = None data = request.get_json() newhost = {} newhost = json.loads(data) newhost["ctime"] = dt.now(tz.utc) if newhost["scan_reason"] == "requested": mark_scan_completed(newhost["ip"], newhost["scan_id"]) try: nmap = NmapPars...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def host_history(ip): info, context = hostinfo(ip) page = int(request.args.get("p", 1)) searchOffset = current_user.results_per_page * (page - 1) delHostForm = DeleteForm() rescanForm = RescanForm() count, context = current_app.elastic.get_host_history( ip, current_user.results_per_pag...
def host_history(ip): info, context = hostinfo(ip) page = int(request.args.get("p", 1)) searchOffset = current_user.results_per_page * (page - 1) delHostForm = DeleteForm() rescanForm = RescanForm() count, context = current_app.elastic.gethost_history( ip, current_user.results_per_page...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def host_historical_result(ip, scan_id): delForm = DeleteForm() delHostForm = DeleteForm() rescanForm = RescanForm() info, context = hostinfo(ip) count, context = current_app.elastic.get_host_by_scan_id(scan_id) version = determine_data_version(context) template_str = f"host/versions/{versi...
def host_historical_result(ip, scan_id): delForm = DeleteForm() delHostForm = DeleteForm() rescanForm = RescanForm() info, context = hostinfo(ip) count, context = current_app.elastic.gethost_scan_id(scan_id) version = determine_data_version(context) template_str = f"host/versions/{version}/...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def export_scan(ip, scan_id, ext): if ext not in ["xml", "nmap", "gnmap", "json"]: abort(404) export_field = f"{ext}_data" if ext == "json": mime = "application/json" else: mime = "text/plain" count, context = current_app.elastic.get_host_by_scan_id(scan_id) if ext == ...
def export_scan(ip, scan_id, ext): if ext not in ["xml", "nmap", "gnmap", "json"]: abort(404) export_field = f"{ext}_data" if ext == "json": mime = "application/json" else: mime = "text/plain" count, context = current_app.elastic.gethost_scan_id(scan_id) if ext == "jso...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def random_host(): random_host = current_app.elastic.random_host() # This would most likely occur when there are no hosts up in the index, so just throw a 404 if not random_host: abort(404) ip = random_host["ip"] info, context = hostinfo(ip) delForm = DeleteForm() delHostForm = Delet...
def random_host(): random_host = current_app.elastic.random_host() if not random_host: abort(404) ip = random_host["hits"]["hits"][0]["_source"]["ip"] info, context = hostinfo(ip) delForm = DeleteForm() delHostForm = DeleteForm() rescanForm = RescanForm() version = determine_dat...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def hostinfo(ip): hostinfo = {} count, context = current_app.elastic.get_host(ip) if count == 0: return abort(404) hostinfo["history"] = count screenshot_count = current_app.elastic.count_host_screenshots(ip) hostinfo["screenshot_count"] = screenshot_count screenshots = 0 screens...
def hostinfo(ip): hostinfo = {} count, context = current_app.elastic.gethost(ip) if count == 0: return abort(404) hostinfo["history"] = count screenshot_count = current_app.elastic.count_host_screenshots(ip) hostinfo["screenshot_count"] = screenshot_count screenshots = 0 screensh...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def index(): return redirect(url_for("main.browse"))
def index(): return redirect(url_for("main.search"))
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def search(): """Return search results for a given query""" query = request.args.get("query", "") page = int(request.args.get("page", 1)) format = request.args.get("format", "") scan_ids = request.args.get("includeScanIDs", "") includeHistory = request.args.get("includeHistory", False) resu...
def search(): query = request.args.get("query", "") page = int(request.args.get("page", 1)) format = request.args.get("format", "") scan_ids = request.args.get("includeScanIDs", "") includeHistory = request.args.get("includeHistory", False) results_per_page = current_user.results_per_page i...
https://github.com/natlas/natlas/issues/221
Nov 05 17:22:50 natlas-server bash[10026]: [2019-11-05 17:22:50,681] ERROR in app: Exception on /api/getwork [GET] Nov 05 17:22:50 natlas-server bash[10026]: Traceback (most recent call last): Nov 05 17:22:50 natlas-server bash[10026]: File "/opt/natlas/natlas-server/venv/lib/python3.6/site-packages/flask/app.py", li...
TypeError
def importScope(line, blacklist): failedImports = [] alreadyExists = [] successImports = [] if len(line.split(",")) > 1: ip = line.split(",")[0] tags = line.split(",")[1:] else: ip = line tags = [] if "/" not in ip: ip = ip + "/32" try: isVali...
def importScope(line, blacklist): failedImports = [] alreadyExists = [] successImports = [] if len(line.split(",")) > 1: ip = line.split(",")[0] tags = line.split(",")[1:] else: ip = line if "/" not in ip: ip = ip + "/32" try: isValid = ipaddress.ip_n...
https://github.com/natlas/natlas/issues/196
python3 add-scope.py --scope scope.txt --verbose Traceback (most recent call last): File "add-scope.py", line 58, in <module> main() File "add-scope.py", line 53, in main importScope(args.scope, False, args.verbose) File "add-scope.py", line 23, in importScope fail, exist, success = ScopeItem.importScope(line, blackli...
UnboundLocalError
def scan(target_data=None): if not validate_target(target_data["target"]): return ERR["INVALIDTARGET"] result = {} # If agent authentication is required, this agent id has to match a server side agent id # If it's not required and an agent_id is set, we'll use that in scan data # If it's n...
def scan(target_data=None): if not validate_target(target_data["target"]): return ERR["INVALIDTARGET"] result = {} # If agent authentication is required, this agent id has to match a server side agent id # If it's not required and an agent_id is set, we'll use that in scan data # If it's n...
https://github.com/natlas/natlas/issues/169
[+] Thread-1: Fetching Target from https://natlas.io [+] Thread-1: [Server] Target: 191.222.148.70 [+] Thread-1: Scan fdrvra799fodfg4e Complete Exception in thread Thread-1: Traceback (most recent call last): File "/opt/natlas/natlas-agent/venv/lib/python3.6/site-packages/libnmap/parser.py", line 90, in _parse_xml root...
xml.etree.ElementTree.ParseError
def cleanup_files(scan_id): print_info("Cleaning up files for %s" % scan_id) if os.path.isdir("data/aquatone.%s" % scan_id): shutil.rmtree("data/aquatone.%s" % scan_id) for file in glob.glob("data/natlas." + scan_id + ".*"): try: os.remove(file) except: print_...
def cleanup_files(scan_id): print_info("Cleaning up files for %s" % scan_id) for file in glob.glob("data/*." + scan_id + ".*"): os.remove(file)
https://github.com/natlas/natlas/issues/157
[!] (3ud7hcwtnz) Killing slacker process [!] Thread-2: Failed to acquire HTTPS screenshot for 178.128.187.177 [+] Thread-2: Cleaning up files for 3ud7hcwtnz Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "./natlas-ag...
IsADirectoryError
def scan(target_data=None): if not validate_target(target_data["target"]): return ERR["INVALIDTARGET"] result = {} # If agent authentication is required, this agent id has to match a server side agent id # If it's not required and an agent_id is set, we'll use that in scan data # If it's n...
def scan(target_data=None): if not validate_target(target_data["target"]): return ERR["INVALIDTARGET"] result = {} # If agent authentication is required, this agent id has to match a server side agent id # If it's not required and an agent_id is set, we'll use that in scan data # If it's n...
https://github.com/natlas/natlas/issues/157
[!] (3ud7hcwtnz) Killing slacker process [!] Thread-2: Failed to acquire HTTPS screenshot for 178.128.187.177 [+] Thread-2: Cleaning up files for 3ud7hcwtnz Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "./natlas-ag...
IsADirectoryError
def backoff_request(giveup=False, *args, **kwargs): attempt = 0 result = None while not result: result = make_request(*args, **kwargs) RETRY = False if not result: RETRY = True elif "retry" in result.json() and result.json()["retry"]: RETRY = True ...
def backoff_request(giveup=False, *args, **kwargs): attempt = 0 result = None while not result: result = make_request(*args, **kwargs) RETRY = False if not result: RETRY = True if "retry" in result.json() and result.json()["retry"]: RETRY = True ...
https://github.com/natlas/natlas/issues/155
[!] Thread-2: Expected 200, received 502 [!] Thread-2: Error: Expecting value: line 1 column 1 (char 0) Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "./natlas-agent.py", line 359, in run result = scan(target_data) ...
AttributeError
def create_data_iters_and_vocabs( args: argparse.Namespace, max_seq_len_source: int, max_seq_len_target: int, shared_vocab: bool, resume_training: bool, output_folder: str, ) -> Tuple[ "data_io.BaseParallelSampleIter", "data_io.BaseParallelSampleIter", "data_io.DataConfig", List[...
def create_data_iters_and_vocabs( args: argparse.Namespace, max_seq_len_source: int, max_seq_len_target: int, shared_vocab: bool, resume_training: bool, output_folder: str, ) -> Tuple[ "data_io.BaseParallelSampleIter", "data_io.BaseParallelSampleIter", "data_io.DataConfig", List[...
https://github.com/awslabs/sockeye/issues/513
[INFO:sockeye.training] Checkpoint [1] Train-perplexity=928.900834 infer_shape error. Arguments: source: (10, 10, 1) target: (10, 10) target_label: (10, 10) [ERROR:__main__] Uncaught exception Traceback (most recent call last): File "/Users/fhieber/miniconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main "_...
mxnet.base.MXNetError
def trending(self, count=30, minCursor=0, maxCursor=0, **kwargs) -> dict: """ Gets trending TikToks """ ( region, language, proxy, maxCount, did, ) = self.__process_kwargs__(kwargs) kwargs["custom_did"] = did response = [] first = True while ...
def trending(self, count=30, minCursor=0, maxCursor=0, **kwargs) -> dict: """ Gets trending TikToks """ ( region, language, proxy, maxCount, did, ) = self.__process_kwargs__(kwargs) kwargs["custom_did"] = did response = [] first = True while ...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def getUser(self, username, **kwargs) -> dict: """Gets the full exposed user object :param username: The username of the user. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
def getUser(self, username, **kwargs) -> dict: """Gets the full exposed user object :param username: The username of the user. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def update_messager(): if not check("TikTokApi"): # Outdated print( "TikTokApi package is outdated, please consider upgrading! \n(You can suppress this by setting ignore_version=True in the TikTokApi constructor)" ) if not check_future_deprecation(): print( ...
def update_messager(): # if not check("TikTokApi"): # Outdated # print("TikTokApi package is outdated, please consider upgrading! \n(You can suppress this by setting ignore_version to True while calling the TikTok Api class)") if not check_future_deprecation(): print( "Your versi...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def __init__(self, **kwargs): """The TikTokApi class. Used to interact with TikTok. :param logging_level: The logging level you want the program to run at :param request_delay: The amount of time to wait before making a request. :param executablePath: The location of the chromedriver.exe """ # ...
def __init__(self, **kwargs): """The TikTokApi class. Used to interact with TikTok. :param logging_level: The logging level you want the program to run at :param request_delay: The amount of time to wait before making a request. :param executablePath: The location of the chromedriver.exe """ # ...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def getMusicObject(self, id, **kwargs) -> dict: """Returns a music object for a specific sound id. :param id: The sound id to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to ma...
def getMusicObject(self, id, **kwargs) -> dict: """Returns a music object for a specific sound id. :param id: The sound id to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to ma...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def getHashtagObject(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make requests...
def getHashtagObject(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make requests...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def getHashtagDetails(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
def getHashtagDetails(self, hashtag, **kwargs) -> dict: """Returns a hashtag object. :param hashtag: The hashtag to search by. :param language: The 2 letter code of the language to return. Note: Doesn't seem to have an affect. :param proxy: The IP address of a proxy to make request...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError
def __add_new_params__(self) -> str: query = { "aid": 1988, "app_name": "tiktok_web", "device_platform": "web", "referer": "https://www.tiktok.com/", "user_agent": self.__format_new_params__(self.userAgent), "cookie_enabled": "true", "screen_width": self.width...
def __add_new_params__(self) -> str: query = { "aid": 1988, "app_name": "tiktok_web", "device_platform": "web", "referer": "https://www.tiktok.com/", "user_agent": self.__format_new_params__(self.userAgent), "cookie_enabled": "true", "screen_width": self.width...
https://github.com/davidteather/TikTok-Api/issues/338
Invalid Response Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 162, in getData return r.json() File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/pytho...
json.decoder.JSONDecodeError