Traceback (most recent call last):


 "second/pytorch/train.py", line 665, in <module>

fire.Fire()


 "/home/cxt/anaconda3/envs/second/lib/python3.6/site-packages/fire/core.py", line 138, in Fire

component_trace = _Fire(component, args, parsed_flag_args, context, name)


 "/home/cxt/anaconda3/envs/second/lib/python3.6/site-packages/fire/core.py", line 471, in _Fire

target=component.__name__)


 "/home/cxt/anaconda3/envs/second/lib/python3.6/site-packages/fire/core.py", line 675, in _CallAndUpdateTrace

component = fn(*varargs, **kwargs)


 "second/pytorch/train.py", line 425, in train

model_logging.log_text(json.dumps(example["metadata"], indent=2), step)


 "/home/cxt/anaconda3/envs/second/lib/python3.6/json/__init__.py", line 238, in dumps

**kw).encode(obj)


 "/home/cxt/anaconda3/envs/second/lib/python3.6/json/encoder.py", line 201, in encode

chunks = list(chunks)


 "/home/cxt/anaconda3/envs/second/lib/python3.6/json/encoder.py", line 428, in _iterencode

yield from _iterencode_list(o, _current_indent_level)


 "/home/cxt/anaconda3/envs/second/lib/python3.6/json/encoder.py", line 325, in _iterencode_list

yield from chunks


 "/home/cxt/anaconda3/envs/second/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict

yield from chunks


 "/home/cxt/anaconda3/envs/second/lib/python3.6/json/encoder.py", line 437, in _iterencode

o = _default(o)


 "/home/cxt/anaconda3/envs/second/lib/python3.6/json/encoder.py", line 180, in default

o.__class__.__name__)
TypeError: Object of type 'ndarray' is not JSON serializable

Traceback (most recent call last):


 "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py", line 141, in run

self.handle_error()


 "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\servers\basehttp.py", line 86, in handle_error

super().handle_error()


 "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py", line 368, in handle_error

self.finish_response()


 "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py", line 180, in finish_response

self.write(data)


 "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py", line 274, in write

self.send_headers()


 "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py", line 331, in send_headers

if not self.origin_server or self.client_is_modern():


 "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\wsgiref\handlers.py", line 344, in client_is_modern

return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'
TypeError: 'NoneType' object is not subscriptable
