{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6275","repository_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6275/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6275/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6275/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6275","id":354025260,"node_id":"MDU6SXNzdWUzNTQwMjUyNjA=","number":6275,"title":"A question about run Rl4j example","user":{"login":"Charele","id":42658390,"node_id":"MDQ6VXNlcjQyNjU4Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/42658390?v=4","gravatar_id":"","url":"https://api.github.com/users/Charele","html_url":"https://github.com/Charele","followers_url":"https://api.github.com/users/Charele/followers","following_url":"https://api.github.com/users/Charele/following{/other_user}","gists_url":"https://api.github.com/users/Charele/gists{/gist_id}","starred_url":"https://api.github.com/users/Charele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charele/subscriptions","organizations_url":"https://api.github.com/users/Charele/orgs","repos_url":"https://api.github.com/users/Charele/repos","events_url":"https://api.github.com/users/Charele/events{/privacy}","received_events_url":"https://api.github.com/users/Charele/received_events","type":"User","site_admin":false},"labels":[{"id":934618481,"node_id":"MDU6TGFiZWw5MzQ2MTg0ODE=","url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/labels/RL4J","name":"RL4J","color":"a4e266","default":false}],"state":"open","locked":false,"assignee":{"login":"saudet","id":3328023,"node_id":"MDQ6VXNlcjMzMjgwMjM=","avatar_url":"https://avatars1.githubusercontent.com/u/3328023?v=4","gravatar_id":"","url":"https://api.github.com/users/saudet","html_url":"https://github.com/saudet","followers_url":"https://api.github.com/users/saudet/followers","following_url":"https://api.github.com/users/saudet/following{/other_user}","gists_url":"https://api.github.com/users/saudet/gists{/gist_id}","starred_url":"https://api.github.com/users/saudet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saudet/subscriptions","organizations_url":"https://api.github.com/users/saudet/orgs","repos_url":"https://api.github.com/users/saudet/repos","events_url":"https://api.github.com/users/saudet/events{/privacy}","received_events_url":"https://api.github.com/users/saudet/received_events","type":"User","site_admin":false},"assignees":[{"login":"saudet","id":3328023,"node_id":"MDQ6VXNlcjMzMjgwMjM=","avatar_url":"https://avatars1.githubusercontent.com/u/3328023?v=4","gravatar_id":"","url":"https://api.github.com/users/saudet","html_url":"https://github.com/saudet","followers_url":"https://api.github.com/users/saudet/followers","following_url":"https://api.github.com/users/saudet/following{/other_user}","gists_url":"https://api.github.com/users/saudet/gists{/gist_id}","starred_url":"https://api.github.com/users/saudet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saudet/subscriptions","organizations_url":"https://api.github.com/users/saudet/orgs","repos_url":"https://api.github.com/users/saudet/repos","events_url":"https://api.github.com/users/saudet/events{/privacy}","received_events_url":"https://api.github.com/users/saudet/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-08-25T16:28:14Z","updated_at":"2018-08-28T10:11:07Z","closed_at":null,"author_association":"NONE","body":"I download gym-http-api, start gym_http_server.py,\r\nrun its own example \"example_agent.py\", it's okay!\r\n\r\nI run the Rl4j example \"org.deeplearning4j.examples.rl4j.Cartpole\", don't work.\r\nAnd get some error message on server console:\r\n\r\nWARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype.\r\nWARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype.\r\n[2018-08-25 20:16:26,252] ERROR in app: Exception on /v1/envs/d1849c63/observation_space/ [GET]\r\nTraceback (most recent call last):\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/app.py\", line 2292, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/app.py\", line 1815, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/app.py\", line 1718, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/_compat.py\", line 35, in reraise\r\n    raise value\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/app.py\", line 1813, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/app.py\", line 1799, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"gym_http_server.py\", line 340, in env_observation_space_info\r\n    return jsonify(info = info)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/json/__init__.py\", line 321, in jsonify\r\n    dumps(data, indent=indent, separators=separators) + '\\n',\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/json/__init__.py\", line 179, in dumps\r\n    rv = _json.dumps(obj, **kwargs)\r\n  File \"/apps/anaconda3/lib/python3.6/json/__init__.py\", line 238, in dumps\r\n    **kw).encode(obj)\r\n  File \"/apps/anaconda3/lib/python3.6/json/encoder.py\", line 199, in encode\r\n    chunks = self.iterencode(o, _one_shot=True)\r\n  File \"/apps/anaconda3/lib/python3.6/json/encoder.py\", line 257, in iterencode\r\n    return _iterencode(o, 0)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/flask/json/__init__.py\", line 81, in default\r\n    return _json.JSONEncoder.default(self, o)\r\n  File \"/apps/anaconda3/lib/python3.6/json/encoder.py\", line 180, in default\r\n    o.__class__.__name__)\r\nTypeError: Object of type 'float32' is not JSON serializable\r\n\r\nI dont' know it's a gym-http-api side question, or a Rl4j question?\r\nHow I resolve this?"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/416528578","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6275#issuecomment-416528578","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6275","id":416528578,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjUyODU3OA==","user":{"login":"Charele","id":42658390,"node_id":"MDQ6VXNlcjQyNjU4Mzkw","avatar_url":"https://avatars2.githubusercontent.com/u/42658390?v=4","gravatar_id":"","url":"https://api.github.com/users/Charele","html_url":"https://github.com/Charele","followers_url":"https://api.github.com/users/Charele/followers","following_url":"https://api.github.com/users/Charele/following{/other_user}","gists_url":"https://api.github.com/users/Charele/gists{/gist_id}","starred_url":"https://api.github.com/users/Charele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charele/subscriptions","organizations_url":"https://api.github.com/users/Charele/orgs","repos_url":"https://api.github.com/users/Charele/repos","events_url":"https://api.github.com/users/Charele/events{/privacy}","received_events_url":"https://api.github.com/users/Charele/received_events","type":"User","site_admin":false},"created_at":"2018-08-28T10:11:07Z","updated_at":"2018-08-28T10:11:07Z","author_association":"NONE","body":"Okay,it works.\r\nWhen I use \"pip install\" command, it always install the newest package, I think it's the reason\r\nI read the READMe.md, and I execute the \"pip install -r requirements.txt\",\r\nIt works."}}
{"actor":{"display_login":"Charele"}}