{"action":"created","issue":{"url":"https://api.github.com/repos/openai/mujoco-py/issues/235","repository_url":"https://api.github.com/repos/openai/mujoco-py","labels_url":"https://api.github.com/repos/openai/mujoco-py/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/openai/mujoco-py/issues/235/comments","events_url":"https://api.github.com/repos/openai/mujoco-py/issues/235/events","html_url":"https://github.com/openai/mujoco-py/issues/235","id":312149426,"number":235,"title":"ERROR importing mujoco_py","user":{"login":"ganyeshprasanna","id":32189908,"avatar_url":"https://avatars2.githubusercontent.com/u/32189908?v=4","gravatar_id":"","url":"https://api.github.com/users/ganyeshprasanna","html_url":"https://github.com/ganyeshprasanna","followers_url":"https://api.github.com/users/ganyeshprasanna/followers","following_url":"https://api.github.com/users/ganyeshprasanna/following{/other_user}","gists_url":"https://api.github.com/users/ganyeshprasanna/gists{/gist_id}","starred_url":"https://api.github.com/users/ganyeshprasanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganyeshprasanna/subscriptions","organizations_url":"https://api.github.com/users/ganyeshprasanna/orgs","repos_url":"https://api.github.com/users/ganyeshprasanna/repos","events_url":"https://api.github.com/users/ganyeshprasanna/events{/privacy}","received_events_url":"https://api.github.com/users/ganyeshprasanna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-06T23:39:52Z","updated_at":"2018-04-17T16:56:42Z","closed_at":"2018-04-09T03:14:14Z","author_association":"NONE","body":"I created a conda environment (python 3.5.2) and installed \r\nI followed the instructions in the Readme file and was able to install mujoco-py\r\nWhen I check the packages installed in the conda environment this is what I see:\r\n```\r\n# packages in environment at /home/ganesh/anaconda2/envs/mj:\r\n#\r\n# Name                    Version                   Build  Channel\r\nca-certificates           2018.03.07                    0  \r\ncertifi                   2018.1.18                py35_0  \r\ncffi                      1.11.4                  py35h9745a5d_0  \r\ncython                    0.27.3           py35h6cdc64b_0  \r\nfreetype                  2.8                  hab7d2ae_1  \r\nglfw                      1.6.0                     <pip>\r\nimageio                   2.2.0            py35hd0a6de2_0  \r\nintel-openmp              2018.0.0                      8  \r\njpeg                      9b                   h024ee3a_2  \r\nlibffi                    3.2.1                hd88cf55_4  \r\nlibgcc-ng                 7.2.0                hdf63c60_3  \r\nlibgfortran-ng            7.2.0                hdf63c60_3  \r\nlibpng                    1.6.34               hb9fc6fc_0  \r\nlibstdcxx-ng              7.2.0                hdf63c60_3  \r\nlibtiff                   4.0.9                h28f6b97_0  \r\nmkl                       2018.0.2                      1  \r\nmkl_fft                   1.0.1            py35h3010b51_0  \r\nmkl_random                1.0.1            py35h629b387_0  \r\nmujoco-py                 1.50.1.52                 <pip>\r\nnumpy                     1.14.2           py35hdbf6ddf_1  \r\nolefile                   0.45.1                   py35_0  \r\nopenssl                   1.0.2o               h20670df_0  \r\nosmesa                    12.2.2.dev                    0    menpo\r\npillow                    4.2.1            py35h03abc04_0  \r\npip                       9.0.3                    py35_0  \r\npycparser                 2.18             py35h61b3040_1  \r\npython                    3.5.2                         0  \r\nreadline                  6.2                           2  \r\nsetuptools                39.0.1                   py35_0  \r\nsqlite                    3.13.0                        0  \r\ntk                        8.5.18                        0  \r\nwheel                     0.31.0                   py35_0  \r\nxz                        5.2.3                h55aa19d_2  \r\nzlib                      1.2.11               ha838bed_2  \r\n```\r\nMujoco-py is installed \r\nBut when I try to import mujoco_py inside python I get an error that mjmodel.h does not exist\r\n```\r\nimport mujoco_py\r\nrunning build_ext\r\nbuilding 'mujoco_py.cymj' extension\r\ngcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py -I/home/ganesh/.mujoco/mjpro150/include -I/home/ganesh/.local/lib/python3.5/site-packages/numpy/core/include -I/home/ganesh/anaconda2/envs/mj/include/python3.5m -c /home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/cymj.c -o /home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.52_35_linuxcpuextensionbuilder/temp.linux-x86_64-3.5/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/cymj.o -fopenmp -w\r\n/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/cymj.c:610:21: fatal error: mjmodel.h: No such file or directory\r\ncompilation terminated.\r\nTraceback (most recent call last):\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/unixccompiler.py\", line 118, in _compile\r\n    extra_postargs)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/ccompiler.py\", line 909, in spawn\r\n    spawn(cmd, dry_run=self.dry_run)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/spawn.py\", line 36, in spawn\r\n    _spawn_posix(cmd, search_path, dry_run=dry_run)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/spawn.py\", line 159, in _spawn_posix\r\n    % (cmd, exit_status))\r\ndistutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/__init__.py\", line 1, in <module>\r\n    from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException\r\n  File \"/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/builder.py\", line 452, in <module>\r\n    cymj = load_cython_ext(mjpro_path)\r\n  File \"/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/builder.py\", line 85, in load_cython_ext\r\n    cext_so_path = builder.build()\r\n  File \"/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/builder.py\", line 188, in build\r\n    built_so_file_path = self._build_impl()\r\n  File \"/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/builder.py\", line 242, in _build_impl\r\n    so_file_path = super()._build_impl()\r\n  File \"/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/builder.py\", line 211, in _build_impl\r\n    dist.run_commands()\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/dist.py\", line 955, in run_commands\r\n    self.run_command(cmd)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/dist.py\", line 974, in run_command\r\n    cmd_obj.run()\r\n  File \"/home/ganesh/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py\", line 186, in run\r\n    _build_ext.build_ext.run(self)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/command/build_ext.py\", line 338, in run\r\n    self.build_extensions()\r\n  File \"/home/ganesh/Documents/.mujoco/mujoco-py/mujoco_py/builder.py\", line 121, in build_extensions\r\n    build_ext.build_extensions(self)\r\n  File \"/home/ganesh/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py\", line 194, in build_extensions\r\n    self.build_extension(ext)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/command/build_ext.py\", line 532, in build_extension\r\n    depends=ext.depends)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/ccompiler.py\", line 574, in compile\r\n    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)\r\n  File \"/home/ganesh/anaconda2/envs/mj/lib/python3.5/distutils/unixccompiler.py\", line 120, in _compile\r\n    raise CompileError(msg)\r\ndistutils.errors.CompileError: command 'gcc' failed with exit status 1\r\n```\r\nCan someone help me with this?"},"comment":{"url":"https://api.github.com/repos/openai/mujoco-py/issues/comments/382066371","html_url":"https://github.com/openai/mujoco-py/issues/235#issuecomment-382066371","issue_url":"https://api.github.com/repos/openai/mujoco-py/issues/235","id":382066371,"user":{"login":"ganyeshprasanna","id":32189908,"avatar_url":"https://avatars2.githubusercontent.com/u/32189908?v=4","gravatar_id":"","url":"https://api.github.com/users/ganyeshprasanna","html_url":"https://github.com/ganyeshprasanna","followers_url":"https://api.github.com/users/ganyeshprasanna/followers","following_url":"https://api.github.com/users/ganyeshprasanna/following{/other_user}","gists_url":"https://api.github.com/users/ganyeshprasanna/gists{/gist_id}","starred_url":"https://api.github.com/users/ganyeshprasanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganyeshprasanna/subscriptions","organizations_url":"https://api.github.com/users/ganyeshprasanna/orgs","repos_url":"https://api.github.com/users/ganyeshprasanna/repos","events_url":"https://api.github.com/users/ganyeshprasanna/events{/privacy}","received_events_url":"https://api.github.com/users/ganyeshprasanna/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T16:56:41Z","updated_at":"2018-04-17T16:56:41Z","author_association":"NONE","body":"What were the steps you followed?\r\nDo you want to use it with Openaigym?"}}
{"actor":{"display_login":"ganyeshprasanna"}}