{"action":"created","issue":{"url":"https://api.github.com/repos/openai/universe/issues/65","repository_url":"https://api.github.com/repos/openai/universe","labels_url":"https://api.github.com/repos/openai/universe/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/openai/universe/issues/65/comments","events_url":"https://api.github.com/repos/openai/universe/issues/65/events","html_url":"https://github.com/openai/universe/issues/65","id":196222548,"number":65,"title":" import universe error in python","user":{"login":"encore2020","id":24622508,"avatar_url":"https://avatars.githubusercontent.com/u/24622508?v=3","gravatar_id":"","url":"https://api.github.com/users/encore2020","html_url":"https://github.com/encore2020","followers_url":"https://api.github.com/users/encore2020/followers","following_url":"https://api.github.com/users/encore2020/following{/other_user}","gists_url":"https://api.github.com/users/encore2020/gists{/gist_id}","starred_url":"https://api.github.com/users/encore2020/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/encore2020/subscriptions","organizations_url":"https://api.github.com/users/encore2020/orgs","repos_url":"https://api.github.com/users/encore2020/repos","events_url":"https://api.github.com/users/encore2020/events{/privacy}","received_events_url":"https://api.github.com/users/encore2020/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-17T13:39:54Z","updated_at":"2016-12-21T14:13:27Z","closed_at":null,"body":"my platform is ubuntu 16\r\nI have installed:\r\n\r\npip install numpy\r\nsudo apt-get install golang libjpeg-turbo8-dev make\r\n\r\ngit clone https://github.com/openai/universe.git\r\ncd universe\r\npip install -e .\r\n----------------------------------------------\r\nBut when I add  \"import universe\" in python, error is : \r\n\r\nPython 2.7.12 (default, Nov 19 2016, 06:48:10) \r\n[GCC 5.4.0 20160609] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import gym\r\n>>> import universe\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/ubuntu/universe/universe/__init__.py\", line 20, in <module>\r\n    import universe.scoreboard\r\n  File \"/home/ubuntu/universe/universe/scoreboard/__init__.py\", line 49, in <module>\r\n    scorer=scoring.RewardPerTime(),\r\nAttributeError: 'module' object has no attribute 'RewardPerTime'\r\n>>> \r\n\r\nCould you give me help to solve it?\r\n"},"comment":{"url":"https://api.github.com/repos/openai/universe/issues/comments/268532175","html_url":"https://github.com/openai/universe/issues/65#issuecomment-268532175","issue_url":"https://api.github.com/repos/openai/universe/issues/65","id":268532175,"user":{"login":"encore2020","id":24622508,"avatar_url":"https://avatars.githubusercontent.com/u/24622508?v=3","gravatar_id":"","url":"https://api.github.com/users/encore2020","html_url":"https://github.com/encore2020","followers_url":"https://api.github.com/users/encore2020/followers","following_url":"https://api.github.com/users/encore2020/following{/other_user}","gists_url":"https://api.github.com/users/encore2020/gists{/gist_id}","starred_url":"https://api.github.com/users/encore2020/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/encore2020/subscriptions","organizations_url":"https://api.github.com/users/encore2020/orgs","repos_url":"https://api.github.com/users/encore2020/repos","events_url":"https://api.github.com/users/encore2020/events{/privacy}","received_events_url":"https://api.github.com/users/encore2020/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T14:13:27Z","updated_at":"2016-12-21T14:13:27Z","body":">>> while True:\r\n...   action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]  \r\n...   observation_n, reward_n, done_n, info = env.step(action_n)\r\n...   env.render()universe-IbCmIQ-0 | [2016-12-21 14:12:12,346] [INFO:universe.rewarder.remote] Client connecting: peer=tcp4:127.0.0.1:43900 observer=False\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:12,346] [INFO:universe.rewarder.remote] WebSocket connection established\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:13,954] [selenium_wrapper_server] Call to webdriver.Chrome() completed: 2.03s\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:13,972] [INFO:gym_flashgames.launcher] [MainThread] Navigating browser to url=http://localhost\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:14,353] [INFO:root] [EnvStatus] Changing env_state: resetting (env_id=None) -> running (env_id=None) (episode_id: 1->1, fps=60)\r\nuniverse-IbCmIQ-0 | Manhole[1482329534.3550]: Patched <built-in function fork> and <built-in function fork>.\r\nuniverse-IbCmIQ-0 | Manhole[1482329534.3561]: Manhole UDS path: /tmp/manhole-54\r\nuniverse-IbCmIQ-0 | Manhole[1482329534.3562]: Waiting for new connection (in pid:54) ...\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:16,673] [INFO:universe.wrappers.logger] Stats for the past 5.02s: vnc_updates_ps=2.8 n=1 reaction_time=None observation_lag=None action_lag=None reward_ps=0.0 reward_total=0.0 vnc_bytes_ps[total]=361397.9 vnc_pixels_ps[total]=528054.5 reward_lag=None rewarder_message_lag=None fps=27\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:18,169] [INFO:root] [Rewarder] Rewarder fell behind by 0.41550636291503906s from target; losing 24 frames\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:19,354] [INFO:universe.pyprofile] [pyprofile] period=5.00s timers={\"rewarder.frame\": {\"std\": \"25.07ms\", \"mean\": \"18.37ms\", \"calls\": 275}, \"rewarder.sleep\": {\"std\": \"855.85us\", \"mean\": \"15.78ms\", \"calls\": 274}, \"rewarder.compute_reward\": {\"std\": \"25.98ms\", \"mean\": \"2.13ms\", \"calls\": 276}, \"vnc_env.VNCEnv.vnc_session.step\": {\"std\": \"25.98ms\", \"mean\": \"1.78ms\", \"calls\": 276}, \"rewarder.sleep.missed\": {\"std\": \"0.00us\", \"mean\": \"415.51ms\", \"calls\": 1}} counters={\"reward.vnc.updates.n\": {\"std\": 0.7846014739922286, \"mean\": 0.05072463768115945, \"calls\": 276}} gauges={} (export_time=275.37us)\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:19,355] [INFO:universe.rewarder.remote] [Rewarder] Over past 5.00s, sent 1 reward messages to agent: reward=0 reward_min=0 reward_max=0 done=False info={'rewarder.vnc.updates.n': 0, 'rewarder.vnc.updates.pixels': 0, 'rewarder.vnc.updates.bytes': 0, 'rewarder.profile': '<804 bytes>'}\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:21,688] [INFO:universe.wrappers.logger] Stats for the past 5.01s: vnc_updates_ps=0.0 n=1 reaction_time=None observation_lag=None action_lag=None reward_ps=0.0 reward_total=0.0 vnc_bytes_ps[total]=0.0 vnc_pixels_ps[total]=0.0 reward_lag=None rewarder_message_lag=None fps=55\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:24,355] [INFO:universe.pyprofile] [pyprofile] period=5.00s timers={\"rewarder.frame\": {\"std\": \"756.35us\", \"mean\": \"16.91ms\", \"calls\": 300}, \"rewarder.sleep\": {\"std\": \"1.11ms\", \"mean\": \"15.51ms\", \"calls\": 300}, \"rewarder.compute_reward\": {\"std\": \"659.07us\", \"mean\": \"745.08us\", \"calls\": 300}, \"vnc_env.VNCEnv.vnc_session.step\": {\"std\": \"591.15us\", \"mean\": \"263.98us\", \"calls\": 300}} counters={\"agent_conn.reward\": {\"std\": 0, \"mean\": 0.0, \"calls\": 1}, \"reward.vnc.updates.n\": {\"std\": 0.0, \"mean\": 0.0, \"calls\": 300}} gauges={} (export_time=312.57us)\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:24,356] [INFO:universe.rewarder.remote] [Rewarder] Over past 5.00s, sent 1 reward messages to agent: reward=0 reward_min=0 reward_max=0 done=False info={'rewarder.vnc.updates.n': 0, 'rewarder.vnc.updates.pixels': 0, 'rewarder.vnc.updates.bytes': 0, 'rewarder.profile': '<757 bytes>'}\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:26,706] [INFO:universe.wrappers.logger] Stats for the past 5.02s: vnc_updates_ps=0.0 n=1 reaction_time=None observation_lag=None action_lag=None reward_ps=0.0 reward_total=0.0 vnc_bytes_ps[total]=0.0 vnc_pixels_ps[total]=0.0 reward_lag=None rewarder_message_lag=None fps=60\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:28,561] [INFO:universe.rewarder.remote] CONNECTION STATUS: Marking connection as active: observer=False peer=tcp4:127.0.0.1:43900 total_conns=1\r\n[2016-12-21 22:12:28,619] [0:localhost:5903] Sending reset for env_id=flashgames.DuskDrive-v0 fps=60 episode_id=0\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:28,621] [INFO:universe.rewarder.remote] Received reset message: {'headers': {'message_id': 10, 'episode_id': '0', 'sent_at': 1482329548.619285}, 'body': {'env_id': 'flashgames.DuskDrive-v0', 'fps': 60, 'seed': None}, 'method': 'v0.env.reset'}\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:28,677] [INFO:root] [EnvStatus] Changing env_state: running (env_id=None) -> resetting (env_id=flashgames.DuskDrive-v0) (episode_id: 1->2, fps=60)\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:28,678] [ERROR:root] Closing server (via subprocess.close()) and all chromes (via pkill chromedriver || :; pkill chrome || :)\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:28,688] [INFO:root] [Rewarder] Blocking until env finishes resetting\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,702] init detected end of child process 115 with exit code 0, killed by SIGTERM: 15\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:28,708] [INFO:root] [EnvController] RESET CAUSE: changing out environments due to v0.env.reset (with episode_id=0): flashgames.DuskDrive-v0 -> flashgames.DuskDrive-v0 (new episode_id=2 fps=60)\r\nuniverse-IbCmIQ-0 | [2016-12-21 14:12:28,709] [INFO:root] [EnvController] Env state: env_id=flashgames.DuskDrive-v0 episode_id=2\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,723] init detected end of child process 130 with exit code 0, not killed by signal\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,723] init detected end of child process 337 with exit code 0, killed by SIGTERM: 15\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,724] init detected end of child process 359 with exit code 0, killed by SIGTERM: 15\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,808] init detected end of child process 127 with exit code 0, not killed by signal\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,809] init detected end of child process 118 with exit code 0, not killed by signal\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,809] init detected end of child process 129 with exit code 0, killed by SIGTERM: 15\r\nuniverse-IbCmIQ-0 | [init] [2016-12-21 14:12:28,812] init detected end of child process 126 with exit code 0, not killed by signal\r\nuniverse-IbCmIQ-0 | [Wed Dec 21 14:12:28 UTC 2016] [/usr/local/bin/sudoable-env-setup] Allowing outbound network traffic to non-private IPs for git-lfs. (Going to fetch files via git lfs.)\r\nuniverse-IbCmIQ-0 | [unpack-lfs] [2016-12-21 14:12:29,178] Fetching files: git lfs pull -I git-lfs/flashgames.DuskDrive-v0.tar.gz\r\nuniverse-IbCmIQ-0 | [unpack-lfs] [2016-12-21 14:12:29,179] If this hangs, your docker container may not be able to communicate with Github\r\n\r\n"}}
{"actor":{"display_login":"encore2020"}}