openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.87k stars 814 forks source link

Fail to build wheel #518

Open gthd opened 4 years ago

gthd commented 4 years ago

Describe the bug Building wheel for mujoco-py error

To Reproduce Install package that depends on mujoco-py

Expected behavior Package installation succeeds, wheel can be built successfully for mujoco-py

Error Messages Building wheel for mujoco-py (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/george/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6u4syqfx/mujoco-py/setup.py'"'"'; file='"'"'/tmp/pip-install-6u4syqfx/mujoco-py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-hr2hy3w1 cwd: /tmp/pip-install-6u4syqfx/mujoco-py/ Complete output (20 lines): running bdist_wheel running build Removing old mujoco_py cext /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/cymj_2.0.2.2_37_linuxcpuextensionbuilder_37.so Compiling /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.pyx because it depends on /home/george/lib/python3.7/site-packages/Cython/Includes/numpy/init.pxd. [1/1] Cythonizing /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.pyx running build_ext building 'mujoco_py.cymj' extension creating /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder creating /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7 creating /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/tmp creating /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/tmp/pip-install-6u4syqfx creating /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/tmp/pip-install-6u4syqfx/mujoco-py creating /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py creating /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/gl gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Imujoco_py -I/tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py -I/home/george/.mujoco/mujoco200/include -I/home/george/lib/python3.7/site-packages/numpy/core/include -I/home/george/include -I/usr/local/include/python3.7m -c /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.c -o /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.o -fopenmp -w /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.c:644:10: fatal error: mjmodel.h: No such file or directory

include "mjmodel.h"

        ^~~~~~~~~~~

compilation terminated. error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for mujoco-py Running setup.py clean for mujoco-py Failed to build mujoco-py Installing collected packages: mujoco-py, robosuite Running setup.py install for mujoco-py ... error ERROR: Command errored out with exit status 1: command: /home/george/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6u4syqfx/mujoco-py/setup.py'"'"'; file='"'"'/tmp/pip-install-6u4syqfx/mujoco-py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ukj0t070/install-record.txt --single-version-externally-managed --compile --install-headers /home/george/include/site/python3.7/mujoco-py cwd: /tmp/pip-install-6u4syqfx/mujoco-py/ Complete output (11 lines): running install running build Removing old mujoco_py cext /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/cymj_2.0.2.2_37_linuxcpuextensionbuilder_37.so running build_ext building 'mujoco_py.cymj' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Imujoco_py -I/tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py -I/home/george/.mujoco/mujoco200/include -I/home/george/lib/python3.7/site-packages/numpy/core/include -I/home/george/include -I/usr/local/include/python3.7m -c /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.c -o /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.2_37_linuxcpuextensionbuilder/temp.linux-x86_64-3.7/tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.o -fopenmp -w /tmp/pip-install-6u4syqfx/mujoco-py/mujoco_py/cymj.c:644:10: fatal error: mjmodel.h: No such file or directory

include "mjmodel.h"

          ^~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /home/george/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6u4syqfx/mujoco-py/setup.py'"'"'; file='"'"'/tmp/pip-install-6u4syqfx/mujoco-py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ukj0t070/install-record.txt --single-version-externally-managed --compile --install-headers /home/george/include/site/python3.7/mujoco-py Check the logs for full command output.

Desktop (please complete the following information):

Environment

SammyRossberg commented 4 years ago

I had the same issue. Post to Reddit to see if they could help.

gthd commented 4 years ago

Did you manage to solve it ? How ?

HailinRen commented 4 years ago

I think they removed the mujoco 2.0 support....

realiti4 commented 4 years ago

I am having the same issue with 2.0.

ylan01 commented 3 years ago

I had the same issue. Post to Reddit to see if they could help.

Can you send a link? thank you.