Traceback (most recent call last):


 "/venv/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()


 "/venv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/venv/lib/python3.7/site-packages/flask_cors/decorator.py", line 128, in wrapped_function

resp = make_response(f(*args, **kwargs))


 "/venv/lib/python3.7/site-packages/alerta/auth/basic.py", line 76, in login

user = User.check_credentials(username, password)


 "/venv/lib/python3.7/site-packages/alerta/models/user.py", line 183, in check_credentials

user = User.find_by_username(username)


 "/venv/lib/python3.7/site-packages/alerta/models/user.py", line 147, in find_by_username

return User.from_db(db.get_user_by_username(username))


 "/venv/lib/python3.7/site-packages/alerta/models/user.py", line 135, in from_db

return cls.from_record(r)


 "/venv/lib/python3.7/site-packages/alerta/models/user.py", line 127, in from_record

email_verified=rec.email_verified


 "/venv/lib/python3.7/site-packages/alerta/models/user.py", line 31, in __init__

self.roles = ['admin'] if self.email in current_app.config['ADMIN_USERS'] else (roles or ['user'])
TypeError: 'in <string>' requires string as left operand, not NoneType

Traceback (most recent call last):


 "C:/Users/rdxhm/.PyCharmCE2017.2/config/scratches/scratch_15.py", line 7, in <module>

conv_layer = keras.layers.Conv1D(10, 2, input_dtype=dtype, dtype=dtype)(input_layer)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\engine\topology.py", line 617, in __call__

output = self.call(inputs, **kwargs)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\layers\convolutional.py", line 160, in call

dilation_rate=self.dilation_rate[0])


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 3294, in conv1d

data_format=tf_data_format)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 751, in convolution

return op(input, filter)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 835, in __call__

return self.conv_op(inp, filter)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 499, in __call__

return self.call(inp, filter)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 187, in __call__

name=self.name)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 177, in _conv1d

data_format=data_format, name=name)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 2204, in conv1d

data_format=data_format)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_nn_ops.py", line 630, in conv2d

data_format=data_format, name=name)


 "C:\Users\rdxhm\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 546, in _apply_op_helper

inferred_from[input_arg.type_attr]))
TypeError: Input 'filter' of 'Conv2D' Op has type float32 that does not match type float16 of argument 'input'.
