{"action":"created","issue":{"url":"https://api.github.com/repos/openai/gym/issues/540","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/540/comments","events_url":"https://api.github.com/repos/openai/gym/issues/540/events","html_url":"https://github.com/openai/gym/issues/540","id":216856910,"number":540,"title":"cant import mujoco env","user":{"login":"prakashyadav008","id":20148760,"avatar_url":"https://avatars0.githubusercontent.com/u/20148760?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashyadav008","html_url":"https://github.com/prakashyadav008","followers_url":"https://api.github.com/users/prakashyadav008/followers","following_url":"https://api.github.com/users/prakashyadav008/following{/other_user}","gists_url":"https://api.github.com/users/prakashyadav008/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashyadav008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashyadav008/subscriptions","organizations_url":"https://api.github.com/users/prakashyadav008/orgs","repos_url":"https://api.github.com/users/prakashyadav008/repos","events_url":"https://api.github.com/users/prakashyadav008/events{/privacy}","received_events_url":"https://api.github.com/users/prakashyadav008/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-24T17:37:01Z","updated_at":"2017-03-26T05:42:34Z","closed_at":null,"body":"I am having issues importing environments from mujoco and Box2d and the same error pops up for all the mujoco environments and Box2d as shown below:\r\n\r\nMujoco:\r\n\r\n>>> env = gym.make('Ant-v1')\r\n[2017-03-24 22:48:33,295] Making new env: Ant-v1\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 161, in make\r\n    return registry.make(id)\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 119, in make\r\n    env = spec.make()\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 85, in make\r\n    cls = load(self._entry_point)\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 17, in load\r\n    result = entry_point.load(False)\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/__init__.py\", line 2258, in load\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/__init__.py\", line 2264, in resolve\r\n  File \"/home/prakash/gym/gym/envs/mujoco/__init__.py\", line 1, in <module>\r\n    from gym.envs.mujoco.mujoco_env import MujocoEnv\r\n  File \"/home/prakash/gym/gym/envs/mujoco/mujoco_env.py\", line 11, in <module>\r\n    import mujoco_py\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/mujoco_py/__init__.py\", line 2, in <module>\r\n    init_config()\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/mujoco_py/config.py\", line 33, in init_config\r\n    raise error.MujocoDependencyError('To use MuJoCo, you need to either populate ~/.mujoco/mjkey.txt and ~/.mujoco/mjpro131, or set the MUJOCO_PY_MJKEY_PATH and MUJOCO_PY_MJPRO_PATH environment variables appropriately. Follow the instructions on https://github.com/openai/mujoco-py for where to obtain these.')\r\nmujoco_py.error.MujocoDependencyError: To use MuJoCo, you need to either populate ~/.mujoco/mjkey.txt and ~/.mujoco/mjpro131, or set the MUJOCO_PY_MJKEY_PATH and MUJOCO_PY_MJPRO_PATH environment variables appropriately. Follow the instructions on https://github.com/openai/mujoco-py for where to obtain these.\r\n\r\n\r\nBox2d:\r\n\r\n>>> env = gym.make('LunarLander-v2')\r\n[2017-03-24 23:10:15,305] Making new env: LunarLander-v2\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 161, in make\r\n    return registry.make(id)\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 119, in make\r\n    env = spec.make()\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 85, in make\r\n    cls = load(self._entry_point)\r\n  File \"/home/prakash/gym/gym/envs/registration.py\", line 17, in load\r\n    result = entry_point.load(False)\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/__init__.py\", line 2258, in load\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/__init__.py\", line 2264, in resolve\r\n  File \"/home/prakash/gym/gym/envs/box2d/__init__.py\", line 1, in <module>\r\n    from gym.envs.box2d.lunar_lander import LunarLander\r\n  File \"/home/prakash/gym/gym/envs/box2d/lunar_lander.py\", line 4, in <module>\r\n    import Box2D\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/Box2D/__init__.py\", line 20, in <module>\r\n    from .Box2D import *\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/Box2D/Box2D.py\", line 32, in <module>\r\n    _Box2D = swig_import_helper()\r\n  File \"/home/prakash/anaconda3/lib/python3.6/site-packages/Box2D/Box2D.py\", line 28, in swig_import_helper\r\n    _mod = imp.load_module('_Box2D', fp, pathname, description)\r\n  File \"/home/prakash/anaconda3/lib/python3.6/imp.py\", line 242, in load_module\r\n    return load_dynamic(name, filename, file)\r\n  File \"/home/prakash/anaconda3/lib/python3.6/imp.py\", line 342, in load_dynamic\r\n    return _load(spec)\r\nImportError: /home/prakash/anaconda3/lib/python3.6/site-packages/Box2D/_Box2D.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm\r\n\r\n\r\n\r\n\r\nSystem info:\r\noperating system: Ubuntu 16.04 LTS\r\ngraphic driver: Nvidia 375.39\r\nRam :4gb\r\nany suggestions ?\r\n"},"comment":{"url":"https://api.github.com/repos/openai/gym/issues/comments/289260083","html_url":"https://github.com/openai/gym/issues/540#issuecomment-289260083","issue_url":"https://api.github.com/repos/openai/gym/issues/540","id":289260083,"user":{"login":"prakashyadav008","id":20148760,"avatar_url":"https://avatars0.githubusercontent.com/u/20148760?v=3","gravatar_id":"","url":"https://api.github.com/users/prakashyadav008","html_url":"https://github.com/prakashyadav008","followers_url":"https://api.github.com/users/prakashyadav008/followers","following_url":"https://api.github.com/users/prakashyadav008/following{/other_user}","gists_url":"https://api.github.com/users/prakashyadav008/gists{/gist_id}","starred_url":"https://api.github.com/users/prakashyadav008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakashyadav008/subscriptions","organizations_url":"https://api.github.com/users/prakashyadav008/orgs","repos_url":"https://api.github.com/users/prakashyadav008/repos","events_url":"https://api.github.com/users/prakashyadav008/events{/privacy}","received_events_url":"https://api.github.com/users/prakashyadav008/received_events","type":"User","site_admin":false},"created_at":"2017-03-26T05:42:34Z","updated_at":"2017-03-26T05:42:34Z","body":"thanks, I havnt tried the steps for Mujoco Ill do it but will after the trial will i have to do it again or get the paid services.\r\nand for the Box2D I am still getting the same error's after running the command `pip install --ignore-installed box2d-py` ."}}
{"actor":{"display_login":"prakashyadav008"}}