Traceback (most recent call last):


 "/usr/local/bin/sam", line 11, in <module>

sys.exit(cli())


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 722, in __call__

return self.main(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 64, in new_func

return ctx.invoke(f, obj, *args[1:], **kwargs)


 "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/samcli/commands/local/generate_event/kinesis/cli.py", line 36, in cli

do_cli(ctx, region, partition, sequence, data)
# pragma: no cover


 "/usr/local/lib/python3.7/site-packages/samcli/commands/local/generate_event/kinesis/cli.py", line 47, in do_cli

event = json.dumps(event_dict, indent=4)


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 238, in dumps

**kw).encode(obj)


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 201, in encode

chunks = list(chunks)


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 431, in _iterencode

yield from _iterencode_dict(o, _current_indent_level)


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict

yield from chunks


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 325, in _iterencode_list

yield from chunks


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict

yield from chunks


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict

yield from chunks


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 438, in _iterencode

o = _default(o)


 "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 179, in default

raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable


Traceback (most recent call last):


 "/Users/bl755p/Documents/WRT_NLP.py", line 645, in <module>

convoNet.add(Input(shape=(None, maxRow, 29, 1)))


 "/Users/bl755p/anaconda/envs/ATT_NLP-TensorFlow/lib/python3.5/site-packages/keras/models.py", line 284, in add

'Found: ' + str(layer))

TypeError: The added layer must be an instance of class Layer. Found: Tensor("input_1:0", shape=(?, ?, 23, 29, 1), dtype=float32)
