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 bitcast_convert_type(operand, new_dtype):
new_dtype = xla_bridge.canonicalize_dtype(new_dtype)
old_dtype = _dtype(operand)
if old_dtype != new_dtype:
return bitcast_convert_type_p.bind(operand, new_dtype=new_dtype)
else:
return operand
| def bitcast_convert_type(operand, new_dtype):
return bitcast_convert_type_p.bind(operand, new_dtype=new_dtype)
| https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def reduce(operand, init_value, computation, dimensions):
monoid_reducer = _get_monoid_reducer(computation, init_value)
if monoid_reducer:
return monoid_reducer(operand, dimensions)
else:
jaxpr, consts = _reduction_jaxpr(computation, init_value)
return reduce_p.bind(
oper... | def reduce(operand, init_value, computation, dimensions):
monoid_reducer = _get_monoid_reducer(computation, init_value)
if monoid_reducer:
return monoid_reducer(operand, dimensions)
else:
jaxpr, consts = _reduction_jaxpr(computation, init_value)
return reduce_p.bind(
oper... | https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def _get_monoid_reducer(monoid_op, x):
aval = core.get_aval(x)
if (type(aval) is ConcreteArray) and aval.shape == ():
if monoid_op is add:
return aval.val == 0 and _reduce_sum
elif monoid_op is max:
return aval.val == _get_max_identity(aval.dtype) and _reduce_max
... | def _get_monoid_reducer(monoid_op, x):
aval = core.get_aval(x)
if (type(aval) is ConcreteArray) and aval.shape == ():
if monoid_op is add:
return aval.val == 0 and _reduce_sum
elif monoid_op is max:
return aval.val == _get_max_identity(aval.dtype) and _reduce_max
... | https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def _get_max_identity(dtype):
if onp.issubdtype(dtype, onp.floating):
return onp.array(-onp.inf, dtype)
elif onp.issubdtype(dtype, onp.integer):
return onp.array(onp.iinfo(dtype).min, dtype)
elif onp.issubdtype(dtype, onp.bool_):
return onp.array(False, onp.bool_)
| def _get_max_identity(dtype):
if onp.issubdtype(dtype, onp.floating):
return onp.array(-onp.inf, dtype)
elif onp.issubdtype(dtype, onp.integer):
return onp.array(onp.iinfo(dtype).min, dtype)
| https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def _get_min_identity(dtype):
if onp.issubdtype(dtype, onp.floating):
return onp.array(onp.inf, dtype)
elif onp.issubdtype(dtype, onp.integer):
return onp.array(onp.iinfo(dtype).max, dtype)
elif onp.issubdtype(dtype, onp.bool_):
return onp.array(True, onp.bool_)
| def _get_min_identity(dtype):
if onp.issubdtype(dtype, onp.floating):
return onp.array(onp.inf, dtype)
elif onp.issubdtype(dtype, onp.integer):
return onp.array(onp.iinfo(dtype).max, dtype)
| https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def pad_batch_rule(batched_args, batch_dims, padding_config):
operand, padding_value = batched_args
operand_bdim, padding_value_bdim = batch_dims
if padding_value_bdim is None:
assert operand_bdim is not None
padding_config = list(padding_config)
padding_config.insert(operand_bdim, (... | def pad_batch_rule(batched_args, batch_dims, padding_config):
operand, padding_value = batched_args
operand_bdim, padding_value_bdim = batch_dims
if padding_value_bdim is None:
assert operand_bdim is not None
padding_config = list(padding_config)
padding_config.insert(operand_bdim, (... | https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def reduce_shape_rule(operand, init_value, computation, jaxpr, consts, dimensions):
return tuple(onp.delete(operand.shape, dimensions))
| def reduce_shape_rule(operand, init_value, jaxpr, consts, dimensions):
return tuple(onp.delete(operand.shape, dimensions))
| https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def reduce_translation_rule(
c, operand, init_value, computation, jaxpr, consts, dimensions
):
xla_computation = _reduction_computation(c, jaxpr, consts, init_value)
return c.Reduce(operand, init_value, xla_computation, dimensions)
| def reduce_translation_rule(c, operand, init_value, jaxpr, consts, dimensions):
xla_computation = _reduction_computation(c, jaxpr, consts, init_value)
return c.Reduce(operand, init_value, xla_computation, dimensions)
| https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def _make_reduction(np_fun, op, init_val, preproc=None):
"""Creates reduction function given a binary operation and monoid identity."""
@_wraps(np_fun)
def reduction(a, axis=None, dtype=None, out=None, keepdims=False):
if out is not None:
raise ValueError("reduction does not support `ou... | def _make_reduction(np_fun, op, init_val):
"""Creates reduction function given a binary operation and monoid identity."""
@_wraps(op)
def reduction(a, axis=None, dtype=None, out=None, keepdims=False):
if out is not None:
raise ValueError("reduction does not support `out` argument.")
... | https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def reduction(a, axis=None, dtype=None, out=None, keepdims=False):
if out is not None:
raise ValueError("reduction does not support `out` argument.")
a = a if isinstance(a, ndarray) else asarray(a)
a = preproc(a) if preproc else a
dims = _reduction_dims(a, axis)
result_dtype = _dtype(np_fun... | def reduction(a, axis=None, dtype=None, out=None, keepdims=False):
if out is not None:
raise ValueError("reduction does not support `out` argument.")
a = a if isinstance(a, ndarray) else asarray(a)
dims = _reduction_dims(a, axis)
result_dtype = _dtype(np_fun(onp.ones((), dtype=dtype or _dtype(a... | https://github.com/google/jax/issues/108 | import jax.numpy as np
from jax import vmap
vmap(np.any)(np.array([[True, False], [False, False]]))
jax/lib/xla_bridge.py:138: UserWarning: No GPU found, falling back to CPU.
warnings.warn('No GPU found, falling back to CPU.')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "jax/api.py", lin... | TypeError |
def template_settings(
es_version, ecs_version, mappings_section, template_settings_file
):
if template_settings_file:
with open(template_settings_file) as f:
template = json.load(f)
else:
template = default_template_settings(ecs_version)
if es_version == 6:
mappings... | def template_settings(
es_version, ecs_version, mappings_section, template_settings_file
):
if template_settings_file:
with open(template_settings_file) as f:
template = json.load(f)
else:
template = default_template_settings(ecs_version)
if es_version == 6:
mappings... | https://github.com/elastic/ecs/issues/1190 | Loading schemas from git ref v1.6.0
Running generator. ECS version 1.6.0
Loading user defined schemas: ['usage-example/fields/custom/']
/Users/florent/Sources/ecs/scripts/schema/cleaner.py:185: UserWarning: Example value for field `header_flags` contains an object or array which must be quoted to avoid YAML interpretat... | KeyError |
def main():
args = argument_parser()
ecs_version = read_version(args.ref)
print("Running generator. ECS version " + ecs_version)
# default location to save files
out_dir = "generated"
docs_dir = "docs"
if args.out:
default_dirs = False
out_dir = os.path.join(args.out, out_d... | def main():
args = argument_parser()
ecs_version = read_version(args.ref)
print("Running generator. ECS version " + ecs_version)
# default location to save files
out_dir = "generated"
docs_dir = "docs"
if args.out:
default_dirs = False
out_dir = os.path.join(args.out, out_d... | https://github.com/elastic/ecs/issues/892 | $ python scripts/generator.py --ref v1.5.0
Loading schemas from git ref v1.5.0
Running generator. ECS version 1.5.0
Traceback (most recent call last):
File "scripts/generator.py", line 94, in <module>
main()
File "scripts/generator.py", line 44, in main
cleaner.clean(fields)
File "<redacted>/ecs/scripts/schema/cleaner.... | ValueError |
def argument_parser():
parser = argparse.ArgumentParser()
parser.add_argument(
"--intermediate-only",
action="store_true",
help="generate intermediary files only",
)
parser.add_argument(
"--include",
nargs="+",
help="include user specified directory of cus... | def argument_parser():
parser = argparse.ArgumentParser()
parser.add_argument(
"--intermediate-only",
action="store_true",
help="generate intermediary files only",
)
parser.add_argument(
"--include",
nargs="+",
help="include user specified directory of cus... | https://github.com/elastic/ecs/issues/892 | $ python scripts/generator.py --ref v1.5.0
Loading schemas from git ref v1.5.0
Running generator. ECS version 1.5.0
Traceback (most recent call last):
File "scripts/generator.py", line 94, in <module>
main()
File "scripts/generator.py", line 44, in main
cleaner.clean(fields)
File "<redacted>/ecs/scripts/schema/cleaner.... | ValueError |
def clean(fields, strict=False):
global strict_mode
strict_mode = strict
visitor.visit_fields(fields, fieldset_func=schema_cleanup, field_func=field_cleanup)
| def clean(fields):
visitor.visit_fields(fields, fieldset_func=schema_cleanup, field_func=field_cleanup)
| https://github.com/elastic/ecs/issues/892 | $ python scripts/generator.py --ref v1.5.0
Loading schemas from git ref v1.5.0
Running generator. ECS version 1.5.0
Traceback (most recent call last):
File "scripts/generator.py", line 94, in <module>
main()
File "scripts/generator.py", line 44, in main
cleaner.clean(fields)
File "<redacted>/ecs/scripts/schema/cleaner.... | ValueError |
def schema_cleanup(schema):
# Sanity check first
schema_mandatory_attributes(schema)
# trailing space cleanup
ecs_helpers.dict_clean_string_values(schema["schema_details"])
ecs_helpers.dict_clean_string_values(schema["field_details"])
# Some defaults
schema["schema_details"].setdefault("grou... | def schema_cleanup(schema):
# Sanity check first
schema_mandatory_attributes(schema)
# trailing space cleanup
ecs_helpers.dict_clean_string_values(schema["schema_details"])
ecs_helpers.dict_clean_string_values(schema["field_details"])
# Some defaults
schema["schema_details"].setdefault("grou... | https://github.com/elastic/ecs/issues/892 | $ python scripts/generator.py --ref v1.5.0
Loading schemas from git ref v1.5.0
Running generator. ECS version 1.5.0
Traceback (most recent call last):
File "scripts/generator.py", line 94, in <module>
main()
File "scripts/generator.py", line 44, in main
cleaner.clean(fields)
File "<redacted>/ecs/scripts/schema/cleaner.... | ValueError |
def schema_assertions_and_warnings(schema):
"""Additional checks on a fleshed out schema"""
single_line_short_description(schema, strict=strict_mode)
| def schema_assertions_and_warnings(schema):
"""Additional checks on a fleshed out schema"""
single_line_short_description(schema)
| https://github.com/elastic/ecs/issues/892 | $ python scripts/generator.py --ref v1.5.0
Loading schemas from git ref v1.5.0
Running generator. ECS version 1.5.0
Traceback (most recent call last):
File "scripts/generator.py", line 94, in <module>
main()
File "scripts/generator.py", line 44, in main
cleaner.clean(fields)
File "<redacted>/ecs/scripts/schema/cleaner.... | ValueError |
def field_assertions_and_warnings(field):
"""Additional checks on a fleshed out field"""
if not ecs_helpers.is_intermediate(field):
# check short description length if in strict mode
single_line_short_description(field, strict=strict_mode)
if field["field_details"]["level"] not in ACCEPT... | def field_assertions_and_warnings(field):
"""Additional checks on a fleshed out field"""
if not ecs_helpers.is_intermediate(field):
single_line_short_description(field)
if field["field_details"]["level"] not in ACCEPTABLE_FIELD_LEVELS:
msg = "Invalid level for field '{}'.\nValue: {}\... | https://github.com/elastic/ecs/issues/892 | $ python scripts/generator.py --ref v1.5.0
Loading schemas from git ref v1.5.0
Running generator. ECS version 1.5.0
Traceback (most recent call last):
File "scripts/generator.py", line 94, in <module>
main()
File "scripts/generator.py", line 44, in main
cleaner.clean(fields)
File "<redacted>/ecs/scripts/schema/cleaner.... | ValueError |
def single_line_short_description(schema_or_field, strict=True):
short_length = len(schema_or_field["field_details"]["short"])
if "\n" in schema_or_field["field_details"]["short"] or short_length > SHORT_LIMIT:
msg = "Short descriptions must be single line, and under {} characters (current length: {}).\... | def single_line_short_description(schema_or_field):
short_length = len(schema_or_field["field_details"]["short"])
if "\n" in schema_or_field["field_details"]["short"] or short_length > SHORT_LIMIT:
msg = "Short descriptions must be single line, and under {} characters (current length: {}).\n".format(
... | https://github.com/elastic/ecs/issues/892 | $ python scripts/generator.py --ref v1.5.0
Loading schemas from git ref v1.5.0
Running generator. ECS version 1.5.0
Traceback (most recent call last):
File "scripts/generator.py", line 94, in <module>
main()
File "scripts/generator.py", line 44, in main
cleaner.clean(fields)
File "<redacted>/ecs/scripts/schema/cleaner.... | ValueError |
def __repr__(self):
info = {}
if self._model_meta is not None:
if hasattr(self._model_meta, "run_id") and self._model_meta.run_id is not None:
info["run_id"] = self._model_meta.run_id
if (
hasattr(self._model_meta, "artifact_path")
and self._model_meta.artifac... | def __repr__(self):
info = {}
if self._model_meta is not None:
if self._model_meta.run_id is not None:
info["run_id"] = self._model_meta.run_id
if self._model_meta.artifact_path is not None:
info["artifact_path"] = self._model_meta.artifact_path
info["flavor"] = s... | https://github.com/mlflow/mlflow/issues/3550 | from sklearn import datasets
from sklearn.model_selection import train_test_split
import mlflow
import xgboost as xgb
iris = datasets.load_iris()
X = iris.data
y = iris.target
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
dtrain = xgb.DMatrix(X_train, label=y_train)
dtest = ... | AttributeError |
def _parse_search_registered_models_order_by(cls, order_by_list):
"""Sorts a set of registered models based on their natural ordering and an overriding set
of order_bys. Registered models are naturally ordered first by name ascending.
"""
clauses = []
observed_order_by_clauses = set()
if order_b... | def _parse_search_registered_models_order_by(cls, order_by_list):
"""Sorts a set of registered models based on their natural ordering and an overriding set
of order_bys. Registered models are naturally ordered first by name ascending.
"""
clauses = []
if order_by_list:
for order_by_clause in... | https://github.com/mlflow/mlflow/issues/3217 | Traceback (most recent call last):
File "/opt/app-root/lib64/python3.8/site-packages/mlflow/store/db/utils.py", line 76, in make_managed_session
yield session
File "/opt/app-root/lib64/python3.8/site-packages/mlflow/store/model_registry/sqlalchemy_store.py", line 331, in search_registered_models
sql_registered_models =... | sqlalchemy.exc.ProgrammingError |
def _get_orderby_clauses(order_by_list, session):
"""Sorts a set of runs based on their natural ordering and an overriding set of order_bys.
Runs are naturally ordered first by start time descending, then by run id for tie-breaking.
"""
clauses = []
ordering_joins = []
clause_id = 0
observe... | def _get_orderby_clauses(order_by_list, session):
"""Sorts a set of runs based on their natural ordering and an overriding set of order_bys.
Runs are naturally ordered first by start time descending, then by run id for tie-breaking.
"""
clauses = []
ordering_joins = []
clause_id = 0
# contr... | https://github.com/mlflow/mlflow/issues/3217 | Traceback (most recent call last):
File "/opt/app-root/lib64/python3.8/site-packages/mlflow/store/db/utils.py", line 76, in make_managed_session
yield session
File "/opt/app-root/lib64/python3.8/site-packages/mlflow/store/model_registry/sqlalchemy_store.py", line 331, in search_registered_models
sql_registered_models =... | sqlalchemy.exc.ProgrammingError |
def list_artifacts(self, path=None):
with self.get_ftp_client() as ftp:
artifact_dir = self.path
list_dir = posixpath.join(artifact_dir, path) if path else artifact_dir
if not self._is_dir(ftp, list_dir):
return []
artifact_files = ftp.nlst(list_dir)
artifact_file... | def list_artifacts(self, path=None):
with self.get_ftp_client() as ftp:
artifact_dir = self.path
list_dir = posixpath.join(artifact_dir, path) if path else artifact_dir
if not self._is_dir(ftp, list_dir):
return []
artifact_files = ftp.nlst(list_dir)
artifact_file... | https://github.com/mlflow/mlflow/issues/3197 | Traceback (most recent call last):
File "/Users/shaneing/PycharmProjects/gswatch/examples/load_model_from_ftp.py", line 9, in <module>
model = torch_load_model('ftp://mlflow:mlflow@10.10.10.1/mlruns/8/6f11ca34312a44df88f6b86f2f224f66/artifacts/fake-model/model')
└ <function load_model at 0x12e375710>
File "/usr/local/a... | mlflow.exceptions.MlflowException |
def log_artifacts(self, local_dir, artifact_path=None):
dest_path = posixpath.join(self.path, artifact_path) if artifact_path else self.path
local_dir = os.path.abspath(local_dir)
for root, _, filenames in os.walk(local_dir):
upload_path = dest_path
if root != local_dir:
rel_pat... | def log_artifacts(self, local_dir, artifact_path=None):
dest_path = posixpath.join(self.path, artifact_path) if artifact_path else self.path
dest_path = posixpath.join(dest_path, os.path.split(local_dir)[1])
dest_path_re = os.path.split(local_dir)[1]
if artifact_path:
dest_path_re = posixpath.j... | https://github.com/mlflow/mlflow/issues/2641 | load_model("models:/MyKerasModel/3")
Traceback (most recent call last):
File "mini.py", line 6, in <module>
load_model("models:/MyKerasModel/3")
File "/Users/daniel.dercks/opt/anaconda3/envs/berner_macos_nogpu/lib/python3.7/site-packages/mlflow/keras.py", line 391, in load_model
flavor_conf = _get_flavor_configuration... | mlflow.exceptions.MlflowException |
def _enforce_type(name, values: pandas.Series, t: DataType):
"""
Enforce the input column type matches the declared in model input schema.
The following type conversions are allowed:
1. np.object -> string
2. int -> long (upcast)
3. float -> double (upcast)
Any other type mismatch will ra... | def _enforce_type(name, values: pandas.Series, t: DataType):
"""
Enforce the input column type matches the declared in model input schema.
The following type conversions are allowed:
1. np.object -> string
2. int -> long (upcast)
3. float -> double (upcast)
Any other type mismatch will ra... | https://github.com/mlflow/mlflow/issues/3006 | mlflow version: 1.9.1.dev0
pandas version: 1.0.0
Traceback (most recent call last):
File "test.py", line 18, in <module>
_enforce_schema(df, schema)
File "/Users/xxx/Desktop/projects/mlflow/mlflow/pyfunc/__init__.py", line 372, in _enforce_schema
new_pdf[x] = _enforce_type(x, pdf[x], col_types[i])
File "/Users/xxx/Desk... | TypeError |
def _get_rest_store(store_uri, **_):
return RestStore(partial(_get_default_host_creds, store_uri))
| def _get_rest_store(store_uri, **_):
def get_default_host_creds():
return rest_utils.MlflowHostCreds(
host=store_uri,
username=os.environ.get(_TRACKING_USERNAME_ENV_VAR),
password=os.environ.get(_TRACKING_PASSWORD_ENV_VAR),
token=os.environ.get(_TRACKING_TOKEN... | https://github.com/mlflow/mlflow/issues/2954 | python mlflow_pickle_error.py
Traceback (most recent call last):
File "mlflow_test.py", line 14, in <module>
pickle.dump(cls, open('test_dump.pkl', 'wb'))
AttributeError: Can't pickle local object '_get_rest_store.<locals>.get_default_host_creds' | AttributeError |
def _call_endpoint(self, service, api, json_body):
db_profile = get_db_profile_from_uri(mlflow.tracking.get_tracking_uri())
db_creds = get_databricks_host_creds(db_profile)
endpoint, method = _SERVICE_AND_METHOD_TO_INFO[service][api]
response_proto = api.Response()
return call_endpoint(db_creds, end... | def _call_endpoint(self, service, api, json_body):
endpoint, method = _SERVICE_AND_METHOD_TO_INFO[service][api]
response_proto = api.Response()
return call_endpoint(
get_databricks_host_creds(), endpoint, method, json_body, response_proto
)
| https://github.com/mlflow/mlflow/issues/2954 | python mlflow_pickle_error.py
Traceback (most recent call last):
File "mlflow_test.py", line 14, in <module>
pickle.dump(cls, open('test_dump.pkl', 'wb'))
AttributeError: Can't pickle local object '_get_rest_store.<locals>.get_default_host_creds' | AttributeError |
def list_artifacts(self, path=None):
if path:
run_relative_path = posixpath.join(
self.run_relative_artifact_repo_root_path, path
)
else:
run_relative_path = self.run_relative_artifact_repo_root_path
infos = []
page_token = None
while True:
if page_token:
... | def list_artifacts(self, path=None):
if path:
run_relative_path = posixpath.join(
self.run_relative_artifact_repo_root_path, path
)
else:
run_relative_path = self.run_relative_artifact_repo_root_path
infos = []
page_token = None
while True:
if page_token:
... | https://github.com/mlflow/mlflow/issues/2954 | python mlflow_pickle_error.py
Traceback (most recent call last):
File "mlflow_test.py", line 14, in <module>
pickle.dump(cls, open('test_dump.pkl', 'wb'))
AttributeError: Can't pickle local object '_get_rest_store.<locals>.get_default_host_creds' | AttributeError |
def to_pandas(self) -> np.dtype:
"""Get equivalent pandas data type."""
return self._pandas_type
| def to_pandas(self) -> Union[np.dtype, PandasExtensionDtype]:
"""Get equivalent pandas data type."""
return self._pandas_type
| https://github.com/mlflow/mlflow/issues/2954 | python mlflow_pickle_error.py
Traceback (most recent call last):
File "mlflow_test.py", line 14, in <module>
pickle.dump(cls, open('test_dump.pkl', 'wb'))
AttributeError: Can't pickle local object '_get_rest_store.<locals>.get_default_host_creds' | AttributeError |
def _save_model_with_loader_module_and_data_path(
path,
loader_module,
data_path=None,
code_paths=None,
conda_env=None,
mlflow_model=Model(),
):
"""
Export model as a generic Python function model.
:param path: The path to which to save the Python model.
:param loader_module: The... | def _save_model_with_loader_module_and_data_path(
path,
loader_module,
data_path=None,
code_paths=None,
conda_env=None,
mlflow_model=Model(),
):
"""
Export model as a generic Python function model.
:param path: The path to which to save the Python model.
:param loader_module: The... | https://github.com/mlflow/mlflow/issues/2580 | import mlflow.pyfunc
mlflow.pyfunc.log_model('x', 'x', conda_env={})
Traceback (most recent call last):
...
TypeError: stat: path should be string, bytes, os.PathLike or integer, not dict | TypeError |
def _create_default_experiment(self, session):
"""
MLflow UI and client code expects a default experiment with ID 0.
This method uses SQL insert statement to create the default experiment as a hack, since
experiment table uses 'experiment_id' column is a PK and is also set to auto increment.
MySQL a... | def _create_default_experiment(self, session):
"""
MLflow UI and client code expects a default experiment with ID 0.
This method uses SQL insert statement to create the default experiment as a hack, since
experiment table uses 'experiment_id' column is a PK and is also set to auto increment.
MySQL a... | https://github.com/mlflow/mlflow/issues/1748 | Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
cursor.execute(statement, parameters)
pyod... | pyodbc.IntegrityError |
def _create_dockerfile(output_path, mlflow_path=None):
"""
Creates a Dockerfile containing additional Docker build steps to execute
when building the Azure container image. These build steps perform the following tasks:
- Install MLflow
:param output_path: The path where the Dockerfile will be wri... | def _create_dockerfile(output_path, mlflow_path=None):
"""
Creates a Dockerfile containing additional Docker build steps to execute
when building the Azure container image. These build steps perform the following tasks:
- Install MLflow
:param output_path: The path where the Dockerfile will be wri... | https://github.com/mlflow/mlflow/issues/1750 | 2019-08-16T16:43:37,939683552+00:00 - iot-server/run
2019-08-16T16:43:37,940440658+00:00 - gunicorn/run
2019-08-16T16:43:37,941200563+00:00 - rsyslog/run
2019-08-16T16:43:38,137124526+00:00 - nginx/run
EdgeHubConnectionString and IOTEDGE_IOTHUBHOSTNAME are not set. Exiting...
2019-08-16T16:43:40,241560271+00:00 - iot-s... | Exception |
def autolog():
"""
Enable automatic logging from TensorFlow to MLflow.
Logs loss and any other metrics specified in the fit
function, and optimizer data as parameters. Model checkpoints
are logged as artifacts to a 'models' directory.
"""
import keras
class __MLflowKerasCallback(keras.c... | def autolog():
"""
Enable automatic logging from TensorFlow to MLflow.
Logs loss and any other metrics specified in the fit
function, and optimizer data as parameters. Model checkpoints
are logged as artifacts to a 'models' directory.
"""
import keras
class __MLflowKerasCallback(keras.c... | https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def on_epoch_end(self, epoch, logs=None):
if not logs:
return
try_mlflow_log(mlflow.log_metrics, logs, step=epoch)
| def on_epoch_end(self, epoch, logs=None):
if not logs:
return
try:
mlflow.log_metrics(logs, step=epoch)
except mlflow.exceptions.MlflowException as e:
warnings.warn("Logging to MLflow failed: " + str(e))
| https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def on_train_end(self, logs=None):
try_mlflow_log(mlflow.log_param, "num_layers", len(self.model.layers))
try_mlflow_log(
mlflow.log_param, "optimizer_name", type(self.model.optimizer).__name__
)
if hasattr(self.model.optimizer, "lr"):
lr = (
self.model.optimizer.lr
... | def on_train_end(self, logs=None):
try:
mlflow.log_param("num_layers", len(self.model.layers))
mlflow.log_param("optimizer_name", type(self.model.optimizer).__name__)
if hasattr(self.model.optimizer, "lr"):
lr = (
self.model.optimizer.lr
if type(se... | https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def on_train_end(self, logs=None): # pylint: disable=unused-argument
opt = self.model.optimizer
if hasattr(opt, "optimizer"):
opt = opt.optimizer
try_mlflow_log(mlflow.log_param, "optimizer_name", type(opt).__name__)
if hasattr(opt, "_lr"):
lr = (
opt._lr
if ... | def on_train_end(self, logs=None): # pylint: disable=unused-argument
opt = self.model.optimizer
if hasattr(opt, "optimizer"):
opt = opt.optimizer
mlflow.log_param("optimizer_name", type(opt).__name__)
if hasattr(opt, "_lr"):
lr = (
opt._lr
if type(opt._lr) is flo... | https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def _log_artifacts_with_warning(**kwargs):
try_mlflow_log(mlflow.log_artifacts, **kwargs)
| def _log_artifacts_with_warning(**kwargs):
try:
mlflow.log_artifacts(**kwargs)
except MlflowException as e:
warnings.warn("Logging to MLflow failed: " + str(e))
| https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def _flush_queue():
"""
Flush the metric queue and log contents in batches to MLflow.
Queue is divided into batches according to run id.
"""
global _metric_queue
client = mlflow.tracking.MlflowClient()
dic = _assoc_list_to_map(_metric_queue)
for key in dic:
try_mlflow_log(client.... | def _flush_queue():
"""
Flush the metric queue and log contents in batches to MLflow.
Queue is divided into batches according to run id.
"""
global _metric_queue
try:
client = mlflow.tracking.MlflowClient()
dic = _assoc_list_to_map(_metric_queue)
for key in dic:
... | https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def autolog(every_n_iter=100):
# pylint: disable=E0611
"""
Enable automatic logging from TensorFlow to MLflow. If applicable,
model checkpoints are logged as artifacts to a 'models' directory, along
with any TensorBoard log data.
Refer to the tracking documentation for
information on what i... | def autolog(every_n_iter=100):
# pylint: disable=E0611
"""
Enable automatic logging from TensorFlow to MLflow. If applicable,
model checkpoints are logged as artifacts to a 'models' directory, along
with any TensorBoard log data.
Refer to the tracking documentation for
information on what i... | https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def export_saved_model(self, *args, **kwargs):
original = gorilla.get_original_attribute(
tensorflow.estimator.Estimator, "export_saved_model"
)
serialized = original(self, *args, **kwargs)
try_mlflow_log(
log_model,
tf_saved_model_dir=serialized.decode("utf-8"),
tf_meta_... | def export_saved_model(self, *args, **kwargs):
original = gorilla.get_original_attribute(
tensorflow.estimator.Estimator, "export_saved_model"
)
serialized = original(self, *args, **kwargs)
try:
log_model(
tf_saved_model_dir=serialized.decode("utf-8"),
tf_meta_gra... | https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def export_savedmodel(self, *args, **kwargs):
original = gorilla.get_original_attribute(
tensorflow.estimator.Estimator, "export_savedmodel"
)
serialized = original(self, *args, **kwargs)
try_mlflow_log(
log_model,
tf_saved_model_dir=serialized.decode("utf-8"),
tf_meta_gr... | def export_savedmodel(self, *args, **kwargs):
original = gorilla.get_original_attribute(
tensorflow.estimator.Estimator, "export_savedmodel"
)
serialized = original(self, *args, **kwargs)
try:
log_model(
tf_saved_model_dir=serialized.decode("utf-8"),
tf_meta_graph... | https://github.com/mlflow/mlflow/issues/1688 | 2019/08/01 18:01:53 ERROR mlflow.server: Exception on /api/2.0/mlflow/runs/set-tag [POST]
Traceback (most recent call last):
File "/home/myserver/mlflow_env/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/home/myserver/mlflow_e... | sqlalchemy.exc.DataError |
def spark_udf(spark, model_uri, result_type="double"):
"""
A Spark UDF that can be used to invoke the Python function formatted model.
Parameters passed to the UDF are forwarded to the model as a DataFrame where the names are
ordinals (0, 1, ...).
The predictions are filtered to contain only the c... | def spark_udf(spark, model_uri, result_type="double"):
"""
A Spark UDF that can be used to invoke the Python function formatted model.
Parameters passed to the UDF are forwarded to the model as a DataFrame where the names are
ordinals (0, 1, ...).
The predictions are filtered to contain only the c... | https://github.com/mlflow/mlflow/issues/1657 | ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<command-3584523> in <module>()
1 import mlflow.pyfunc
2
----> 3 trained_model = mlflow.pyfunc.spark_udf(spark, model_uri='runs:/c4569266b782467cacd91c3d0ef8f9fc/model'... | ValueError |
def _fetch_project(uri, subdirectory, version, dst_dir, git_username, git_password):
"""
Fetches the project from the uri. Makes sure the uri contains a valid MLproject file.
Returns the working directory for running the project.
"""
# Download a project to the target `dst_dir` from a Git URI or loc... | def _fetch_project(uri, subdirectory, version, dst_dir, git_username, git_password):
"""
Fetches the project from the uri. Makes sure the uri contains a valid MLproject file.
Returns the working directory for running the project.
"""
# Download a project to the target `dst_dir` from a Git URI or loc... | https://github.com/mlflow/mlflow/issues/147 | (rr-sample-reg) ip-10-10-180-57:rr-sample-regression arinto$ mlflow run /Users/arinto/repository/github/rr-sample-regression -e main -P lr_feature="Employment rate as pct"
=== Fetching project from /Users/arinto/repository/github/rr-sample-regression ===
=== Work directory for this run: /Users/arinto/repository/github/... | Exception |
def _metric_tags(self, metric_name, val, sample, scraper_config, hostname=None):
custom_tags = scraper_config["custom_tags"]
_tags = list(custom_tags)
_tags.extend(scraper_config["_metric_tags"])
for label_name, label_value in iteritems(sample[self.SAMPLE_LABELS]):
if label_name not in scraper_c... | def _metric_tags(self, metric_name, val, sample, scraper_config, hostname=None):
custom_tags = scraper_config["custom_tags"]
_tags = list(custom_tags)
_tags.extend(scraper_config["_metric_tags"])
for label_name, label_value in iteritems(sample[self.SAMPLE_LABELS]):
if label_name not in scraper_c... | https://github.com/DataDog/integrations-core/issues/2054 | [ AGENT ] 2018-08-14 19:31:51 UTC | ERROR | (runner.go:277 in work) | Error running check prometheus: [{"message": "'ascii' codec can't encode characters in position 1-4: ordinal not in range(128)", "traceback": "Traceback (most recent call last):\n File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/datado... | nUnicodeEncodeError |
def check(self, instance):
config = self.get_config(instance)
if config is None:
return
api = config["api"]
tags = list(config["tags"])
# We access the version of the Vault API corresponding to each instance's `api_url`.
try:
api["check_leader"](config, tags)
api["check... | def check(self, instance):
config = self.get_config(instance)
if config is None:
return
tags = list(config["tags"])
# We access the version of the Vault API corresponding to each instance's `api_url`.
try:
config["api"]["check_leader"](config, tags)
config["api"]["check_hea... | https://github.com/DataDog/integrations-core/issues/2712 | Error: string indices must be integers, not str
Traceback (most recent call last):
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/base.py", line 366, in run
self.check(copy.deepcopy(self.instances[0]))
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks... | TypeError |
def get_config(self, instance):
instance_id = hash_mutable(instance)
config = self.config.get(instance_id)
if config is None:
config = {}
try:
api_url = instance["api_url"]
api_version = api_url[-1]
if api_version not in self.api_versions:
... | def get_config(self, instance):
instance_id = hash_mutable(instance)
config = self.config.get(instance_id)
if config is None:
config = {}
try:
api_url = instance["api_url"]
api_version = api_url[-1]
if api_version not in self.api_versions:
... | https://github.com/DataDog/integrations-core/issues/2712 | Error: string indices must be integers, not str
Traceback (most recent call last):
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/base.py", line 366, in run
self.check(copy.deepcopy(self.instances[0]))
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks... | TypeError |
def _get_conn(self, instance):
no_cache = is_affirmative(instance.get("disable_connection_cache", False))
key = self._generate_instance_key(instance)
if no_cache or key not in self.connections:
try:
# Only send useful parameters to the redis client constructor
list_params = ... | def _get_conn(self, instance):
key = self._generate_instance_key(instance)
if key not in self.connections:
try:
# Only send useful parameters to the redis client constructor
list_params = [
"host",
"port",
"db",
"pas... | https://github.com/DataDog/integrations-core/issues/1657 | 2018-06-04 11:08:37 UTC | INFO | dd.collector | config(config.py:1249) | initialized checks.d checks: ['system_core', 'network', 'kubernetes', 'redisdb', 'ntp', 'disk', 'kube_proxy', 'docker_daemon', 'http_check']
2018-06-04 11:08:37 UTC | INFO | dd.collector | config(config.py:1250) | initialization failed checks.d ch... | ConnectionError |
def check(self, instance):
service_check_msg = None
offset_threshold = instance.get("offset_threshold", DEFAULT_OFFSET_THRESHOLD)
custom_tags = instance.get("tags", [])
try:
offset_threshold = int(offset_threshold)
except (TypeError, ValueError):
msg = "Must specify an integer value ... | def check(self, instance):
service_check_msg = None
offset_threshold = instance.get("offset_threshold", DEFAULT_OFFSET_THRESHOLD)
custom_tags = instance.get("tags", [])
try:
offset_threshold = int(offset_threshold)
except (TypeError, ValueError):
raise Exception(
"Must sp... | https://github.com/DataDog/integrations-core/issues/1569 | 2018-05-17 11:30:31 UTC | INFO | dd.collector | config(config.py:1249) | initialized checks.d checks: ['kube_dns', 'network', 'kubernetes', 'ntp', 'docker_daemon', 'http_check', 'system_core', 'redisdb', 'disk', 'kube_proxy']
2018-05-17 11:30:31 UTC | INFO | dd.collector | config(config.py:1250) | initialization failed... | gaierror |
def _get_replica_stats(self, db, is_mariadb, replication_channel):
replica_results = defaultdict(dict)
try:
with closing(db.cursor(pymysql.cursors.DictCursor)) as cursor:
if is_mariadb and replication_channel:
cursor.execute(
"SET @@default_master_connecti... | def _get_replica_stats(self, db, is_mariadb, replication_channel):
replica_results = {}
try:
with closing(db.cursor(pymysql.cursors.DictCursor)) as cursor:
if is_mariadb and replication_channel:
cursor.execute(
"SET @@default_master_connection = '{0}';".fo... | https://github.com/DataDog/integrations-core/issues/1127 | 2018-02-16 06:40:03 PST | DEBUG | dd.collector | checks.mysql(mysql.py:702) | Collecting data with performance_schema
2018-02-16 06:40:03 PST | DEBUG | dd.collector | checks.mysql(mysql.py:706) | Collecting done, value OFF
2018-02-16 06:40:03 PST | DEBUG | dd.collector | checks.mysql(mysql.py:653) | MySQL version ['5',... | ValueError |
async def data(
self,
request,
database,
hash,
table,
default_labels=False,
_next=None,
_size=None,
):
canned_query = await self.ds.get_canned_query(database, table, request.actor)
if canned_query:
return await QueryView(self.ds).data(
request,
dat... | async def data(
self,
request,
database,
hash,
table,
default_labels=False,
_next=None,
_size=None,
):
canned_query = await self.ds.get_canned_query(database, table, request.actor)
if canned_query:
return await QueryView(self.ds).data(
request,
dat... | https://github.com/simonw/datasette/issues/1134 | Traceback (most recent call last):
File "/Users/cjk/.local/share/virtualenvs/minutes-jMDZ8Ssk/lib/python3.7/site-packages/datasette/utils/asgi.py", line 122, in route_path
return await view(new_scope, receive, send)
File "/Users/cjk/.local/share/virtualenvs/minutes-jMDZ8Ssk/lib/python3.7/site-packages/datasette/utils/a... | IndexError |
async def options(self, request, *args, **kwargs):
r = Response.text("ok")
if self.ds.cors:
r.headers["Access-Control-Allow-Origin"] = "*"
return r
| def options(self, request, *args, **kwargs):
r = Response.text("ok")
if self.ds.cors:
r.headers["Access-Control-Allow-Origin"] = "*"
return r
| https://github.com/simonw/datasette/issues/1100 | Traceback (most recent call last):
File "[path-to-python]/site-packages/datasette/app.py", line 1033, in route_path
response = await view(request, send)
File "[path-to-python]/site-packages/datasette/views/base.py", line 146, in view
request, **request.scope["url_route"]["kwargs"]
File "[path-to-python]/site-packages/d... | TypeError |
def link_or_copy_directory(src, dst):
try:
copytree(src, dst, copy_function=os.link, dirs_exist_ok=True)
except OSError:
copytree(src, dst, dirs_exist_ok=True)
| def link_or_copy_directory(src, dst):
try:
shutil.copytree(src, dst, copy_function=os.link, dirs_exist_ok=True)
except OSError:
shutil.copytree(src, dst, dirs_exist_ok=True)
| https://github.com/simonw/datasette/issues/744 | Traceback (most recent call last):
File "/home/aborruso/.local/lib/python3.7/site-packages/datasette/utils/__init__.py", line 607, in link_or_copy_directory
shutil.copytree(src, dst, copy_function=os.link)
File "/usr/lib/python3.7/shutil.py", line 365, in copytree
raise Error(errors)
shutil.Error: [('/myfolder/youtubeC... | shutil.Error |
def link_or_copy_directory(src, dst):
try:
shutil.copytree(src, dst, copy_function=os.link, dirs_exist_ok=True)
except OSError:
shutil.copytree(src, dst, dirs_exist_ok=True)
| def link_or_copy_directory(src, dst):
try:
shutil.copytree(src, dst, copy_function=os.link)
except OSError:
shutil.copytree(src, dst)
| https://github.com/simonw/datasette/issues/744 | Traceback (most recent call last):
File "/home/aborruso/.local/lib/python3.7/site-packages/datasette/utils/__init__.py", line 607, in link_or_copy_directory
shutil.copytree(src, dst, copy_function=os.link)
File "/usr/lib/python3.7/shutil.py", line 365, in copytree
raise Error(errors)
shutil.Error: [('/myfolder/youtubeC... | shutil.Error |
def link_or_copy(src, dst):
# Intended for use in populating a temp directory. We link if possible,
# but fall back to copying if the temp directory is on a different device
# https://github.com/simonw/datasette/issues/141
try:
os.link(src, dst)
except shutil.Error:
shutil.copyfile(s... | def link_or_copy(src, dst):
# Intended for use in populating a temp directory. We link if possible,
# but fall back to copying if the temp directory is on a different device
# https://github.com/simonw/datasette/issues/141
try:
os.link(src, dst)
except OSError:
shutil.copyfile(src, d... | https://github.com/simonw/datasette/issues/744 | Traceback (most recent call last):
File "/home/aborruso/.local/lib/python3.7/site-packages/datasette/utils/__init__.py", line 607, in link_or_copy_directory
shutil.copytree(src, dst, copy_function=os.link)
File "/usr/lib/python3.7/shutil.py", line 365, in copytree
raise Error(errors)
shutil.Error: [('/myfolder/youtubeC... | shutil.Error |
def path(self):
if "raw_path" in self.scope:
return self.scope["raw_path"].decode("latin-1")
else:
return self.scope["path"].decode("utf-8")
| def path(self):
return (self.scope.get("raw_path", self.scope["path"].encode("latin-1"))).decode(
"latin-1"
)
| https://github.com/simonw/datasette/issues/558 | Traceback (most recent call last):
File "/home/zhe/miniconda3/lib/python3.7/site-packages/datasette/utils/asgi.py", line 100, in __call__
return await view(new_scope, receive, send)
File "/home/zhe/miniconda3/lib/python3.7/site-packages/datasette/utils/asgi.py", line 172, in view
request, **scope["url_route"]["kwargs"]... | UnicodeEncodeError |
def generate_new_attacked_text(self, new_words):
"""Returns a new AttackedText object and replaces old list of words
with a new list of words, but preserves the punctuation and spacing of
the original message.
``self.words`` is a list of the words in the current text with
punctuation removed. Howev... | def generate_new_attacked_text(self, new_words):
"""Returns a new AttackedText object and replaces old list of words
with a new list of words, but preserves the punctuation and spacing of
the original message.
``self.words`` is a list of the words in the current text with
punctuation removed. Howev... | https://github.com/QData/TextAttack/issues/238 | Attack: 68%|██████████████████████████████████████████████████████████████████████████████████████████▌ | 676/1000 [04:33<02:11, 2.47it/s]
Traceback (most recent call last):
File "/u/jm8wx/.conda/envs/torch/bin/textattack", line 33, in <module>
sys.exit(load_entry_point('text... | IndexError |
def train_model(args):
logger.warn(
"WARNING: TextAttack's model training feature is in beta. Please report any issues on our Github page, https://github.com/QData/TextAttack/issues."
)
start_time = time.time()
make_directories(args.output_dir)
num_gpus = torch.cuda.device_count()
# Sa... | def train_model(args):
logger.warn(
"WARNING: TextAttack's model training feature is in beta. Please report any issues on our Github page, https://github.com/QData/TextAttack/issues."
)
start_time = time.time()
make_directories(args.output_dir)
num_gpus = torch.cuda.device_count()
# Sa... | https://github.com/QData/TextAttack/issues/165 | $ textattack train --model distilbert-base-uncased --dataset glue:wnli --batch-size 128 --epochs 5 --max-length 256 --learning-rate 3e-05
...
Traceback (most recent call last):
File "/u/jm8wx/.conda/envs/torch/bin/textattack", line 33, in <module>
sys.exit(load_entry_point('textattack', 'console_scripts', 'textattack... | ValueError |
def prepare_dataset_for_training(nlp_dataset):
"""Changes an `nlp` dataset into the proper format for tokenization."""
def prepare_example_dict(ex):
"""Returns the values in order corresponding to the data.
ex:
'Some text input'
or in the case of multi-sequence inputs:
... | def prepare_dataset_for_training(nlp_dataset):
"""Changes an `nlp` dataset into the proper format for tokenization."""
def prepare_example_dict(ex):
"""Returns the values in order corresponding to the data.
ex:
'Some text input'
or in the case of multi-sequence inputs:
... | https://github.com/QData/TextAttack/issues/165 | $ textattack train --model distilbert-base-uncased --dataset glue:wnli --batch-size 128 --epochs 5 --max-length 256 --learning-rate 3e-05
...
Traceback (most recent call last):
File "/u/jm8wx/.conda/envs/torch/bin/textattack", line 33, in <module>
sys.exit(load_entry_point('textattack', 'console_scripts', 'textattack... | ValueError |
def prepare_example_dict(ex):
"""Returns the values in order corresponding to the data.
ex:
'Some text input'
or in the case of multi-sequence inputs:
('The premise', 'the hypothesis',)
etc.
"""
values = list(ex.values())
if len(values) == 1:
return values[0]
ret... | def prepare_example_dict(ex):
"""Returns the values in order corresponding to the data.
ex:
'Some text input'
or in the case of multi-sequence inputs:
('The premise', 'the hypothesis',)
etc.
"""
values = list(ex.values())
if len(values) == 1:
return values[0]
ret... | https://github.com/QData/TextAttack/issues/165 | $ textattack train --model distilbert-base-uncased --dataset glue:wnli --batch-size 128 --epochs 5 --max-length 256 --learning-rate 3e-05
...
Traceback (most recent call last):
File "/u/jm8wx/.conda/envs/torch/bin/textattack", line 33, in <module>
sys.exit(load_entry_point('textattack', 'console_scripts', 'textattack... | ValueError |
def __init__(
self, word_id_map={}, pad_token_id=None, unk_token_id=None, max_length=256
):
super().__init__(
word_id_map=word_id_map,
unk_token_id=unk_token_id,
pad_token_id=pad_token_id,
lowercase=True,
)
self.pad_id = pad_token_id
self.oov_id = unk_token_id
sel... | def __init__(
self, word_id_map={}, pad_token_id=None, unk_token_id=None, max_length=256
):
super().__init__(
word_id_map=word_id_map,
unk_token_id=unk_token_id,
pad_token_id=pad_token_id,
lowercase=True,
)
self.pad_id = pad_token_id
self.oov_id = unk_token_id
sel... | https://github.com/QData/TextAttack/issues/165 | $ textattack train --model distilbert-base-uncased --dataset glue:wnli --batch-size 128 --epochs 5 --max-length 256 --learning-rate 3e-05
...
Traceback (most recent call last):
File "/u/jm8wx/.conda/envs/torch/bin/textattack", line 33, in <module>
sys.exit(load_entry_point('textattack', 'console_scripts', 'textattack... | ValueError |
def _validate_natural(value):
if value <= 0:
raise exceptions.ApiError("Must be greater than zero", status_code=422)
| def _validate_natural(value):
if value < 0:
raise exceptions.ApiError("Must be a natural number", status_code=422)
| https://github.com/fecgov/openFEC/issues/4486 | 2020-07-20T10:41:24.80-0400 [APP/PROC/WEB/4] ERR [2020-07-20 14:41:24 +0000] [301] [ERROR] Error handling request /v1/candidates/?sort_nulls_last=false&sort_hide_null=false&office=P&per_page=100&sort_null_only=false&sort=name&page=0&election_year=2024
2020-07-20T10:41:24.80-0400 [APP/PROC/WE... | psycopg2.error |
def sort_args(self):
return args.make_sort_args(
validator=args.IndexValidator(
self.model,
extra=["candidate_name", "committee_name", "candidate_id", "committee_id"],
),
)
| def sort_args(self):
return args.make_sort_args(
validator=args.IndexValidator(
self.model,
extra=["candidate", "committee"],
),
)
| https://github.com/fecgov/openFEC/issues/4360 | 2020-05-18T14:16:00.43-0400 [RTR/1] OUT fec-prod-api.app.cloud.gov - [2020-05-18T18:16:00.388886389Z] "GET /v1/schedules/schedule_e/by_candidate/?sort_hide_null=false&sort_nulls_last=true&sort=candidate&per_page=10&page=1&cycle=2020&election_full=true&duration=6&office=senate&state=C... | sqlalchemy.exc.CompileError |
def update_view_configuration():
reboot_required = False
to_save = request.form.to_dict()
_config_string = lambda x: config.set_from_dictionary(
to_save, x, lambda y: y.strip() if y else y
)
_config_int = lambda x: config.set_from_dictionary(to_save, x, int)
_config_string("config_cali... | def update_view_configuration():
reboot_required = False
to_save = request.form.to_dict()
_config_string = lambda x: config.set_from_dictionary(
to_save, x, lambda y: y.strip() if y else y
)
_config_int = lambda x: config.set_from_dictionary(to_save, x, int)
_config_string("config_cali... | https://github.com/janeczku/calibre-web/issues/1387 | [services.d] starting services
[services.d] done.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
cursor, statement, parameters, context
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/default.py", line 590, in do_... | sqlite3.InterfaceError |
def save(self):
"""Apply all configuration values to the underlying storage."""
s = self._read_from_storage() # type: _Settings
if self.config_google_drive_watch_changes_response:
self.config_google_drive_watch_changes_response = json.dumps(
self.config_google_drive_watch_changes_respo... | def save(self):
"""Apply all configuration values to the underlying storage."""
s = self._read_from_storage() # type: _Settings
for k, v in self.__dict__.items():
if k[0] == "_":
continue
if hasattr(s, k):
setattr(s, k, v)
log.debug("_ConfigSQL updating storage... | https://github.com/janeczku/calibre-web/issues/1387 | [services.d] starting services
[services.d] done.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
cursor, statement, parameters, context
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/default.py", line 590, in do_... | sqlite3.InterfaceError |
def _configuration_update_helper():
reboot_required = False
db_change = False
to_save = request.form.to_dict()
to_save["config_calibre_dir"] = re.sub(
"[[\\/]metadata\.db$", "", to_save["config_calibre_dir"], flags=re.IGNORECASE
)
db_change |= _config_string(to_save, "config_calibre_dir... | def _configuration_update_helper():
reboot_required = False
db_change = False
to_save = request.form.to_dict()
db_change |= _config_string(to_save, "config_calibre_dir")
# Google drive setup
gdriveError = _configuration_gdrive_helper(to_save)
reboot_required |= _config_int(to_save, "confi... | https://github.com/janeczku/calibre-web/issues/1356 | Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/... | InvalidRequestError |
def migrate_Database(session):
engine = session.bind
if not engine.dialect.has_table(engine.connect(), "book_read_link"):
ReadBook.__table__.create(bind=engine)
if not engine.dialect.has_table(engine.connect(), "bookmark"):
Bookmark.__table__.create(bind=engine)
if not engine.dialect.has... | def migrate_Database(session):
engine = session.bind
if not engine.dialect.has_table(engine.connect(), "book_read_link"):
ReadBook.__table__.create(bind=engine)
if not engine.dialect.has_table(engine.connect(), "bookmark"):
Bookmark.__table__.create(bind=engine)
if not engine.dialect.has... | https://github.com/janeczku/calibre-web/issues/1391 | [2020-05-13 09:25:49,687] INFO {cps.kobo:132} Kobo library sync request received.
[2020-05-13 09:25:49,687] DEBUG {cps.kobo:134} Kobo: Received unproxied request, changed request port to server port
[2020-05-13 09:25:49,737] ERROR {cps:1892} Exception on /kobo/token*******/v1/library/sync [GET]
Traceback (most recent ... | AttributeError |
def get_metadata(book):
download_urls = []
for book_data in book.data:
if book_data.format not in KOBO_FORMATS:
continue
for kobo_format in KOBO_FORMATS[book_data.format]:
# log.debug('Id: %s, Format: %s' % (book.id, kobo_format))
download_urls.append(
... | def get_metadata(book):
download_urls = []
for book_data in book.data:
if book_data.format not in KOBO_FORMATS:
continue
for kobo_format in KOBO_FORMATS[book_data.format]:
# log.debug('Id: %s, Format: %s' % (book.id, kobo_format))
download_urls.append(
... | https://github.com/janeczku/calibre-web/issues/1391 | [2020-05-13 09:25:49,687] INFO {cps.kobo:132} Kobo library sync request received.
[2020-05-13 09:25:49,687] DEBUG {cps.kobo:134} Kobo: Received unproxied request, changed request port to server port
[2020-05-13 09:25:49,737] ERROR {cps:1892} Exception on /kobo/token*******/v1/library/sync [GET]
Traceback (most recent ... | AttributeError |
def run(self):
main_thread = _get_main_thread()
while main_thread.is_alive():
doLock = threading.Lock()
doLock.acquire()
if self.current != self.last:
index = self.current
doLock.release()
if self.queue[index]["taskType"] == TASK_EMAIL:
... | def run(self):
main_thread = _get_main_thread()
while main_thread.is_alive():
doLock = threading.Lock()
doLock.acquire()
if self.current != self.last:
doLock.release()
if self.queue[self.current]["taskType"] == TASK_EMAIL:
self._send_raw_email()
... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def get_taskstatus(self):
doLock = threading.Lock()
doLock.acquire()
if self.current < len(self.queue):
if self.UIqueue[self.current]["stat"] == STAT_STARTED:
if self.queue[self.current]["taskType"] == TASK_EMAIL:
self.UIqueue[self.current]["progress"] = self.get_send_sta... | def get_taskstatus(self):
if self.current < len(self.queue):
if self.UIqueue[self.current]["stat"] == STAT_STARTED:
if self.queue[self.current]["taskType"] == TASK_EMAIL:
self.UIqueue[self.current]["progress"] = self.get_send_status()
self.UIqueue[self.current]["formR... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _convert_any_format(self):
# convert book, and upload in case of google drive
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.UIqueue[index]["stat"] = STAT_STARTED
self.queue[index]["starttime"] = datetime.now()
self.UIqueue[index]["formStarttime... | def _convert_any_format(self):
# convert book, and upload in case of google drive
self.UIqueue[self.current]["stat"] = STAT_STARTED
self.queue[self.current]["starttime"] = datetime.now()
self.UIqueue[self.current]["formStarttime"] = self.queue[self.current]["starttime"]
curr_task = self.queue[self.c... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _convert_ebook_format(self):
error_message = None
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
file_path = self.queue[index]["file_path"]
bookid = self.queue[index]["bookid"]
format_old_ext = "." + self.queue[index]["settings"]["old_book_format"].l... | def _convert_ebook_format(self):
error_message = None
file_path = self.queue[self.current]["file_path"]
bookid = self.queue[self.current]["bookid"]
format_old_ext = (
"." + self.queue[self.current]["settings"]["old_book_format"].lower()
)
format_new_ext = (
"." + self.queue[self.... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _send_raw_email(self):
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.queue[index]["starttime"] = datetime.now()
self.UIqueue[index]["formStarttime"] = self.queue[index]["starttime"]
self.UIqueue[index]["stat"] = STAT_STARTED
obj = self.queue[in... | def _send_raw_email(self):
self.queue[self.current]["starttime"] = datetime.now()
self.UIqueue[self.current]["formStarttime"] = self.queue[self.current]["starttime"]
self.UIqueue[self.current]["stat"] = STAT_STARTED
obj = self.queue[self.current]
# create MIME message
msg = MIMEMultipart()
m... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _handleError(self, error_message):
log.error(error_message)
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.UIqueue[index]["stat"] = STAT_FAIL
self.UIqueue[index]["progress"] = "100 %"
self.UIqueue[index]["formRuntime"] = (
datetime.now()... | def _handleError(self, error_message):
log.error(error_message)
self.UIqueue[self.current]["stat"] = STAT_FAIL
self.UIqueue[self.current]["progress"] = "100 %"
self.UIqueue[self.current]["formRuntime"] = (
datetime.now() - self.queue[self.current]["starttime"]
)
self.UIqueue[self.current... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _handleSuccess(self):
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.UIqueue[index]["stat"] = STAT_FINISH_SUCCESS
self.UIqueue[index]["progress"] = "100 %"
self.UIqueue[index]["formRuntime"] = (
datetime.now() - self.queue[self.current]["sta... | def _handleSuccess(self):
self.UIqueue[self.current]["stat"] = STAT_FINISH_SUCCESS
self.UIqueue[self.current]["progress"] = "100 %"
self.UIqueue[self.current]["formRuntime"] = (
datetime.now() - self.queue[self.current]["starttime"]
)
| https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def __init__(self):
threading.Thread.__init__(self)
self.status = 0
self.current = 0
self.last = 0
self.queue = list()
self.UIqueue = list()
self.asyncSMTP = None
self.id = 0
self.doLock = threading.Lock()
| def __init__(self):
threading.Thread.__init__(self)
self.status = 0
self.current = 0
self.last = 0
self.queue = list()
self.UIqueue = list()
self.asyncSMTP = None
self.id = 0
| https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def run(self):
main_thread = _get_main_thread()
while main_thread.is_alive():
self.doLock.acquire()
if self.current != self.last:
index = self.current
self.doLock.release()
if self.queue[index]["taskType"] == TASK_EMAIL:
self._send_raw_email()
... | def run(self):
main_thread = _get_main_thread()
while main_thread.is_alive():
doLock = threading.Lock()
doLock.acquire()
if self.current != self.last:
index = self.current
doLock.release()
if self.queue[index]["taskType"] == TASK_EMAIL:
... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def get_taskstatus(self):
self.doLock.acquire()
if self.current < len(self.queue):
if self.UIqueue[self.current]["stat"] == STAT_STARTED:
if self.queue[self.current]["taskType"] == TASK_EMAIL:
self.UIqueue[self.current]["progress"] = self.get_send_status()
self.UI... | def get_taskstatus(self):
doLock = threading.Lock()
doLock.acquire()
if self.current < len(self.queue):
if self.UIqueue[self.current]["stat"] == STAT_STARTED:
if self.queue[self.current]["taskType"] == TASK_EMAIL:
self.UIqueue[self.current]["progress"] = self.get_send_sta... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _convert_any_format(self):
# convert book, and upload in case of google drive
self.doLock.acquire()
index = self.current
self.doLock.release()
self.UIqueue[index]["stat"] = STAT_STARTED
self.queue[index]["starttime"] = datetime.now()
self.UIqueue[index]["formStarttime"] = self.queue[self... | def _convert_any_format(self):
# convert book, and upload in case of google drive
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.UIqueue[index]["stat"] = STAT_STARTED
self.queue[index]["starttime"] = datetime.now()
self.UIqueue[index]["formStarttime... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _convert_ebook_format(self):
error_message = None
self.doLock.acquire()
index = self.current
self.doLock.release()
file_path = self.queue[index]["file_path"]
bookid = self.queue[index]["bookid"]
format_old_ext = "." + self.queue[index]["settings"]["old_book_format"].lower()
format_ne... | def _convert_ebook_format(self):
error_message = None
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
file_path = self.queue[index]["file_path"]
bookid = self.queue[index]["bookid"]
format_old_ext = "." + self.queue[index]["settings"]["old_book_format"].l... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _send_raw_email(self):
self.doLock.acquire()
index = self.current
self.doLock.release()
self.queue[index]["starttime"] = datetime.now()
self.UIqueue[index]["formStarttime"] = self.queue[index]["starttime"]
self.UIqueue[index]["stat"] = STAT_STARTED
obj = self.queue[index]
# create MI... | def _send_raw_email(self):
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.queue[index]["starttime"] = datetime.now()
self.UIqueue[index]["formStarttime"] = self.queue[index]["starttime"]
self.UIqueue[index]["stat"] = STAT_STARTED
obj = self.queue[in... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _handleError(self, error_message):
log.error(error_message)
self.doLock.acquire()
index = self.current
self.doLock.release()
self.UIqueue[index]["stat"] = STAT_FAIL
self.UIqueue[index]["progress"] = "100 %"
self.UIqueue[index]["formRuntime"] = (
datetime.now() - self.queue[self.c... | def _handleError(self, error_message):
log.error(error_message)
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.UIqueue[index]["stat"] = STAT_FAIL
self.UIqueue[index]["progress"] = "100 %"
self.UIqueue[index]["formRuntime"] = (
datetime.now()... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def _handleSuccess(self):
self.doLock.acquire()
index = self.current
self.doLock.release()
self.UIqueue[index]["stat"] = STAT_FINISH_SUCCESS
self.UIqueue[index]["progress"] = "100 %"
self.UIqueue[index]["formRuntime"] = (
datetime.now() - self.queue[self.current]["starttime"]
)
| def _handleSuccess(self):
doLock = threading.Lock()
doLock.acquire()
index = self.current
doLock.release()
self.UIqueue[index]["stat"] = STAT_FINISH_SUCCESS
self.UIqueue[index]["progress"] = "100 %"
self.UIqueue[index]["formRuntime"] = (
datetime.now() - self.queue[self.current]["sta... | https://github.com/janeczku/calibre-web/issues/890 | Traceback (most recent call last):
File "calibre-web/vendor/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "calibre-web/vendor/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "calibre-web/vendor/flask/app.py", line 1718, in handle_user_excep... | IndexError |
def remove_from_shelf(shelf_id, book_id):
xhr = request.headers.get("X-Requested-With") == "XMLHttpRequest"
shelf = ub.session.query(ub.Shelf).filter(ub.Shelf.id == shelf_id).first()
if shelf is None:
log.error("Invalid shelf specified: %s", shelf_id)
if not xhr:
return redirect(... | def remove_from_shelf(shelf_id, book_id):
xhr = request.headers.get("X-Requested-With") == "XMLHttpRequest"
shelf = ub.session.query(ub.Shelf).filter(ub.Shelf.id == shelf_id).first()
if shelf is None:
log.error("Invalid shelf specified: %s", shelf_id)
if not xhr:
return redirect(... | https://github.com/janeczku/calibre-web/issues/1199 | Internal Server Error
500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2446, in wsgi_ap... | KeyError |
def send_to_kindle(book_id, book_format, convert):
if not config.get_mail_server_configured():
flash(_("Please configure the SMTP mail settings first..."), category="error")
elif current_user.kindle_mail:
result = send_mail(
book_id,
book_format,
convert,
... | def send_to_kindle(book_id, book_format, convert):
if not config.get_mail_server_configured():
flash(_("Please configure the SMTP mail settings first..."), category="error")
elif current_user.kindle_mail:
result = send_mail(
book_id,
book_format,
convert,
... | https://github.com/janeczku/calibre-web/issues/1199 | Internal Server Error
500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2446, in wsgi_ap... | KeyError |
def render_task_status(tasklist):
renderedtasklist = list()
for task in tasklist:
if task["user"] == current_user.nickname or current_user.role_admin():
if task["formStarttime"]:
task["starttime"] = format_datetime(
task["formStarttime"], format="short", l... | def render_task_status(tasklist):
renderedtasklist = list()
for task in tasklist:
if task["user"] == current_user.nickname or current_user.role_admin():
if task["formStarttime"]:
task["starttime"] = format_datetime(
task["formStarttime"], format="short", l... | https://github.com/janeczku/calibre-web/issues/959 | Jul 11 20:01:27 lara python3[24820]: [2019-07-11 20:01:27,270] INFO in worker: Book id 42929 - target format of .mobi does not exist. Moving forward with convert.
Jul 11 20:01:27 lara python3[24820]: [2019-07-11 20:01:27,784] DEBUG in worker: 1% Converting input to HTML...
Jul 11 20:01:27 lara python3[24820]: [2019-07-... | KeyError |
def read_book(book_id, book_format):
book = db.session.query(db.Books).filter(db.Books.id == book_id).first()
if not book:
flash(
_("Error opening eBook. File does not exist or file is not accessible:"),
category="error",
)
return redirect(url_for("index"))
#... | def read_book(book_id, book_format):
book = db.session.query(db.Books).filter(db.Books.id == book_id).first()
if not book:
flash(
_("Error opening eBook. File does not exist or file is not accessible:"),
category="error",
)
return redirect(url_for("index"))
#... | https://github.com/janeczku/calibre-web/issues/897 | [2019-04-29 08:55:11,436] ERROR in app: Exception on /read/4/zip [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1816, in full_dispatch_request
return ... | TypeError |
def check_read_formats(entry):
EXTENSIONS_READER = {"TXT", "PDF", "EPUB", "CBZ", "CBT", "CBR"}
bookformats = list()
if len(entry.data):
for ele in iter(entry.data):
if ele.format in EXTENSIONS_READER:
bookformats.append(ele.format.lower())
return bookformats
| def check_read_formats(entry):
EXTENSIONS_READER = {"TXT", "PDF", "EPUB", "ZIP", "CBZ", "TAR", "CBT", "RAR", "CBR"}
bookformats = list()
if len(entry.data):
for ele in iter(entry.data):
if ele.format in EXTENSIONS_READER:
bookformats.append(ele.format.lower())
return ... | https://github.com/janeczku/calibre-web/issues/897 | [2019-04-29 08:55:11,436] ERROR in app: Exception on /read/4/zip [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1816, in full_dispatch_request
return ... | TypeError |
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datetime)):
return obj.isoformat()
if isinstance(obj, (timedelta)):
return {
"__type__": "timedelta",
"days": obj.days,
"seconds": obj.second... | def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datetime)):
return obj.isoformat()
raise TypeError("Type %s not serializable" % type(obj))
| https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def render_task_status(tasklist):
renderedtasklist = list()
for task in tasklist:
if task["user"] == current_user.nickname or current_user.role_admin():
if task["formStarttime"]:
task["starttime"] = format_datetime(
task["formStarttime"], format="short", l... | def render_task_status(tasklist):
renderedtasklist = list()
for task in tasklist:
if task["user"] == current_user.nickname or current_user.role_admin():
if task["formStarttime"]:
task["starttime"] = format_datetime(
task["formStarttime"], format="short", l... | https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def new_user():
content = ub.User()
languages = speaking_language()
translations = [LC("en")] + babel.list_translations()
if request.method == "POST":
to_save = request.form.to_dict()
content.default_language = to_save["default_language"]
content.mature_content = "show_mature_con... | def new_user():
content = ub.User()
languages = speaking_language()
translations = [LC("en")] + babel.list_translations()
if request.method == "POST":
to_save = request.form.to_dict()
content.default_language = to_save["default_language"]
content.mature_content = "show_mature_con... | https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def edit_user(user_id):
content = ub.session.query(ub.User).filter(ub.User.id == int(user_id)).first() # type: ub.User
downloads = list()
languages = speaking_language()
translations = babel.list_translations() + [LC("en")]
for book in content.downloads:
downloadbook = (
db.sess... | def edit_user(user_id):
content = ub.session.query(ub.User).filter(ub.User.id == int(user_id)).first() # type: ub.User
downloads = list()
languages = speaking_language()
translations = babel.list_translations() + [LC("en")]
for book in content.downloads:
downloadbook = (
db.sess... | https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def get_taskstatus(self):
if self.current < len(self.queue):
if self.UIqueue[self.current]["stat"] == STAT_STARTED:
if self.queue[self.current]["taskType"] == TASK_EMAIL:
self.UIqueue[self.current]["progress"] = self.get_send_status()
self.UIqueue[self.current]["formR... | def get_taskstatus(self):
if self.current < len(self.queue):
if self.UIqueue[self.current]["stat"] == STAT_STARTED:
if self.queue[self.current]["taskType"] == TASK_EMAIL:
self.UIqueue[self.current]["progress"] = self.get_send_status()
self.UIqueue[self.current]["runti... | https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def _convert_ebook_format(self):
error_message = None
file_path = self.queue[self.current]["file_path"]
bookid = self.queue[self.current]["bookid"]
format_old_ext = (
"." + self.queue[self.current]["settings"]["old_book_format"].lower()
)
format_new_ext = (
"." + self.queue[self.... | def _convert_ebook_format(self):
error_message = None
file_path = self.queue[self.current]["file_path"]
bookid = self.queue[self.current]["bookid"]
format_old_ext = (
"." + self.queue[self.current]["settings"]["old_book_format"].lower()
)
format_new_ext = (
"." + self.queue[self.... | https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def _handleError(self, error_message):
web.app.logger.error(error_message)
self.UIqueue[self.current]["stat"] = STAT_FAIL
self.UIqueue[self.current]["progress"] = "100 %"
self.UIqueue[self.current]["formRuntime"] = (
datetime.now() - self.queue[self.current]["starttime"]
)
self.UIqueue[s... | def _handleError(self, error_message):
web.app.logger.error(error_message)
self.UIqueue[self.current]["stat"] = STAT_FAIL
self.UIqueue[self.current]["progress"] = "100 %"
self.UIqueue[self.current]["runtime"] = self._formatRuntime(
datetime.now() - self.queue[self.current]["starttime"]
)
... | https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def _handleSuccess(self):
self.UIqueue[self.current]["stat"] = STAT_FINISH_SUCCESS
self.UIqueue[self.current]["progress"] = "100 %"
self.UIqueue[self.current]["formRuntime"] = (
datetime.now() - self.queue[self.current]["starttime"]
)
| def _handleSuccess(self):
self.UIqueue[self.current]["stat"] = STAT_FINISH_SUCCESS
self.UIqueue[self.current]["progress"] = "100 %"
self.UIqueue[self.current]["runtime"] = self._formatRuntime(
datetime.now() - self.queue[self.current]["starttime"]
)
| https://github.com/janeczku/calibre-web/issues/954 | [2019-06-28 22:37:50,052] ERROR in app: Exception on /tasks [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.ha... | ValueError |
def pdf_preview(tmp_file_path, tmp_dir):
if use_generic_pdf_cover:
return None
else:
if use_PIL:
try:
input1 = PdfFileReader(open(tmp_file_path, "rb"), strict=False)
page0 = input1.getPage(0)
xObject = page0["/Resources"]["/XObject"].ge... | def pdf_preview(tmp_file_path, tmp_dir):
if use_generic_pdf_cover:
return None
else:
try:
input1 = PdfFileReader(open(tmp_file_path, "rb"), strict=False)
page0 = input1.getPage(0)
xObject = page0["/Resources"]["/XObject"].getObject()
for obj in xO... | https://github.com/janeczku/calibre-web/issues/885 | c:\CalibreWeb>python37 cps.py
Traceback (most recent call last):
File "cps.py", line 13, in <module>
from cps.server import Server
File "c:\CalibreWeb\cps\server.py", line 25, in <module>
import web
File "c:\CalibreWeb\cps\web.py", line 38, in <module>
import helper
File "c:\CalibreWeb\cps\helper.py", line 38, in <modu... | ModuleNotFoundError |
def save_cover(img, book_path):
content_type = img.headers.get("content-type")
if content_type not in ("image/jpeg", "image/png", "image/webp"):
web.app.logger.error("Only jpg/jpeg/png/webp files are supported as coverfile")
return False
if use_PIL:
# convert to jpg because calibre ... | def save_cover(img, book_path):
content_type = img.headers.get("content-type")
if content_type not in ("image/jpeg", "image/png", "image/webp"):
web.app.logger.error("Only jpg/jpeg/png/webp files are supported as coverfile")
return False
# convert to jpg because calibre only supports jpg
... | https://github.com/janeczku/calibre-web/issues/885 | c:\CalibreWeb>python37 cps.py
Traceback (most recent call last):
File "cps.py", line 13, in <module>
from cps.server import Server
File "c:\CalibreWeb\cps\server.py", line 25, in <module>
import web
File "c:\CalibreWeb\cps\web.py", line 38, in <module>
import helper
File "c:\CalibreWeb\cps\helper.py", line 38, in <modu... | ModuleNotFoundError |
def convert_kindlegen(self):
error_message = None
file_path = self.queue[self.current]["file_path"]
bookid = self.queue[self.current]["bookid"]
if not os.path.exists(web.ub.config.config_converterpath):
error_message = _(
"kindlegen binary %(kindlepath)s not found",
kindl... | def convert_kindlegen(self):
error_message = None
file_path = self.queue[self.current]["file_path"]
bookid = self.queue[self.current]["bookid"]
if not os.path.exists(web.ub.config.config_converterpath):
error_message = _(
"kindlegen binary %(kindlepath)s not found",
kindl... | https://github.com/janeczku/calibre-web/issues/574 | Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/opt/calibre-web/cps/worker.py", line 167, in run
self.send_raw_email()
File "/opt/calibre-web/cps/worker.py", line 444, in send_raw_email
self.asyncSMTP = email_SSL(o... | TypeError |
def convert_calibre(self):
error_message = None
file_path = self.queue[self.current]["file_path"]
bookid = self.queue[self.current]["bookid"]
if not os.path.exists(web.ub.config.config_converterpath):
error_message = _(
"Ebook-convert binary %(converterpath)s not found",
... | def convert_calibre(self):
error_message = None
file_path = self.queue[self.current]["file_path"]
bookid = self.queue[self.current]["bookid"]
if not os.path.exists(web.ub.config.config_converterpath):
error_message = _(
"Ebook-convert binary %(converterpath)s not found",
... | https://github.com/janeczku/calibre-web/issues/574 | Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/opt/calibre-web/cps/worker.py", line 167, in run
self.send_raw_email()
File "/opt/calibre-web/cps/worker.py", line 444, in send_raw_email
self.asyncSMTP = email_SSL(o... | TypeError |
def pdf_meta(tmp_file_path, original_file_name, original_file_extension):
if use_pdf_meta:
pdf = PdfFileReader(open(tmp_file_path, "rb"), strict=False)
doc_info = pdf.getDocumentInfo()
else:
doc_info = None
if doc_info is not None:
author = doc_info.author if doc_info.author... | def pdf_meta(tmp_file_path, original_file_name, original_file_extension):
if use_pdf_meta:
pdf = PdfFileReader(open(tmp_file_path, "rb"))
doc_info = pdf.getDocumentInfo()
else:
doc_info = None
if doc_info is not None:
author = doc_info.author if doc_info.author else "Unknown... | https://github.com/janeczku/calibre-web/issues/20 | ERROR:cps.web:Exception on /book/125 [GET]
Traceback (most recent call last):
File "/Users/jgillman/Code/calibre-web/vendor/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/jgillman/Code/calibre-web/vendor/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user... | OperationalError |
def pdf_preview(tmp_file_path, tmp_dir):
if use_generic_pdf_cover:
return None
else:
try:
cover_file_name = os.path.splitext(tmp_file_path)[0] + ".cover.jpg"
with Image(filename=tmp_file_path + "[0]", resolution=150) as img:
img.compression_quality = 88
... | def pdf_preview(tmp_file_path, tmp_dir):
if use_generic_pdf_cover:
return None
else:
cover_file_name = os.path.splitext(tmp_file_path)[0] + ".cover.jpg"
with Image(filename=tmp_file_path + "[0]", resolution=150) as img:
img.compression_quality = 88
img.save(filena... | https://github.com/janeczku/calibre-web/issues/20 | ERROR:cps.web:Exception on /book/125 [GET]
Traceback (most recent call last):
File "/Users/jgillman/Code/calibre-web/vendor/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/jgillman/Code/calibre-web/vendor/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user... | OperationalError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.