Traceback (most recent call last):


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/app.py", line 1598, in dispatch_request

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


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask_admin/base.py", line 69, in inner

return self._run_view(f, *args, **kwargs)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask_admin/base.py", line 368, in _run_view

return fn(self, *args, **kwargs)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask_login/utils.py", line 258, in decorated_view

return func(*args, **kwargs)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/airflow/utils/db.py", line 73, in wrapper

return func(*args, **kwargs)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/airflow/www/views.py", line 2224, in index

auto_complete_data=auto_complete_data)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask_admin/base.py", line 308, in render

return render_template(template, **kwargs)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/templating.py", line 134, in render_template

context, ctx.app)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask/templating.py", line 116, in _render

rv = template.render(context)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render

return original_render(self, *args, **kwargs)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render

return self.environment.handle_exception(exc_info, True)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception

reraise(exc_type, exc_value, tb)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise

raise value.with_traceback(tb)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/airflow/www/templates/airflow/dags.html", line 18, in top-level template code

{% extends "airflow/master.html" %}


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/airflow/www/templates/airflow/master.html", line 18, in top-level template code

{% extends "admin/master.html" %}


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/airflow/www/templates/admin/master.html", line 18, in top-level template code

{% extends 'admin/base.html' %}


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask_admin/templates/bootstrap3/admin/base.html", line 81, in top-level template code

{% block tail_js %}


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/airflow/www/templates/admin/master.html", line 44, in block "tail_js"

xhr.setRequestHeader("X-CSRFToken", "{{ csrf_token() }}");


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/flask_wtf/csrf.py", line 47, in generate_csrf

setattr(g, field_name, s.dumps(session[field_name]))


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/itsdangerous/serializer.py", line 166, in dumps

payload = want_bytes(self.dump_payload(obj))


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/itsdangerous/url_safe.py", line 42, in dump_payload

json = super(URLSafeSerializerMixin, self).dump_payload(obj)


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/itsdangerous/serializer.py", line 133, in dump_payload

return want_bytes(self.serializer.dumps(obj, **self.serializer_kwargs))


 "/Users/ian/taxi_pipeline/lib/python3.7/site-packages/itsdangerous/_json.py", line 18, in dumps

return json.dumps(obj, **kwargs)


 "/usr/local/Cellar/python/3.7.3/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.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 199, in encode

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


 "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/usr/local/Cellar/python/3.7.3/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):


 "run.py", line 64, in <module>

func(*args, **kwargs)


 "/home/rorym/pysystemtrade/sysproduction/interactive_diagnostics.py", line 64, in interactive_diagnostics

method_chosen(data)


 "/home/rorym/pysystemtrade/sysproduction/interactive_diagnostics.py", line 197, in strategy_report

run_report(report_config, data=data)


 "/home/rorym/pysystemtrade/sysproduction/diagnostic/reporting.py", line 23, in run_report

run_report_with_data_blob(report_config, data)


 "/home/rorym/pysystemtrade/sysproduction/diagnostic/reporting.py", line 37, in run_report_with_data_blob

report_results = report_function(data, **report_kwargs)


 "/home/rorym/pysystemtrade/sysproduction/diagnostic/strategies.py", line 35, in strategy_report

formatted_output = get_strategies_report_output(


 "/home/rorym/pysystemtrade/sysproduction/diagnostic/strategies.py", line 49, in get_strategies_report_output

strategy_format_output_list = get_output_for_single_strategy(


 "/home/rorym/pysystemtrade/sysproduction/diagnostic/strategies.py", line 70, in get_output_for_single_strategy

strategy_format_output_list = strategy_reporting_function(


 "/home/rorym/pysystemtrade/sysproduction/strategy_code/report_system_classic.py", line 139, in report_system_classic

timestamp_positions = get_position_at_timestamp_df_for_instrument_code_list(


 "/home/rorym/pysystemtrade/sysproduction/strategy_code/report_system_classic.py", line 488, in get_position_at_timestamp_df_for_instrument_code_list

position_df = pd.DataFrame(


 "/home/rorym/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 450, in __init__

arrays, columns = to_arrays(data, columns, dtype=dtype)


 "/home/rorym/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 487, in to_arrays

data = [tuple(x) for x in data]


 "/home/rorym/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 487, in <listcomp>

data = [tuple(x) for x in data]
TypeError: 'float' object is not iterable
