Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/home/sylwia/.local/lib/python2.7/site-packages/textacy/doc.py", line 95, in make_spacy_doc

type(data),
TypeError: `data` must be set([<type 'unicode'>, <type 'tuple'>]), not <type 'str'>

Traceback (most recent call last):


 "mysql_to_logstash.py", line 55, in <module>

main()


 "mysql_to_logstash.py", line 47, in main

print json.dumps(event)


 "/usr/lib64/python2.7/json/__init__.py", line 243, in dumps

return _default_encoder.encode(obj)


 "/usr/lib64/python2.7/json/encoder.py", line 207, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/lib64/python2.7/json/encoder.py", line 270, in iterencode

return _iterencode(o, 0)


 "/usr/lib64/python2.7/json/encoder.py", line 184, in default

raise TypeError(repr(o) + " is not JSON serializable")
TypeError: datetime.datetime(2018, 8, 14, 14, 0) is not JSON serializable
