{"action":"created","issue":{"url":"https://api.github.com/repos/openai/gym/issues/116","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/116/comments","events_url":"https://api.github.com/repos/openai/gym/issues/116/events","html_url":"https://github.com/openai/gym/issues/116","id":156245813,"number":116,"title":"python 2.7  stats_recorder.py   TypeError: array([-603.39919478]) is not JSON serializable","user":{"login":"zdx3578","id":382863,"avatar_url":"https://avatars.githubusercontent.com/u/382863?v=3","gravatar_id":"","url":"https://api.github.com/users/zdx3578","html_url":"https://github.com/zdx3578","followers_url":"https://api.github.com/users/zdx3578/followers","following_url":"https://api.github.com/users/zdx3578/following{/other_user}","gists_url":"https://api.github.com/users/zdx3578/gists{/gist_id}","starred_url":"https://api.github.com/users/zdx3578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdx3578/subscriptions","organizations_url":"https://api.github.com/users/zdx3578/orgs","repos_url":"https://api.github.com/users/zdx3578/repos","events_url":"https://api.github.com/users/zdx3578/events{/privacy}","received_events_url":"https://api.github.com/users/zdx3578/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-23T10:12:27Z","updated_at":"2016-05-27T01:02:07Z","closed_at":null,"body":"______________________________________________\r\n[2016-05-23 09:51:19,319] Starting new video recorder writing to /home/ubuntu/work/out/openaigym.video.None.10003.video000000.mp4\r\nXlib:  extension \"RANDR\" missing on display \":99\".\r\navconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers\r\n  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)\r\n[2016-05-23 09:54:02,025] Episode 1 finished after 400 timesteps, reward [-603.39919478]\r\n[2016-05-23 09:54:02,456] Starting new video recorder writing to /home/ubuntu/work/out/openaigym.video.None.10003.video000001.mp4\r\navconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers\r\n  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)\r\nTraceback (most recent call last):\r\n  File \"naf.py\", line 187, in <module>\r\n    observation = env.reset()\r\n  File \"/home/ubuntu/work/gym/gym/core.py\", line 113, in reset\r\n    self.monitor._after_reset(observation)\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/monitor.py\", line 238, in _after_reset\r\n    self.flush()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/monitor.py\", line 130, in flush\r\n    self.stats_recorder.flush()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/stats_recorder.py\", line 72, in flush\r\n    }, f)\r\n  File \"/usr/lib/python2.7/json/__init__.py\", line 189, in dump\r\n    for chunk in iterable:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 434, in _iterencode\r\n    for chunk in _iterencode_dict(o, _current_indent_level):\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 408, in _iterencode_dict\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 332, in _iterencode_list\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 442, in _iterencode\r\n    o = _default(o)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 184, in default\r\n    raise TypeError(repr(o) + \" is not JSON serializable\")\r\nTypeError: array([-603.39919478]) is not JSON serializable\r\nError in atexit._run_exitfuncs:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/atexit.py\", line 24, in _run_exitfuncs\r\n    func(*targs, **kargs)\r\n  File \"/home/ubuntu/work/gym/gym/utils/atexit_utils.py\", line 44, in close_envs_and_monitors\r\n    monitor_closer.close()\r\n  File \"/home/ubuntu/work/gym/gym/utils/atexit_utils.py\", line 36, in close\r\n    obj.close()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/monitor.py\", line 152, in close\r\n    self.stats_recorder.close()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/stats_recorder.py\", line 59, in close\r\n    self.flush()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/stats_recorder.py\", line 72, in flush\r\n    }, f)\r\n  File \"/usr/lib/python2.7/json/__init__.py\", line 189, in dump\r\n    for chunk in iterable:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 434, in _iterencode\r\n    for chunk in _iterencode_dict(o, _current_indent_level):\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 408, in _iterencode_dict\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 332, in _iterencode_list\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 442, in _iterencode\r\n    o = _default(o)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 184, in default\r\n    raise TypeError(repr(o) + \" is not JSON serializable\")\r\nTypeError: array([-603.39919478]) is not JSON serializable\r\nError in sys.exitfunc:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/atexit.py\", line 24, in _run_exitfuncs\r\n    func(*targs, **kargs)\r\n  File \"/home/ubuntu/work/gym/gym/utils/atexit_utils.py\", line 44, in close_envs_and_monitors\r\n    monitor_closer.close()\r\n  File \"/home/ubuntu/work/gym/gym/utils/atexit_utils.py\", line 36, in close\r\n    obj.close()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/monitor.py\", line 152, in close\r\n    self.stats_recorder.close()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/stats_recorder.py\", line 59, in close\r\n    self.flush()\r\n  File \"/home/ubuntu/work/gym/gym/monitoring/stats_recorder.py\", line 72, in flush\r\n    }, f)\r\n  File \"/usr/lib/python2.7/json/__init__.py\", line 189, in dump\r\n    for chunk in iterable:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 434, in _iterencode\r\n    for chunk in _iterencode_dict(o, _current_indent_level):\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 408, in _iterencode_dict\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 332, in _iterencode_list\r\n    for chunk in chunks:\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 442, in _iterencode\r\n    o = _default(o)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 184, in default\r\n    raise TypeError(repr(o) + \" is not JSON serializable\")\r\nTypeError: array([-603.39919478]) is not JSON serializable"},"comment":{"url":"https://api.github.com/repos/openai/gym/issues/comments/222035434","html_url":"https://github.com/openai/gym/issues/116#issuecomment-222035434","issue_url":"https://api.github.com/repos/openai/gym/issues/116","id":222035434,"user":{"login":"zdx3578","id":382863,"avatar_url":"https://avatars.githubusercontent.com/u/382863?v=3","gravatar_id":"","url":"https://api.github.com/users/zdx3578","html_url":"https://github.com/zdx3578","followers_url":"https://api.github.com/users/zdx3578/followers","following_url":"https://api.github.com/users/zdx3578/following{/other_user}","gists_url":"https://api.github.com/users/zdx3578/gists{/gist_id}","starred_url":"https://api.github.com/users/zdx3578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdx3578/subscriptions","organizations_url":"https://api.github.com/users/zdx3578/orgs","repos_url":"https://api.github.com/users/zdx3578/repos","events_url":"https://api.github.com/users/zdx3578/events{/privacy}","received_events_url":"https://api.github.com/users/zdx3578/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T01:02:07Z","updated_at":"2016-05-27T01:02:07Z","body":"HumanoidStandup-v1"}}
{"actor":{"display_login":"zdx3578"}}