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 accept_worker(): while True: try: sock, (other_host, other_port) = listener.accept() except OSError: # Listener socket has been closed. break log.info( "Accepted incoming {0} connection from {1}:{2}.", name, other_h...
def accept_worker(): while True: try: sock, (other_host, other_port) = cls.listener.accept() except OSError: # Listener socket has been closed. break log.info( "Accepted incoming {0} connection from {1}:{2}.", name, oth...
https://github.com/microsoft/debugpy/issues/20
C:\Python37\python.exe c:\Users\kanadig\.vscode\extensions\ms-python.python-2020.2.60897-dev\pythonFiles\lib\python\new_ptvsd\wheels\ptvsd\launcher C:\GIT\issues\issue9214/test_mp.py Could not connect to 127.0.0.1: 50734 Traceback (most recent call last): File "c:\Users\kanadig\.vscode\extensions\ms-python.python-2020....
ConnectionRefusedError
def add_policy(bundle): request_inputs = anchore_engine.apis.do_request_prep(request, default_params={}) bodycontent = request_inputs["bodycontent"] params = request_inputs["params"] return_object = [] httpcode = 500 userId = request_inputs["userId"] try: logger.debug("Adding polic...
def add_policy(bundle): request_inputs = anchore_engine.apis.do_request_prep(request, default_params={}) bodycontent = request_inputs["bodycontent"] params = request_inputs["params"] return_object = [] httpcode = 500 userId = request_inputs["userId"] try: logger.debug("Adding polic...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def delete_image(user_id, image_id): """ DELETE the image and all resources for it. Returns 204 - No Content on success :param user_id: :param image_id: :return: """ db = get_session() try: log.info( "Deleting image {}/{} and all associated resources".format( ...
def delete_image(user_id, image_id): """ DELETE the image and all resources for it. Returns 204 - No Content on success :param user_id: :param image_id: :return: """ db = get_session() try: log.info( "Deleting image {}/{} and all associated resources".format( ...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def check_user_image_inline(user_id, image_id, tag, bundle): """ Execute a policy evaluation using the info in the request body including the bundle content :param user_id: :param image_id: :param tag: :param bundle: :return: """ timer = time.time() db = get_session() cache...
def check_user_image_inline(user_id, image_id, tag, bundle): """ Execute a policy evaluation using the info in the request body including the bundle content :param user_id: :param image_id: :param tag: :param bundle: :return: """ timer = time.time() db = get_session() cache...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def get_image_vulnerabilities(user_id, image_id, force_refresh=False, vendor_only=True): """ Return the vulnerability listing for the specified image and load from catalog if not found and specifically asked to do so. Example json output: { "multi" : { "url_column_index" : 7, ...
def get_image_vulnerabilities(user_id, image_id, force_refresh=False, vendor_only=True): """ Return the vulnerability listing for the specified image and load from catalog if not found and specifically asked to do so. Example json output: { "multi" : { "url_column_index" : 7, ...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def __init__(self, parent, policy_json=None): super(ExecutablePolicyRule, self).__init__(parent, policy_json) # Configure the trigger instance try: self.gate_cls = Gate.get_gate_by_name(self.gate_name) except KeyError: # Gate not found self.error_exc = GateNotFoundError( ...
def __init__(self, parent, policy_json=None): super(ExecutablePolicyRule, self).__init__(parent, policy_json) # Configure the trigger instance try: self.gate_cls = Gate.get_gate_by_name(self.gate_name) except KeyError: # Gate not found self.error_exc = GateNotFoundError( ...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def execute(self, image_obj, exec_context): """ Execute the trigger specified in the rule with the image and gate (for prepared context) and exec_context) :param image_obj: The image to execute against :param exec_context: The prepared execution context from the gate init :return: a tuple of a list...
def execute(self, image_obj, exec_context): """ Execute the trigger specified in the rule with the image and gate (for prepared context) and exec_context) :param image_obj: The image to execute against :param exec_context: The prepared execution context from the gate init :return: a tuple of a list...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def build_empty_error_execution(image_obj, tag, bundle, errors=None, warnings=None): """ Creates an empty BundleExecution suitable for use in error cases where the bundle was not actually run but this object is needed to populate errors and warnings for return. :param image_obj: :param tag: :pa...
def build_empty_error_execution(image_obj, tag, bundle, errors=None, warnings=None): """ Creates an empty BundleExecution suitable for use in error cases where the bundle was not actually run but this object is needed to populate errors and warnings for return. :param image_obj: :param tag: :pa...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def __init__(self, trigger, message=None): params = {x.name: x.value() for x in trigger.parameters().values()} trigger_name = trigger.__trigger_name__ if trigger else "unset" gate_name = ( trigger.gate_cls.__gate_name__ if trigger and trigger.gate_cls else "unset" ) msg = "Trigger evaluation...
def __init__(self, trigger, message=None): params = trigger.eval_params if trigger and trigger.eval_params else [] trigger_name = trigger.__trigger_name__ if trigger else "unset" gate_name = ( trigger.gate_cls.__gate_name__ if trigger and trigger.gate_cls else "unset" ) msg = "Trigger evalua...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def __init__(self, parent_gate_cls, rule_id=None, **kwargs): """ Instantiate the trigger with a specific set of parameters. Does not evaluate the trigger, just configures it for execution. """ self.gate_cls = parent_gate_cls self.msg = None self._fired_instances = [] self.rule_id = rule_...
def __init__(self, parent_gate_cls, rule_id=None, **kwargs): """ Instantiate the trigger with a specific set of parameters. Does not evaluate the trigger, just configures it for execution. """ self.gate_cls = parent_gate_cls self.msg = None self.eval_params = {} self._fired_instances = [...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def execute(self, image_obj, context): """ Main entry point for the trigger execution. Will clear any previously saved exec state and call the evaluate() function. :param image_obj: :param context: :return: """ self.reset() if ( self.gate_cls.__lifecycle_state__ != LifecycleStat...
def execute(self, image_obj, context): """ Main entry point for the trigger execution. Will clear any previously saved exec state and call the evaluate() function. :param image_obj: :param context: :return: """ self.reset() if ( self.gate_cls.__lifecycle_state__ != LifecycleStat...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def evaluate(self, image_obj, context): attr = self.attribute.value() check = self.check.value() rval = self.check_value.value() if not attr or not check: return op = self.__ops__.get(check) if op is None or op.requires_rvalue and not rval: # Raise exception or fall thru ...
def evaluate(self, image_obj, context): attr = self.attribute.value() check = self.check.value() rval = self.check_value.value() if not attr or not check: return op = self.__ops__.get(check) if op is None or op.requires_rvalue and not rval: # Raise exception or fall thru ...
https://github.com/anchore/anchore-engine/issues/124
engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] Traceback (most recent call last): engine-policy-engine_1 | [service:policy-engine] 2019-01-11 05:49:12+0000 [-] File "/usr/local/lib/python3.6/dist-packages/anchore_engine/services/policy_engine/engine/policy/gate.py", line 234, in execu...
ValueError
def register_predictors(self, model_data_arr, setup=True): it = self._get_integrations() for integration in it: register = True if setup: register = self._setup_integration(integration) if register: if integration.check_connection(): integration.re...
def register_predictors(self, model_data_arr, setup=True): it = self._get_integrations() for integration in it: register = True if setup: register = self._setup_integration(integration) if register: integration.register_predictors(model_data_arr) integrat...
https://github.com/mindsdb/mindsdb/issues/1007
[2020-12-14 10:40:17,942] ERROR in app: Exception on /api/predictors/home_initial [DELETE] Traceback (most recent call last): File "/Users/alejo/Documents/mindsdb/venv-mindsdb/lib/python3.8/site-packages/mysql/connector/connection_cext.py", line 233, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connect...
_mysql_connector.MySQLInterfaceError
def unregister_predictor(self, name): for integration in self._get_integrations(): if integration.check_connection(): integration.unregister_predictor(name) else: logger.warning( f"There is no connection to {integration.name}. predictor wouldn't be unregistred...
def unregister_predictor(self, name): for integration in self._get_integrations(): integration.unregister_predictor(name)
https://github.com/mindsdb/mindsdb/issues/1007
[2020-12-14 10:40:17,942] ERROR in app: Exception on /api/predictors/home_initial [DELETE] Traceback (most recent call last): File "/Users/alejo/Documents/mindsdb/venv-mindsdb/lib/python3.8/site-packages/mysql/connector/connection_cext.py", line 233, in _open_connection self._cmysql.connect(**cnx_kwargs) _mysql_connect...
_mysql_connector.MySQLInterfaceError
def get(self, name): try: if is_custom(name): model = ca.custom_models.get_model_data(name) else: model = ca.mindsdb_native.get_model_data(name, native_view=True) except Exception as e: abort(404, "") for k in ["train_end_at", "updated_at", "created_at"]: ...
def get(self, name): try: if is_custom(name): model = ca.custom_models.get_model_data(name) else: model = ca.mindsdb_native.get_model_data(name) except Exception as e: abort(404, "") for k in ["train_end_at", "updated_at", "created_at"]: if k in model...
https://github.com/mindsdb/mindsdb/issues/928
'typing' ERROR while fetching data for query: SELECT `satisfaction`, `satisfaction_confidence` FROM `mindsdb`.`airline_data` WHERE ((`age` = 30)) Traceback (most recent call last): File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 68,...
KeyError
def get(self, name): """List of predictors colums""" try: if is_custom(name): model = ca.custom_models.get_model_data(name) else: model = ca.mindsdb_native.get_model_data(name, native_view=True) except Exception: abort(404, "Invalid predictor name") colum...
def get(self, name): """List of predictors colums""" try: if is_custom(name): model = ca.custom_models.get_model_data(name) else: model = ca.mindsdb_native.get_model_data(name) except Exception: abort(404, "Invalid predictor name") columns = [] for ar...
https://github.com/mindsdb/mindsdb/issues/928
'typing' ERROR while fetching data for query: SELECT `satisfaction`, `satisfaction_confidence` FROM `mindsdb`.`airline_data` WHERE ((`age` = 30)) Traceback (most recent call last): File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 68,...
KeyError
def cast_df_columns_types(df, stats): types_map = { DATA_TYPES.NUMERIC: { DATA_SUBTYPES.INT: "int64", DATA_SUBTYPES.FLOAT: "float64", DATA_SUBTYPES.BINARY: "bool", }, DATA_TYPES.DATE: { DATA_SUBTYPES.DATE: "datetime64", # YYYY-MM-DD ...
def cast_df_columns_types(df, stats): types_map = { DATA_TYPES.NUMERIC: { DATA_SUBTYPES.INT: "int64", DATA_SUBTYPES.FLOAT: "float64", DATA_SUBTYPES.BINARY: "bool", }, DATA_TYPES.DATE: { DATA_SUBTYPES.DATE: "datetime64", # YYYY-MM-DD ...
https://github.com/mindsdb/mindsdb/issues/928
'typing' ERROR while fetching data for query: SELECT `satisfaction`, `satisfaction_confidence` FROM `mindsdb`.`airline_data` WHERE ((`age` = 30)) Traceback (most recent call last): File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 68,...
KeyError
def get_model_data(self, name, native_view=False): model = F.get_model_data(name) if native_view: return model data_analysis = model["data_analysis_v2"] for column in data_analysis["columns"]: if len(data_analysis[column]) == 0 or data_analysis[column].get( "empty", {} ...
def get_model_data(self, name): return F.get_model_data(name)
https://github.com/mindsdb/mindsdb/issues/928
'typing' ERROR while fetching data for query: SELECT `satisfaction`, `satisfaction_confidence` FROM `mindsdb`.`airline_data` WHERE ((`age` = 30)) Traceback (most recent call last): File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 68,...
KeyError
def cast_df_columns_types(df, stats): types_map = { DATA_TYPES.NUMERIC: { DATA_SUBTYPES.INT: "int64", DATA_SUBTYPES.FLOAT: "float64", DATA_SUBTYPES.BINARY: "bool", }, DATA_TYPES.DATE: { DATA_SUBTYPES.DATE: "datetime64", # YYYY-MM-DD ...
def cast_df_columns_types(df, stats): types_map = { DATA_TYPES.NUMERIC: { DATA_SUBTYPES.INT: "int64", DATA_SUBTYPES.FLOAT: "float64", DATA_SUBTYPES.BINARY: "bool", }, DATA_TYPES.DATE: { DATA_SUBTYPES.DATE: "datetime64", # YYYY-MM-DD ...
https://github.com/mindsdb/mindsdb/issues/911
Traceback (most recent call last): File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/home/zoran/MyProjects/mindsdb-examples/mdb/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request ret...
UnboundLocalError
def put(self, name): """add new datasource""" data = {} def on_field(field): print(f"\n\n{field}\n\n") name = field.field_name.decode() value = field.value.decode() data[name] = value file_object = None def on_file(file): nonlocal file_object data["...
def put(self, name): """add new datasource""" data = {} def on_field(field): print(f"\n\n{field}\n\n") name = field.field_name.decode() value = field.value.decode() data[name] = value def on_file(file): data["file"] = file.file_name.decode() temp_dir_path =...
https://github.com/mindsdb/mindsdb/issues/638
Exception on /datasources/Somedata [PUT] Traceback (most recent call last): File "C:\Users\jp299\AppData\Roaming\mindsdb_gui\mindsdb_server\env\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\jp299\AppData\Roaming\mindsdb_gui\mindsdb_server\env\lib\site-p...
PermissionError
def on_file(file): nonlocal file_object data["file"] = file.file_name.decode() file_object = file.file_object
def on_file(file): data["file"] = file.file_name.decode()
https://github.com/mindsdb/mindsdb/issues/638
Exception on /datasources/Somedata [PUT] Traceback (most recent call last): File "C:\Users\jp299\AppData\Roaming\mindsdb_gui\mindsdb_server\env\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\jp299\AppData\Roaming\mindsdb_gui\mindsdb_server\env\lib\site-p...
PermissionError
def save_datasource(self, name, source_type, source, file_path=None): if source_type == "file" and (file_path is None): raise Exception('`file_path` argument required when source_type == "file"') for i in range(1, 1000): if name in [x["name"] for x in self.get_datasources()]: previo...
def save_datasource(self, name, source_type, source, file_path=None): if source_type == "file" and (file_path is None): raise Exception('`file_path` argument required when source_type == "file"') for i in range(1, 1000): if name in [x["name"] for x in self.get_datasources()]: previo...
https://github.com/mindsdb/mindsdb/issues/638
Exception on /datasources/Somedata [PUT] Traceback (most recent call last): File "C:\Users\jp299\AppData\Roaming\mindsdb_gui\mindsdb_server\env\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\jp299\AppData\Roaming\mindsdb_gui\mindsdb_server\env\lib\site-p...
PermissionError
def register_predictors(self, model_data_arr): for model_meta in model_data_arr: name = self._escape_table_name(model_meta["name"]) stats = model_meta["data_analysis"] if "columns_to_ignore" in stats: del stats["columns_to_ignore"] columns_sql = ",".join(self._to_clickhou...
def register_predictors(self, model_data_arr): for model_meta in model_data_arr: name = model_meta["name"] stats = model_meta["data_analysis"] if "columns_to_ignore" in stats: del stats["columns_to_ignore"] columns_sql = ",".join(self._to_clickhouse_table(stats, model_met...
https://github.com/mindsdb/mindsdb/issues/593
Using configuration file: config.json Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/zoran/MyProjects/mindsdb/mindsdb/__main__.py", lin...
Exception
def unregister_predictor(self, name): q = f""" drop table if exists mindsdb.{self._escape_table_name(name)}; """ self._query(q)
def unregister_predictor(self, name): q = f""" drop table if exists mindsdb.{name}; """ self._query(q)
https://github.com/mindsdb/mindsdb/issues/593
Using configuration file: config.json Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/zoran/MyProjects/mindsdb/mindsdb/__main__.py", lin...
Exception
def register_predictors(self, model_data_arr): for model_meta in model_data_arr: name = model_meta["name"] stats = model_meta["data_analysis"] columns_sql = ",".join(self._to_mariadb_table(stats, model_meta["predict"])) columns_sql += ",`select_data_query` varchar(500)" colum...
def register_predictors(self, model_data_arr): for model_meta in model_data_arr: name = model_meta["name"] stats = model_meta["data_analysis"] columns_sql = ",".join(self._to_mariadb_table(stats, model_meta["predict"])) columns_sql += ",`select_data_query` varchar(500)" colum...
https://github.com/mindsdb/mindsdb/issues/593
Using configuration file: config.json Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/zoran/MyProjects/mindsdb/mindsdb/__main__.py", lin...
Exception
def save_datasource(self, name, source_type, source, file_path=None): if source_type == "file" and (file_path is None): raise Exception('`file_path` argument required when source_type == "file"') for i in range(1, 1000): if name in [x["name"] for x in self.get_datasources()]: previo...
def save_datasource(self, name, source_type, source, file_path=None): if source_type == "file" and (file_path is None): raise Exception('`file_path` argument required when source_type == "file"') for i in range(1, 1000): if name in [x["name"] for x in self.get_datasources()]: previo...
https://github.com/mindsdb/mindsdb/issues/593
Using configuration file: config.json Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/zoran/MyProjects/mindsdb/mindsdb/__main__.py", lin...
Exception
def loadFromPacketString(self, packet_string): len_header = struct.unpack(">i", struct.pack("1s", "") + packet_string[:3])[0] count_header = struct.unpack("B", packet_string[3])[0] body = packet_string[4:] self.loadFromParams(length=len_header, seq=count_header, body=body)
def loadFromPacketString(self, packet_string): len_header = struct.unpack(">i", struct.pack("1s", "") + packet_string[:3])[0] count_header = struct.unpack("b", packet_string[3])[0] body = packet_string[4:] self.loadFromParams(length=len_header, seq=count_header, body=body)
https://github.com/mindsdb/mindsdb/issues/530
2020-06-25 21:34:22,721 - ERROR - ERROR while executing query: SELECT `rental_price`, `$select_data_query` FROM `demo_rental_price_predictor_mariadb` WHERE $select_data_query= 'SELECT * FROM test.home_rentals limit 1000' Traceback (most recent call last): File "/home/george/mindsdb/mindsdb/api/mysql/mysql_proxy/mysql_p...
struct.error
def getPacketString(self): body = self.body len_header = struct.pack("<i", self.length)[:3] # keep it 3 bytes count_header = struct.pack("B", self.seq) packet = len_header + count_header + body return packet
def getPacketString(self): body = self.body len_header = struct.pack("<i", self.length)[:3] # keep it 3 bytes count_header = struct.pack("b", self.seq) packet = len_header + count_header + body return packet
https://github.com/mindsdb/mindsdb/issues/530
2020-06-25 21:34:22,721 - ERROR - ERROR while executing query: SELECT `rental_price`, `$select_data_query` FROM `demo_rental_price_predictor_mariadb` WHERE $select_data_query= 'SELECT * FROM test.home_rentals limit 1000' Traceback (most recent call last): File "/home/george/mindsdb/mindsdb/api/mysql/mysql_proxy/mysql_p...
struct.error
def get(self): self.session.logging.info(f"Get packet: {self.__class__.__name__}") len_header = MAX_PACKET_SIZE body = b"" count_header = 1 while len_header == MAX_PACKET_SIZE: packet_string = self.mysql_socket.recv(4) if len(packet_string) < 4: self.session.logging.warn...
def get(self): self.session.logging.info(f"Get packet: {self.__class__.__name__}") len_header = MAX_PACKET_SIZE body = b"" count_header = 1 while len_header == MAX_PACKET_SIZE: packet_string = self.mysql_socket.recv(4) if len(packet_string) < 4: self.session.logging.warn...
https://github.com/mindsdb/mindsdb/issues/530
2020-06-25 21:34:22,721 - ERROR - ERROR while executing query: SELECT `rental_price`, `$select_data_query` FROM `demo_rental_price_predictor_mariadb` WHERE $select_data_query= 'SELECT * FROM test.home_rentals limit 1000' Traceback (most recent call last): File "/home/george/mindsdb/mindsdb/api/mysql/mysql_proxy/mysql_p...
struct.error
def packet(self, packetClass=Packet, **kwargs): """ Factory method for packets :param packetClass: :param kwargs: :return: """ p = packetClass( socket=self.socket, seq=self.count, session=self.session, proxy=self, **kwargs ) self.count = (self.count + 1) % 256 return p
def packet(self, packetClass=Packet, **kwargs): """ Factory method for packets :param packetClass: :param kwargs: :return: """ p = packetClass( socket=self.socket, seq=self.count, session=self.session, proxy=self, **kwargs ) self.count += 1 return p
https://github.com/mindsdb/mindsdb/issues/530
2020-06-25 21:34:22,721 - ERROR - ERROR while executing query: SELECT `rental_price`, `$select_data_query` FROM `demo_rental_price_predictor_mariadb` WHERE $select_data_query= 'SELECT * FROM test.home_rentals limit 1000' Traceback (most recent call last): File "/home/george/mindsdb/mindsdb/api/mysql/mysql_proxy/mysql_p...
struct.error
def handshake(self): global HARDCODED_PASSWORD, HARDCODED_USER def switch_auth(method="mysql_native_password"): self.packet(SwitchOutPacket, seed=self.salt, method=method).send() switch_out_answer = self.packet(SwitchOutResponse) switch_out_answer.get() return switch_out_answer....
def handshake(self): global HARDCODED_PASSWORD, HARDCODED_USER def switch_auth(method="mysql_native_password"): self.packet(SwitchOutPacket, seed=self.salt, method=method).send() switch_out_answer = self.packet(SwitchOutResponse) switch_out_answer.get() return switch_out_answer....
https://github.com/mindsdb/mindsdb/issues/538
---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 43192) Traceback (most recent call last): File "/usr/lib/python3.7/socketserver.py", line 650, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.7/socketserver.py", lin...
AttributeError
def initialize_interfaces(config, app): app.default_store = DataStore(config) app.mindsdb_native = MindsdbNative(config)
def initialize_interfaces(config, app): with app.app_context(): g.default_store = DataStore(config) g.mindsdb_native = MindsdbNative(config)
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self): """List all datasources""" return ca.default_store.get_datasources()
def get(self): """List all datasources""" return g.default_store.get_datasources()
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): """return datasource metadata""" ds = ca.default_store.get_datasource(name) if ds is not None: return ds return "", 404
def get(self, name): """return datasource metadata""" ds = g.default_store.get_datasource(name) if ds is not None: return ds return "", 404
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def delete(self, name): """delete datasource""" try: ca.default_store.delete_datasource(name) except Exception as e: print(e) abort(400, str(e)) return "", 200
def delete(self, name): """delete datasource""" try: g.default_store.delete_datasource(name) except Exception as e: print(e) abort(400, str(e)) return "", 200
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def put(self, name): """add new datasource""" data = {} def on_field(field): print(f"\n\n{field}\n\n") name = field.field_name.decode() value = field.value.decode() data[name] = value def on_file(file): data["file"] = file.file_name.decode() temp_dir_path =...
def put(self, name): """add new datasource""" data = {} def on_field(field): print(f"\n\n{field}\n\n") name = field.field_name.decode() value = field.value.decode() data[name] = value def on_file(file): data["file"] = file.file_name.decode() temp_dir_path =...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): ds = ca.default_store.get_datasource(name) if ds is None: print("No valid datasource given") abort(400, "No valid datasource given") analysis = ca.default_store.get_analysis(ds["source"]) return analysis, 200
def get(self, name): ds = g.default_store.get_datasource(name) if ds is None: print("No valid datasource given") abort(400, "No valid datasource given") analysis = g.default_store.get_analysis(ds["source"]) return analysis, 200
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): ds = get_datasource(name) if ds is None: print("No valid datasource given") abort(400, "No valid datasource given") where = [] for key, value in request.args.items(): if key.startswith("filter"): param = parse_filter(key, value) if pa...
def get(self, name): ds = get_datasource(name) if ds is None: print("No valid datasource given") abort(400, "No valid datasource given") where = [] for key, value in request.args.items(): if key.startswith("filter"): param = parse_filter(key, value) if pa...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): """return data rows""" ds = ca.default_store.get_datasource(name) if ds is None: abort(400, "No valid datasource given") params = {"page[size]": None, "page[offset]": None} where = [] for key, value in request.args.items(): if key == "page[size]": ...
def get(self, name): """return data rows""" ds = g.default_store.get_datasource(name) if ds is None: abort(400, "No valid datasource given") params = {"page[size]": None, "page[offset]": None} where = [] for key, value in request.args.items(): if key == "page[size]": ...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): """download uploaded file""" ds = ca.default_store.get_datasource(name) if not ds: abort(404, "{} not found".format(name)) if not os.path.exists(ds["source"]): abort(404, "{} not found".format(name)) return send_file(os.path.abspath(ds["source"]), as_attachment=...
def get(self, name): """download uploaded file""" ds = g.default_store.get_datasource(name) if not ds: abort(404, "{} not found".format(name)) if not os.path.exists(ds["source"]): abort(404, "{} not found".format(name)) return send_file(os.path.abspath(ds["source"]), as_attachment=T...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self): """List all predictors""" return ca.mindsdb_native.get_models()
def get(self): """List all predictors""" return g.mindsdb_native.get_models()
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): try: model = ca.mindsdb_native.get_model_data(name) except Exception as e: abort(404, "") for k in ["train_end_at", "updated_at", "created_at"]: if k in model and model[k] is not None: model[k] = parse_datetime(model[k]) return model
def get(self, name): try: model = g.mindsdb_native.get_model_data(name) except Exception as e: abort(404, "") for k in ["train_end_at", "updated_at", "created_at"]: if k in model and model[k] is not None: model[k] = parse_datetime(model[k]) return model
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def delete(self, name): """Remove predictor""" ca.mindsdb_native.delete_model(name) return "", 200
def delete(self, name): """Remove predictor""" g.mindsdb_native.delete_model(name) return "", 200
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def put(self, name): """Learning new predictor""" global model_swapping_map data = request.json to_predict = data.get("to_predict") try: kwargs = data.get("kwargs") except: kwargs = None if type(kwargs) != type({}): kwargs = {} if "stop_training_in_x_seconds" ...
def put(self, name): """Learning new predictor""" global model_swapping_map data = request.json to_predict = data.get("to_predict") try: kwargs = data.get("kwargs") except: kwargs = None if type(kwargs) != type({}): kwargs = {} if "stop_training_in_x_seconds" ...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): """List of predictors colums""" try: model = ca.mindsdb_native.get_model_data(name) except Exception: abort(404, "Invalid predictor name") columns = [] for array, is_target_array in [ (model["data_analysis"]["target_columns_metadata"], True), (mo...
def get(self, name): """List of predictors colums""" try: model = g.mindsdb_native.get_model_data(name) except Exception: abort(404, "Invalid predictor name") columns = [] for array, is_target_array in [ (model["data_analysis"]["target_columns_metadata"], True), (mod...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def post(self, name): """Queries predictor""" global model_swapping_map data = request.json when = data.get("when") or {} try: format_flag = data.get("format_flag") except: format_flag = "explain" try: kwargs = data.get("kwargs") except: kwargs = {} ...
def post(self, name): """Queries predictor""" global model_swapping_map data = request.json when = data.get("when") or {} try: format_flag = data.get("format_flag") except: format_flag = "explain" try: kwargs = data.get("kwargs") except: kwargs = {} ...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def post(self, name): global model_swapping_map data = request.json from_data = ca.default_store.get_datasource_obj(data.get("data_source_name")) try: format_flag = data.get("format_flag") except: format_flag = "explain" try: kwargs = data.get("kwargs") except: ...
def post(self, name): global model_swapping_map data = request.json from_data = g.default_store.get_datasource_obj(data.get("data_source_name")) try: format_flag = data.get("format_flag") except: format_flag = "explain" try: kwargs = data.get("kwargs") except: ...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def post(self): """Upload existing predictor""" predictor_file = request.files["file"] # @TODO: Figure out how to remove fpath = os.path.join(mindsdb.CONFIG.MINDSDB_TEMP_PATH, "new.zip") with open(fpath, "wb") as f: f.write(predictor_file.read()) ca.mindsdb_native.load_model(fpath) ...
def post(self): """Upload existing predictor""" predictor_file = request.files["file"] # @TODO: Figure out how to remove fpath = os.path.join(mindsdb.CONFIG.MINDSDB_TEMP_PATH, "new.zip") with open(fpath, "wb") as f: f.write(predictor_file.read()) g.mindsdb_native.load_model(fpath) t...
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def get(self, name): """Export predictor to file""" try: new_name = request.args.get("new_name") ca.mindsdb_native.rename_model(name, new_name) except Exception as e: return str(e), 400 return f"Renamed model to {new_name}", 200
def get(self, name): """Export predictor to file""" try: new_name = request.args.get("new_name") g.mindsdb_native.rename_model(name, new_name) except Exception as e: return str(e), 400 return f"Renamed model to {new_name}", 200
https://github.com/mindsdb/mindsdb/issues/516
2020-06-25 14:30:32,318 - INFO - Starting MindsDB Mysql proxy server on tcp://127.0.0.1:47335 2020-06-25 14:30:32,334 - INFO - Waiting for incoming connections... 127.0.0.1 - - [25/Jun/2020 14:31:14] "GET /util/ping HTTP/1.1" 200 - Exception on /datasources/ [GET] Traceback (most recent call last): File "/home/zoran/My...
AttributeError
def configure(config): """ | name | example | purpose | | ---- | ------- | ------- | | enabled\\_by\\_default | True | Enable URL safety in all channels where it isn't explicitly disabled. | | known\\_good | sopel.chat,dftba.net | List of "known good" domains to ignore. | | vt\\_api\\_key | 0123...
def configure(config): """ | name | example | purpose | | ---- | ------- | ------- | | enabled\\_by\\_default | True | Enable URL safety in all channels where it isn't explicitly disabled. | | known\\_good | sopel.chat,dftba.net | List of "known good" domains to ignore. | | vt\\_api\\_key | 0123...
https://github.com/sopel-irc/sopel/issues/2008
[2020-12-22 13:35:56,136] sopel.modules.safety INFO - Downloading malwaredomains db from https://mirror1.malwaredomains.com/files/justdomains [2020-12-22 13:35:56,332] sopel.bot ERROR - Error in safety setup: HTTP Error 404: Not Found Traceback (most recent call last): File "/mnt/c/Users/dgw/github/so...
urllib.error.HTTPError
def setup(bot): bot.config.define_section("safety", SafetySection) if "safety_cache" not in bot.memory: bot.memory["safety_cache"] = tools.SopelMemory() if "safety_cache_lock" not in bot.memory: bot.memory["safety_cache_lock"] = threading.Lock() for item in bot.config.safety.known_good:...
def setup(bot): bot.config.define_section("safety", SafetySection) if "safety_cache" not in bot.memory: bot.memory["safety_cache"] = tools.SopelMemory() if "safety_cache_lock" not in bot.memory: bot.memory["safety_cache_lock"] = threading.Lock() for item in bot.config.safety.known_good:...
https://github.com/sopel-irc/sopel/issues/2008
[2020-12-22 13:35:56,136] sopel.modules.safety INFO - Downloading malwaredomains db from https://mirror1.malwaredomains.com/files/justdomains [2020-12-22 13:35:56,332] sopel.bot ERROR - Error in safety setup: HTTP Error 404: Not Found Traceback (most recent call last): File "/mnt/c/Users/dgw/github/so...
urllib.error.HTTPError
def url_handler(bot, trigger): """Checks for malicious URLs""" check = True # Enable URL checking strict = False # Strict mode: kick on malicious URL positives = 0 # Number of engines saying it's malicious total = 0 # Number of total engines use_vt = True # Use VirusTotal check = bot.co...
def url_handler(bot, trigger): """Checks for malicious URLs""" check = True # Enable URL checking strict = False # Strict mode: kick on malicious URL positives = 0 # Number of engines saying it's malicious total = 0 # Number of total engines use_vt = True # Use VirusTotal check = bot.co...
https://github.com/sopel-irc/sopel/issues/2008
[2020-12-22 13:35:56,136] sopel.modules.safety INFO - Downloading malwaredomains db from https://mirror1.malwaredomains.com/files/justdomains [2020-12-22 13:35:56,332] sopel.bot ERROR - Error in safety setup: HTTP Error 404: Not Found Traceback (most recent call last): File "/mnt/c/Users/dgw/github/so...
urllib.error.HTTPError
def url_handler(bot, trigger): """Checks for malicious URLs""" check = True # Enable URL checking strict = False # Strict mode: kick on malicious URL positives = 0 # Number of engines saying it's malicious total = 0 # Number of total engines use_vt = True # Use VirusTotal check = bot.co...
def url_handler(bot, trigger): """Checks for malicious URLs""" check = True # Enable URL checking strict = False # Strict mode: kick on malicious URL positives = 0 # Number of engines saying it's malicious total = 0 # Number of total engines use_vt = True # Use VirusTotal check = bot.co...
https://github.com/sopel-irc/sopel/issues/1850
[2020-04-21 21:47:29,752] sopel.bot ERROR - Unexpected error ('positives') from Ad at 2020-04-21 21:47:29.752477. Message was: https://www.cnn.com/2020/04/21/uk/uk-death-toll-coronavirus-statistics-gbr-intl/index.html Traceback (most recent call last): File "/home/sopel/.local/lib/python3.8/site-packages/...
KeyError
def __init__(self, config): # MySQL - mysql://username:password@localhost/db # SQLite - sqlite:////home/sopel/.sopel/default.db db_type = config.core.db_type # Handle SQLite explicitly as a default if db_type == "sqlite": path = config.core.db_filename config_dir, config_file = os.p...
def __init__(self, config): path = config.core.db_filename config_dir, config_file = os.path.split(config.filename) config_name, _ = os.path.splitext(config_file) if path is None: path = os.path.join(config_dir, config_name + ".db") path = os.path.expanduser(path) if not os.path.isabs(pa...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def connect(self): """Return a raw database connection object.""" return self.engine.connect()
def connect(self): """Return a raw database connection object.""" return sqlite3.connect(self.filename, timeout=10)
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def execute(self, *args, **kwargs): """Execute an arbitrary SQL query against the database. Returns a cursor object, on which things like `.fetchall()` can be called per PEP 249.""" with self.connect() as conn: return conn.execute(*args, **kwargs)
def execute(self, *args, **kwargs): """Execute an arbitrary SQL query against the database. Returns a cursor object, on which things like `.fetchall()` can be called per PEP 249.""" with self.connect() as conn: cur = conn.cursor() return cur.execute(*args, **kwargs)
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def get_nick_id(self, nick, create=True): """Return the internal identifier for a given nick. This identifier is unique to a user, and shared across all of that user's aliases. If create is True, a new ID will be created if one does not already exist""" session = self.ssession() slug = nick.low...
def get_nick_id(self, nick, create=True): """Return the internal identifier for a given nick. This identifier is unique to a user, and shared across all of that user's aliases. If create is True, a new ID will be created if one does not already exist""" slug = nick.lower() nick_id = self.execut...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def alias_nick(self, nick, alias): """Create an alias for a nick. Raises ValueError if the alias already exists. If nick does not already exist, it will be added along with the alias.""" nick = Identifier(nick) alias = Identifier(alias) nick_id = self.get_nick_id(nick) session = self.ssessi...
def alias_nick(self, nick, alias): """Create an alias for a nick. Raises ValueError if the alias already exists. If nick does not already exist, it will be added along with the alias.""" nick = Identifier(nick) alias = Identifier(alias) nick_id = self.get_nick_id(nick) sql = "INSERT INTO ni...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def set_nick_value(self, nick, key, value): """Sets the value for a given key to be associated with the nick.""" nick = Identifier(nick) value = json.dumps(value, ensure_ascii=False) nick_id = self.get_nick_id(nick) session = self.ssession() try: result = ( session.query(Nick...
def set_nick_value(self, nick, key, value): """Sets the value for a given key to be associated with the nick.""" nick = Identifier(nick) value = json.dumps(value, ensure_ascii=False) nick_id = self.get_nick_id(nick) self.execute( "INSERT OR REPLACE INTO nick_values VALUES (?, ?, ?)", [nick_i...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def get_nick_value(self, nick, key): """Retrieves the value for a given key associated with a nick.""" nick = Identifier(nick) session = self.ssession() try: result = ( session.query(NickValues) .filter(Nicknames.nick_id == NickValues.nick_id) .filter(Nickname...
def get_nick_value(self, nick, key): """Retrieves the value for a given key associated with a nick.""" nick = Identifier(nick) result = self.execute( "SELECT value FROM nicknames JOIN nick_values " "ON nicknames.nick_id = nick_values.nick_id " "WHERE slug = ? AND key = ?", [n...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def unalias_nick(self, alias): """Removes an alias. Raises ValueError if there is not at least one other nick in the group. To delete an entire group, use `delete_group`. """ alias = Identifier(alias) nick_id = self.get_nick_id(alias, False) session = self.ssession() try: count ...
def unalias_nick(self, alias): """Removes an alias. Raises ValueError if there is not at least one other nick in the group. To delete an entire group, use `delete_group`. """ alias = Identifier(alias) nick_id = self.get_nick_id(alias, False) count = self.execute( "SELECT COUNT(*) FR...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def delete_nick_group(self, nick): """Removes a nickname, and all associated aliases and settings.""" nick = Identifier(nick) nick_id = self.get_nick_id(nick, False) session = self.ssession() try: session.query(Nicknames).filter(Nicknames.nick_id == nick_id).delete() session.query(Ni...
def delete_nick_group(self, nick): """Removes a nickname, and all associated aliases and settings.""" nick = Identifier(nick) nick_id = self.get_nick_id(nick, False) self.execute("DELETE FROM nicknames WHERE nick_id = ?", [nick_id]) self.execute("DELETE FROM nick_values WHERE nick_id = ?", [nick_id]...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def merge_nick_groups(self, first_nick, second_nick): """Merges the nick groups for the specified nicks. Takes two nicks, which may or may not be registered. Unregistered nicks will be registered. Keys which are set for only one of the given nicks will be preserved. Where multiple nicks have values fo...
def merge_nick_groups(self, first_nick, second_nick): """Merges the nick groups for the specified nicks. Takes two nicks, which may or may not be registered. Unregistered nicks will be registered. Keys which are set for only one of the given nicks will be preserved. Where multiple nicks have values fo...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def set_channel_value(self, channel, key, value): """Sets the value for a given key to be associated with the channel.""" channel = Identifier(channel).lower() value = json.dumps(value, ensure_ascii=False) session = self.ssession() try: result = ( session.query(ChannelValues) ...
def set_channel_value(self, channel, key, value): """Sets the value for a given key to be associated with the channel.""" channel = Identifier(channel).lower() value = json.dumps(value, ensure_ascii=False) self.execute( "INSERT OR REPLACE INTO channel_values VALUES (?, ?, ?)", [channel, key, val...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def get_channel_value(self, channel, key): """Retrieves the value for a given key associated with a channel.""" channel = Identifier(channel).lower() session = self.ssession() try: result = ( session.query(ChannelValues) .filter(ChannelValues.channel == channel) ...
def get_channel_value(self, channel, key): """Retrieves the value for a given key associated with a channel.""" channel = Identifier(channel).lower() result = self.execute( "SELECT value FROM channel_values WHERE channel = ? AND key = ?", [channel, key] ).fetchone() if result is not None: ...
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def connect(self): """Return a raw database connection object.""" return sqlite3.connect(self.filename, timeout=10)
def connect(self): """Return a raw database connection object.""" return sqlite3.connect(self.filename)
https://github.com/sopel-irc/sopel/issues/736
Traceback (most recent call last): File "/home/TrollOP/willie/willie/bot.py", line 634, in call exit_code = func(willie, trigger) File "/home/TrollOP/willie/willie/modules/seen.py", line 50, in note bot.db.set_nick_value(trigger.nick, 'seen_timestamp', time.time()) File "/home/TrollOP/willie/willie/db.py", line 150, in...
OperationalError
def run(config, pid_file, daemon=False): import sopel.bot as bot import sopel.logger from sopel.tools import stderr delay = 20 # Inject ca_certs from config to web for SSL validation of web requests if not config.core.ca_certs: stderr("Could not open CA certificates file. SSL will not w...
def run(config, pid_file, daemon=False): import sopel.bot as bot import sopel.logger from sopel.tools import stderr delay = 20 # Inject ca_certs from config to web for SSL validation of web requests if not config.core.ca_certs: stderr("Could not open CA certificates file. SSL will not w...
https://github.com/sopel-irc/sopel/issues/1478
Connecting to irc.network.net:6667... ^CGot quit signal, shutting down. Traceback (most recent call last): File "/Users/dgw/github/sopel/sopel/__init__.py", line 91, in run p.run(config.core.host, int(config.core.port)) File "/Users/dgw/github/sopel/sopel/irc.py", line 167, in run self.initiate_connect(host, port) File...
AttributeError
def run(config, pid_file, daemon=False): delay = 20 # Inject ca_certs from config to web for SSL validation of web requests if not config.core.ca_certs: tools.stderr("Could not open CA certificates file. SSL will not work properly!") def signal_handler(sig, frame): if sig == signal.SIGU...
def run(config, pid_file, daemon=False): delay = 20 # Inject ca_certs from config to web for SSL validation of web requests if not config.core.ca_certs: tools.stderr("Could not open CA certificates file. SSL will not work properly!") def signal_handler(sig, frame): if sig == signal.SIGU...
https://github.com/sopel-irc/sopel/issues/1478
Connecting to irc.network.net:6667... ^CGot quit signal, shutting down. Traceback (most recent call last): File "/Users/dgw/github/sopel/sopel/__init__.py", line 91, in run p.run(config.core.host, int(config.core.port)) File "/Users/dgw/github/sopel/sopel/irc.py", line 167, in run self.initiate_connect(host, port) File...
AttributeError
def show_bug(bot, trigger, match=None): """Show information about a Bugzilla bug.""" match = match or trigger domain = match.group(1) if domain not in bot.config.bugzilla.domains: return url = "https://%s%sctype=xml&%s" % match.groups() data = web.get(url, dont_decode=True) bug = xml...
def show_bug(bot, trigger, match=None): """Show information about a Bugzilla bug.""" match = match or trigger domain = match.group(1) if domain not in bot.config.bugzilla.domains: return url = "https://%s%sctype=xml&%s" % match.groups() data = web.get(url, dont_decode=True) bug = xml...
https://github.com/sopel-irc/sopel/issues/1112
Signature: TypeError: unsupported operand type(s) for +: 'NoneType' and 'unicode' (file "/usr/lib/python2.7/site-packages/sopel/modules/bugzilla.py", line 80, in show_bug) from psachin at 2016-07-28 15:07:21.534591. Message was: https://bugzilla.redhat.com/show_bug.cgi?id=1334618#c15 Traceback (most recent call last): ...
TypeError
def f_reload(bot, trigger): """Reloads a module, for use by admins only.""" if not trigger.admin: return name = trigger.group(2) if name == bot.config.core.owner: return bot.reply("What?") if not name or name == "*" or name.upper() == "ALL THE THINGS": bot._callables = { ...
def f_reload(bot, trigger): """Reloads a module, for use by admins only.""" if not trigger.admin: return name = trigger.group(2) if name == bot.config.core.owner: return bot.reply("What?") if not name or name == "*" or name.upper() == "ALL THE THINGS": bot._callables = { ...
https://github.com/sopel-irc/sopel/issues/1048
Traceback (most recent call last): File "/home/caleb/sopel/sopel/bot.py", line 442, in call exit_code = func(sopel, trigger) File "/home/caleb/sopel/sopel/modules/reload.py", line 125, in pm_f_reload f_reload(bot, trigger) File "/home/caleb/sopel/sopel/modules/reload.py", line 38, in f_reload bot.command_groups = colle...
AttributeError
def unregister(self, obj): if not callable(obj): return if hasattr(obj, "rule"): # commands and intents have it added for rule in obj.rule: callb_list = self._callables[obj.priority][rule] if obj in callb_list: callb_list.remove(obj) if hasattr(obj, "...
def unregister(self, obj): if hasattr(obj, "rule"): # commands and intents have it added for rule in obj.rule: self._callables[obj.priority][rule].remove(obj) if hasattr(obj, "interval"): # TODO this should somehow find the right job to remove, rather than # clearing the ent...
https://github.com/sopel-irc/sopel/issues/899
Traceback (most recent call last): File "/home/embo/prog/env/local/lib/python2.7/site-packages/sopel/bot.py", line 257, in call exit_code = func(sopel, trigger) File "/home/embo/prog/env/local/lib/python2.7/site-packages/sopel/modules/reload.py", line 49, in f_reload bot.unregister(obj) File "/home/embo/prog/env/local/...
TypeError
def compile_rule(nick, pattern): # Not sure why this happens on reloads, but it shouldn't cause problems… if isinstance(pattern, _regex_type): return pattern pattern = pattern.replace("$nickname", nick) pattern = pattern.replace("$nick", r"{}[,:]\s+".format(nick)) flags = re.IGNORECASE ...
def compile_rule(nick, pattern): pattern = pattern.replace("$nickname", nick) pattern = pattern.replace("$nick", r"{}[,:]\s+".format(nick)) flags = re.IGNORECASE if "\n" in pattern: flags |= re.VERBOSE return re.compile(pattern, flags)
https://github.com/sopel-irc/sopel/issues/899
Traceback (most recent call last): File "/home/embo/prog/env/local/lib/python2.7/site-packages/sopel/bot.py", line 257, in call exit_code = func(sopel, trigger) File "/home/embo/prog/env/local/lib/python2.7/site-packages/sopel/modules/reload.py", line 49, in f_reload bot.unregister(obj) File "/home/embo/prog/env/local/...
TypeError
def setup(bot): bot.config.define_section("admin", AdminSection)
def setup(bot): return bot.config.define_section("admin", AdminSection)
https://github.com/sopel-irc/sopel/issues/882
Traceback (most recent call last): File "/home/embo/prog/willie/sopel/bot.py", line 257, in call exit_code = func(sopel, trigger) File "/home/embo/prog/willie/sopel/modules/admin.py", line 149, in hold_ground if bot.config.admin.hold_ground: File "/home/embo/prog/willie/sopel/config/__init__.py", line 168, in __getattr...
AttributeError
def configure_setting(self, name, prompt, default=NO_DEFAULT): """Return a validated value for this attribute from the terminal. ``prompt`` will be the docstring of the attribute if not given. If ``default`` is passed, it will be used if no value is given by the user. If it is not passed, the current ...
def configure_setting(self, name, prompt=None, default=NO_DEFAULT): """Return a validated value for this attribute from the terminal. ``prompt`` will be the docstring of the attribute if not given. If ``default`` is passed, it will be used if no value is given by the user. If it is not passed, the cur...
https://github.com/sopel-irc/sopel/issues/864
Configure safety module (y/n)? [n]y Encountered an error while writing the config file. This shouldn't happen. Check permissions. Traceback (most recent call last): File "/usr/local/bin/sopel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.4/dist-packages/sopel/run_script.py", line 133, in main _cr...
TypeError
def configure(config): config.define_section("meetbot", MeetbotSection) config.meetbot.configure_setting( "meeting_log_path", "Enter the directory to store logs in." ) config.meetbot.configure_setting( "meeting_log_baseurl", "Enter the base URL for the meeting logs.", )
def configure(config): config.define_section("meetbot", MeetbotSection) config.meetbot.configure_setting("meeting_log_path") config.meetbot.configure_setting("meeting_log_baseurl")
https://github.com/sopel-irc/sopel/issues/864
Configure safety module (y/n)? [n]y Encountered an error while writing the config file. This shouldn't happen. Check permissions. Traceback (most recent call last): File "/usr/local/bin/sopel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.4/dist-packages/sopel/run_script.py", line 133, in main _cr...
TypeError
def configure(config): config.define_section("safety", SafetySection) config.safety.configure_setting( "enabled_by_default", "Enable URL safety in channels that don't specifically disable it?", ) config.safety.configure_setting( "known_good", "Enter any domains to whiteli...
def configure(config): config.define_section("safety", SafetySection) config.safety.configure_setting("enabled_by_default") config.safety.configure_setting("known_good") config.safety.configure_setting( "vt_api_key", "Optionaly, enter a VirusTotal API key to improve malicious URL " ...
https://github.com/sopel-irc/sopel/issues/864
Configure safety module (y/n)? [n]y Encountered an error while writing the config file. This shouldn't happen. Check permissions. Traceback (most recent call last): File "/usr/local/bin/sopel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.4/dist-packages/sopel/run_script.py", line 133, in main _cr...
TypeError
def mw_info(bot, trigger, found_match=None): """ Retrives a snippet of the specified length from the given page on the given server. """ match = found_match or trigger say_snippet(bot, match.group(1), unquote(match.group(2)), show_url=False)
def mw_info(bot, trigger, found_match=None): """ Retrives a snippet of the specified length from the given page on the given server. """ match = found_match or trigger say_snippet(bot, match.group(1), match.group(2), show_url=False)
https://github.com/sopel-irc/sopel/issues/724
Signature: KeyError: u'extract' (file "/usr/local/lib/python2.7/dist-packages/willie/modules/wikipedia.py", line 83, in mw_snippet) from Tomi at 2015-01-28 18:29:59.907542. Message was: http://en.wikipedia.org/wiki/Troll_%28Internet%29 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/will...
KeyError
def get_fpath(bot, trigger, channel=None): """ Returns a string corresponding to the path to the file where the message currently being handled should be logged. """ basedir = os.path.expanduser(bot.config.chanlogs.dir) channel = channel or trigger.sender channel = channel.lstrip("#") ch...
def get_fpath(bot, trigger, channel=None): """ Returns a string corresponding to the path to the file where the message currently being handled should be logged. """ basedir = os.path.expanduser(bot.config.chanlogs.dir) channel = channel or trigger.sender channel = channel.lstrip("#") d...
https://github.com/sopel-irc/sopel/issues/490
Traceback (most recent call last): File "/home/amphy/willie/willie/bot.py", line 747, in call exit_code = func(willie, trigger) File "/home/amphy/willie/willie/modules/chanlogs.py", line 115, in log_join with open(fpath, "a") as f: IOError: [Errno 2] No such file or directory: u'/vp/-2014-03-21.log'
IOError
def auth_proceed(bot, trigger): if trigger.args[0] != "+": # How did we get here? I am not good with computer. return # Is this right? if bot.config.core.sasl_username: sasl_username = bot.config.core.sasl_username else: sasl_username = bot.nick sasl_token = "\0".join...
def auth_proceed(bot, trigger): if trigger.args[0] != "+": # How did we get here? I am not good with computer. return # Is this right? if bot.config.core.sasl_username: sasl_username = bot.config.core.sasl_username else: sasl_username = bot.nick sasl_token = "\0".join...
https://github.com/sopel-irc/sopel/issues/707
Traceback (most recent call last): File "/opt/rh/python33/root/usr/lib/python3.3/site-packages/willie/bot.py", line 743, in call exit_code = func(willie, trigger) File "/opt/rh/python33/root/usr/lib/python3.3/site-packages/willie/coretasks.py", line 432, in auth_proceed bot.write(('AUTHENTICATE', base64.b64encode(sasl_...
TypeError
def read_feeds(bot, force=False): if not bot.memory["rss_manager"].running and not force: return sub = bot.db.substitution conn = bot.db.connect() c = conn.cursor() c.execute("SELECT * FROM rss_feeds") feeds = c.fetchall() if not feeds: bot.debug(__file__, "No RSS feeds to c...
def read_feeds(bot, force=False): if not bot.memory["rss_manager"].running and not force: return sub = bot.db.substitution conn = bot.db.connect() c = conn.cursor() c.execute("SELECT * FROM rss_feeds") feeds = c.fetchall() if not feeds: bot.debug(__file__, "No RSS feeds to c...
https://github.com/sopel-irc/sopel/issues/449
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/willie/bot.py", line 719, in call exit_code = func(willie, trigger) File "/home/%USERNAME%/.willie/modules/rss.py", line 129, in manage_rss bot.memory['rss_manager'].manage_rss(bot, trigger) File "/home/%USERNAME%/.willie/modules/rss.py...
AttributeError
def track_part(bot, trigger): if trigger.nick == bot.nick: bot.channels.remove(trigger.sender) del bot.privileges[trigger.sender] else: try: del bot.privileges[trigger.sender][trigger.nick] except KeyError: pass
def track_part(bot, trigger): if trigger.nick == bot.nick: bot.channels.remove(trigger.sender) del bot.privileges[trigger.sender] else: del bot.privileges[trigger.sender][trigger.nick]
https://github.com/sopel-irc/sopel/issues/365
Signature: KeyError: u'ict' (file "/home/ict/build/willie/willie/modules/adminchannel.py", line 28, in op) from #mytestchannel at 2013-11-11 23:27:34.803790: Message was: <ict> .op Traceback (most recent call last): File "/home/ict/build/willie/willie/bot.py", line 697, in call exit_code = func(willie, trigger) File "/...
KeyError
def show_bug(willie, trigger): """Show information about a Bugzilla bug.""" domain = trigger.group(1) if domain not in willie.config.bugzilla.get_list("domains"): return url = "https://%s%sctype=xml&%s" % trigger.groups() data = web.get(url) bug = etree.fromstring(data).find("bug") ...
def show_bug(willie, trigger): """Show information about a Bugzilla bug.""" domain = trigger.group(1) if domain not in willie.config.bugzilla.get_list("domains"): return url = "https://%s%sctype=xml&%s" % trigger.groups() data = web.get(url) bug = etree.fromstring(data).find("bug") ...
https://github.com/sopel-irc/sopel/issues/247
Signature: TypeError: cannot concatenate 'str' and 'NoneType' objects (file "/home/elad/willie/willie/modules/bugzilla.py", line 60, in show_bug) from #fedora-sound at 2013-05-05 15:08:37.018372: Message was: <elad661> https://bugzilla.redhat.com/show_bug.cgi?id=951827 Traceback (most recent call last): File "/home/ela...
TypeError
def resolve_connection(cls, connection, args, iterable, max_limit=None): iterable = maybe_queryset(iterable) if isinstance(iterable, QuerySet): list_length = iterable.count() list_slice_length = ( min(max_limit, list_length) if max_limit is not None else list_length ) el...
def resolve_connection(cls, connection, args, iterable, max_limit=None): iterable = maybe_queryset(iterable) if isinstance(iterable, QuerySet): list_length = iterable.count() list_slice_length = ( min(max_limit, list_length) if max_limit is not None else list_length ) el...
https://github.com/graphql-python/graphene-django/issues/998
Traceback (most recent call last): File "/home/bellini/dev/cliqueimudei/cliqueimudei/backend/cm/urls.py", line 53, in execute_graphql_request raise error.original_error File "/home/bellini/.virtualenvs/cm/lib/python3.8/site-packages/promise/promise.py", line 489, in _resolve_from_executor executor(resolve, reject) File...
AssertionError
def convert_django_field_with_choices( field, registry=None, convert_choices_to_enum=True ): if registry is not None: converted = registry.get_converted_field(field) if converted: return converted choices = getattr(field, "choices", None) if choices and convert_choices_to_enu...
def convert_django_field_with_choices( field, registry=None, convert_choices_to_enum=True ): if registry is not None: converted = registry.get_converted_field(field) if converted: return converted choices = getattr(field, "choices", None) if choices and convert_choices_to_enu...
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_field_to_string(field, registry=None): return String( description=get_django_field_description(field), required=not field.null )
def convert_field_to_string(field, registry=None): return String(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_field_to_id(field, registry=None): return ID(description=get_django_field_description(field), required=not field.null)
def convert_field_to_id(field, registry=None): return ID(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_field_to_uuid(field, registry=None): return UUID( description=get_django_field_description(field), required=not field.null )
def convert_field_to_uuid(field, registry=None): return UUID(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_field_to_int(field, registry=None): return Int(description=get_django_field_description(field), required=not field.null)
def convert_field_to_int(field, registry=None): return Int(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_field_to_boolean(field, registry=None): return Boolean( description=get_django_field_description(field), required=not field.null )
def convert_field_to_boolean(field, registry=None): return Boolean(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_field_to_float(field, registry=None): return Float( description=get_django_field_description(field), required=not field.null )
def convert_field_to_float(field, registry=None): return Float(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_datetime_to_string(field, registry=None): return DateTime( description=get_django_field_description(field), required=not field.null )
def convert_datetime_to_string(field, registry=None): return DateTime(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_date_to_string(field, registry=None): return Date( description=get_django_field_description(field), required=not field.null )
def convert_date_to_string(field, registry=None): return Date(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_time_to_string(field, registry=None): return Time( description=get_django_field_description(field), required=not field.null )
def convert_time_to_string(field, registry=None): return Time(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_field_to_djangomodel(field, registry=None): model = field.related_model def dynamic_type(): _type = registry.get_type_for_model(model) if not _type: return return Field( _type, description=get_django_field_description(field), ...
def convert_field_to_djangomodel(field, registry=None): model = field.related_model def dynamic_type(): _type = registry.get_type_for_model(model) if not _type: return return Field(_type, description=field.help_text, required=not field.null) return Dynamic(dynamic_type...
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def dynamic_type(): _type = registry.get_type_for_model(model) if not _type: return return Field( _type, description=get_django_field_description(field), required=not field.null, )
def dynamic_type(): _type = registry.get_type_for_model(model) if not _type: return return Field(_type, description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_postgres_array_to_list(field, registry=None): base_type = convert_django_field(field.base_field) if not isinstance(base_type, (List, NonNull)): base_type = type(base_type) return List( base_type, description=get_django_field_description(field), required=not field....
def convert_postgres_array_to_list(field, registry=None): base_type = convert_django_field(field.base_field) if not isinstance(base_type, (List, NonNull)): base_type = type(base_type) return List(base_type, description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_postgres_field_to_string(field, registry=None): return JSONString( description=get_django_field_description(field), required=not field.null )
def convert_postgres_field_to_string(field, registry=None): return JSONString(description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_postgres_range_to_string(field, registry=None): inner_type = convert_django_field(field.base_field) if not isinstance(inner_type, (List, NonNull)): inner_type = type(inner_type) return List( inner_type, description=get_django_field_description(field), required=not...
def convert_postgres_range_to_string(field, registry=None): inner_type = convert_django_field(field.base_field) if not isinstance(inner_type, (List, NonNull)): inner_type = type(inner_type) return List(inner_type, description=field.help_text, required=not field.null)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def get_filtering_args_from_filterset(filterset_class, type): """Inspect a FilterSet and produce the arguments to pass to a Graphene Field. These arguments will be available to filter against in the GraphQL """ from ..forms.converter import convert_form_field args = {} model = filterset_cla...
def get_filtering_args_from_filterset(filterset_class, type): """Inspect a FilterSet and produce the arguments to pass to a Graphene Field. These arguments will be available to filter against in the GraphQL """ from ..forms.converter import convert_form_field args = {} model = filterset_cla...
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_string(field): return String( description=get_form_field_description(field), required=field.required )
def convert_form_field_to_string(field): return String(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError