Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc error when installing in an Anaconda environment on OS X #331

Closed
angelolovatto opened this issue Nov 27, 2018 · 8 comments

Comments

Projects
None yet
7 participants
@angelolovatto
Copy link

commented Nov 27, 2018

I've successfully installed mujoco-py using pip3 and python 3.7.0
However, I need to install it in an Anaconda environment in order to use python 3.6, as required by the spinningup documentation.
After successfully installing the packages for the base requirements of spinningup, I tried installing mujoco-py using pip install -U pip install -U 'mujoco-py<1.50.2,>=1.50.1'.

The installation fails when building the pip package for mujoco-py giving the following fatal error:

  /usr/local/bin/gcc-8 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/angelolovatto/anaconda3/envs/spinningup/include -arch x86_64 -I/Users/angelolovatto/anaconda3/envs/spinningup/include -arch x86_64 -DONMAC -Imujoco_py -I/private/var/folders/pj/tpywc3yj6y17s6f964hc7d6c0000gn/T/pip-install-r1g67ly0/mujoco-py/mujoco_py -I/Users/angelolovatto/.mujoco/mjpro150/include -I/Users/angelolovatto/anaconda3/envs/spinningup/lib/python3.6/site-packages/numpy/core/include -I/Users/angelolovatto/anaconda3/envs/spinningup/include/python3.6m -c /private/var/folders/pj/tpywc3yj6y17s6f964hc7d6c0000gn/T/pip-install-r1g67ly0/mujoco-py/mujoco_py/cymj.c -o /private/var/folders/pj/tpywc3yj6y17s6f964hc7d6c0000gn/T/pip-install-r1g67ly0/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6/private/var/folders/pj/tpywc3yj6y17s6f964hc7d6c0000gn/T/pip-install-r1g67ly0/mujoco-py/mujoco_py/cymj.o -fopenmp -w
  In file included from /usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/syslimits.h:7,
                   from /usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/limits.h:34,
                   from /Users/angelolovatto/anaconda3/envs/spinningup/include/python3.6m/Python.h:11,
                   from /private/var/folders/pj/tpywc3yj6y17s6f964hc7d6c0000gn/T/pip-install-r1g67ly0/mujoco-py/mujoco_py/cymj.c:57:
  /usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/limits.h:194:15: fatal error: limits.h: No such file or directory
   #include_next <limits.h>  /* recurse down to the real one */
                 ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/local/bin/gcc-8' failed with exit status 1

  ----------------------------------------
  Failed building wheel for mujoco-py

This does not happen using homebrew python, which leads me to believe it's an issue involving the Anaconda environment. The files seem to be all there.

  • OS: macOS 10.14.1

  • Python: Anaconda python 3.6.7

  • Mujoco Version: 1.50

  • output of echo $LD_LIBRARY_PATH: empty

@angelolovatto

This comment has been minimized.

Copy link
Author

commented Nov 27, 2018

It seems to be a problem with python3.6 in my machine. I verified that I am able to install mujoco-py in Anaconda python3.7 but not python3.6, both Anaconda and Homebrew versions. Could this have something to do with libraries like Cython or boost-python3 on Mac? (which, as far as I know, allow integration of python with c++)

@machinaut

This comment has been minimized.

Copy link
Contributor

commented Nov 28, 2018

@angelolovatto this is a hilarious and terrifying issue.

tl;dr anything compiled using C headers on OSX is affected by apple removing headers. Install special header package and try again.

Command to fix it is here https://github.com/openai/spinningup/blob/master/travis_setup.sh#L11 (I had to fix this in another one of our projects).

Issue explaining the context for OSX continuous integration builds travis-ci/travis-ci#9640

Let me know if this doesn't help.

@machinaut machinaut closed this Nov 28, 2018

@angelolovatto

This comment has been minimized.

Copy link
Author

commented Dec 1, 2018

Unfortunately this didn't help. I tried to install the command-line tools in several ways, however it seems that everything is already installed (maybe something to do with Mojave and Xcode 10.1 ?). I even updated all my homebrew packages to make sure there wasn't anything else missing.
I'm not sure what to do. If only Tensorflow would update to Python3.7 ... I doubt it's anything to do with mujoco-py and since I won't be able to look much further into this for the next few weeks, I guess it's better to leave this closed for now, unless someone else comes across the same issue.
Thanks for the help!

@Nate711

This comment has been minimized.

Copy link

commented Dec 5, 2018

I'm having the same issue. The command to update the command line tools didn't work.

(gym) Nathans-MacBook-Pro-6:mujoco-py nathan$ pip install -e '.[all]'
Obtaining file:///Users/nathan/mujoco-py
  mujoco-py 1.50.1.68 does not provide the extra 'all'
Requirement already satisfied: glfw>=1.4.0 in /anaconda/envs/gym/lib/python3.6/site-packages (from mujoco-py==1.50.1.68) (1.7.0)
Requirement already satisfied: numpy>=1.11 in /anaconda/envs/gym/lib/python3.6/site-packages (from mujoco-py==1.50.1.68) (1.15.4)
Requirement already satisfied: Cython>=0.27.2 in /anaconda/envs/gym/lib/python3.6/site-packages (from mujoco-py==1.50.1.68) (0.29)
Requirement already satisfied: imageio>=2.1.2 in /anaconda/envs/gym/lib/python3.6/site-packages (from mujoco-py==1.50.1.68) (2.4.1)
Requirement already satisfied: cffi>=1.10 in /anaconda/envs/gym/lib/python3.6/site-packages (from mujoco-py==1.50.1.68) (1.11.5)
Requirement already satisfied: lockfile>=0.12.2 in /anaconda/envs/gym/lib/python3.6/site-packages (from mujoco-py==1.50.1.68) (0.12.2)
Requirement already satisfied: pillow in /anaconda/envs/gym/lib/python3.6/site-packages (from imageio>=2.1.2->mujoco-py==1.50.1.68) (5.3.0)
Requirement already satisfied: pycparser in /anaconda/envs/gym/lib/python3.6/site-packages (from cffi>=1.10->mujoco-py==1.50.1.68) (2.19)
Installing collected packages: mujoco-py
  Running setup.py develop for mujoco-py
Successfully installed mujoco-py
(gym) Nathans-MacBook-Pro-6:mujoco-py nathan$ python3
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:14:59)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mujoco_py
Compiling /Users/nathan/mujoco-py/mujoco_py/cymj.pyx because it changed.
[1/1] Cythonizing /Users/nathan/mujoco-py/mujoco_py/cymj.pyx
warning: mujoco_py/generated/../pxd/mjmodel.pxd:99:4: 'mjtDisableBit' redeclared
[... more warnings]
warning: mujoco_py/generated/../pxd/mjmodel.pxd:349:8: 'mjDATATYPE_QUAT' redeclared
running build_ext
building 'mujoco_py.cymj' extension
creating /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder
creating /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6
creating /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6/Users
creating /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6/Users/nathan
creating /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6/Users/nathan/mujoco-py
creating /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6/Users/nathan/mujoco-py/mujoco_py
creating /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6/Users/nathan/mujoco-py/mujoco_py/gl
/usr/local/bin/gcc-8 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I//anaconda/envs/gym/include -arch x86_64 -I//anaconda/envs/gym/include -arch x86_64 -DONMAC -Imujoco_py -I/Users/nathan/mujoco-py/mujoco_py -I/Users/nathan/.mujoco/mjpro150/include -I//anaconda/envs/gym/lib/python3.6/site-packages/numpy/core/include -I//anaconda/envs/gym/include/python3.6m -c /Users/nathan/mujoco-py/mujoco_py/cymj.c -o /Users/nathan/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.7-x86_64-3.6/Users/nathan/mujoco-py/mujoco_py/cymj.o -fopenmp -w
In file included from /usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/syslimits.h:7,
                 from /usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/limits.h:34,
                 from //anaconda/envs/gym/include/python3.6m/Python.h:11,
                 from /Users/nathan/mujoco-py/mujoco_py/cymj.c:57:
/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/limits.h:194:15: fatal error: limits.h: No such file or directory
 #include_next <limits.h>  /* recurse down to the real one */
               ^~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
  File "//anaconda/envs/gym/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "//anaconda/envs/gym/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "//anaconda/envs/gym/lib/python3.6/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "//anaconda/envs/gym/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command '/usr/local/bin/gcc-8' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/nathan/mujoco-py/mujoco_py/__init__.py", line 3, in <module>
    from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
  File "/Users/nathan/mujoco-py/mujoco_py/builder.py", line 503, in <module>
    cymj = load_cython_ext(mjpro_path)
  File "/Users/nathan/mujoco-py/mujoco_py/builder.py", line 105, in load_cython_ext
    cext_so_path = builder.build()
  File "/Users/nathan/mujoco-py/mujoco_py/builder.py", line 220, in build
    built_so_file_path = self._build_impl()
  File "/Users/nathan/mujoco-py/mujoco_py/builder.py", line 326, in _build_impl
    so_file_path = super()._build_impl()
  File "/Users/nathan/mujoco-py/mujoco_py/builder.py", line 243, in _build_impl
    dist.run_commands()
  File "//anaconda/envs/gym/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "//anaconda/envs/gym/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "//anaconda/envs/gym/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "//anaconda/envs/gym/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/Users/nathan/mujoco-py/mujoco_py/builder.py", line 143, in build_extensions
    build_ext.build_extensions(self)
  File "//anaconda/envs/gym/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
    self.build_extension(ext)
  File "//anaconda/envs/gym/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "//anaconda/envs/gym/lib/python3.6/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "//anaconda/envs/gym/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command '/usr/local/bin/gcc-8' failed with exit status 1
@pengzhenghao

This comment has been minimized.

Copy link

commented Dec 18, 2018

I encounter the same issue when installing mujoco-py. I am using Python 3.6.7 in my mac with macOS Mojave 10.14.1

The error message in short is

     #include_next <limits.h>  /* recurse down to the real one */
                   ^~~~~~~~~~
    compilation terminated.
    error: command '/usr/local/bin/gcc-7' failed with exit status 1
    
    ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-75nke5mr/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 /private/tmp/pip-record-89q1ucyf/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-75nke5mr/mujoco-py/

The gross error message is:

Collecting mujoco-py<1.50.2,>=1.50.1
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cf/8c/64e0630b3d450244feef0688d90eab2448631e40ba6bdbd90a70b84898e7/mujoco-py-1.50.1.68.tar.gz (120kB)
    100% |████████████████████████████████| 122kB 2.1MB/s 
Requirement already satisfied, skipping upgrade: glfw>=1.4.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from mujoco-py<1.50.2,>=1.50.1) (1.7.0)
Requirement already satisfied, skipping upgrade: numpy>=1.11 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from mujoco-py<1.50.2,>=1.50.1) (1.15.4)
Requirement already satisfied, skipping upgrade: Cython>=0.27.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from mujoco-py<1.50.2,>=1.50.1) (0.29.2)
Requirement already satisfied, skipping upgrade: imageio>=2.1.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from mujoco-py<1.50.2,>=1.50.1) (2.4.1)
Requirement already satisfied, skipping upgrade: cffi>=1.10 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from mujoco-py<1.50.2,>=1.50.1) (1.11.5)
Requirement already satisfied, skipping upgrade: lockfile>=0.12.2 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from mujoco-py<1.50.2,>=1.50.1) (0.12.2)
Requirement already satisfied, skipping upgrade: pillow in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from imageio>=2.1.2->mujoco-py<1.50.2,>=1.50.1) (5.3.0)
Requirement already satisfied, skipping upgrade: pycparser in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from cffi>=1.10->mujoco-py<1.50.2,>=1.50.1) (2.19)
Installing collected packages: mujoco-py
  Running setup.py install for mujoco-py ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-75nke5mr/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 /private/tmp/pip-record-89q1ucyf/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    Removing old mujoco_py cext /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/cymj_1.50.1.68_36_macextensionbuilder_36.so
    Compiling /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/cymj.pyx because it changed.
    [1/1] Cythonizing /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/cymj.pyx
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:99:4: 'mjtDisableBit' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:114:4: 'mjtEnableBit' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:121:4: 'mjtJoint' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:127:4: 'mjtGeom' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:149:4: 'mjtCamLight' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:157:4: 'mjtTexture' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:163:4: 'mjtIntegrator' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:168:4: 'mjtCollision' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:174:4: 'mjtCone' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:179:4: 'mjtJacobian' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:185:4: 'mjtSolver' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:191:4: 'mjtImp' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:198:4: 'mjtRef' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:203:4: 'mjtEq' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:211:4: 'mjtWrap' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:220:4: 'mjtTrn' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:230:4: 'mjtDyn' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:237:4: 'mjtGain' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:242:4: 'mjtBias' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:248:4: 'mjtObj' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:274:4: 'mjtConstraint' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:285:4: 'mjtConstraintState' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:294:4: 'mjtSensor' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:338:4: 'mjtStage' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:345:4: 'mjtDataType' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:99:4: 'mjtDisableBit' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:114:4: 'mjtEnableBit' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:121:4: 'mjtJoint' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:127:4: 'mjtGeom' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:149:4: 'mjtCamLight' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:157:4: 'mjtTexture' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:163:4: 'mjtIntegrator' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:168:4: 'mjtCollision' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:174:4: 'mjtCone' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:179:4: 'mjtJacobian' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:185:4: 'mjtSolver' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:191:4: 'mjtImp' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:198:4: 'mjtRef' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:203:4: 'mjtEq' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:211:4: 'mjtWrap' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:220:4: 'mjtTrn' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:230:4: 'mjtDyn' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:237:4: 'mjtGain' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:242:4: 'mjtBias' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:248:4: 'mjtObj' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:274:4: 'mjtConstraint' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:285:4: 'mjtConstraintState' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:294:4: 'mjtSensor' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:338:4: 'mjtStage' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:345:4: 'mjtDataType' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:75:4: 'mjtNum' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:77:10: 'mjPI' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:78:10: 'mjMAXVAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:79:10: 'mjMINMU' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:80:10: 'mjMINIMP' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:81:10: 'mjMAXIMP' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:82:10: 'mjMAXCONPAIR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:83:10: 'mjMAXVFS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:84:10: 'mjMAXVFSNAME' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:87:10: 'mjNEQDATA' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:88:10: 'mjNDYN' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:89:10: 'mjNGAIN' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:90:10: 'mjNBIAS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:91:10: 'mjNREF' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:92:10: 'mjNIMP' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:93:10: 'mjNSOLVER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:96:4: 'mjtByte' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:100:8: 'mjDSBL_CONSTRAINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:101:8: 'mjDSBL_EQUALITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:102:8: 'mjDSBL_FRICTIONLOSS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:103:8: 'mjDSBL_LIMIT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:104:8: 'mjDSBL_CONTACT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:105:8: 'mjDSBL_PASSIVE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:106:8: 'mjDSBL_GRAVITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:107:8: 'mjDSBL_CLAMPCTRL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:108:8: 'mjDSBL_WARMSTART' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:109:8: 'mjDSBL_FILTERPARENT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:110:8: 'mjDSBL_ACTUATION' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:111:8: 'mjDSBL_REFSAFE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:112:10: 'mjNDISABLE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:115:8: 'mjENBL_OVERRIDE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:116:8: 'mjENBL_ENERGY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:117:8: 'mjENBL_FWDINV' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:118:8: 'mjENBL_SENSORNOISE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:119:10: 'mjNENABLE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:122:8: 'mjJNT_FREE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:123:8: 'mjJNT_BALL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:124:8: 'mjJNT_SLIDE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:125:8: 'mjJNT_HINGE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:129:8: 'mjGEOM_PLANE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:130:8: 'mjGEOM_HFIELD' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:131:8: 'mjGEOM_SPHERE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:132:8: 'mjGEOM_CAPSULE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:133:8: 'mjGEOM_ELLIPSOID' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:134:8: 'mjGEOM_CYLINDER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:135:8: 'mjGEOM_BOX' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:136:8: 'mjGEOM_MESH' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:138:8: 'mjNGEOMTYPES' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:141:8: 'mjGEOM_ARROW' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:142:8: 'mjGEOM_ARROW1' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:143:8: 'mjGEOM_ARROW2' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:144:8: 'mjGEOM_LABEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:146:8: 'mjGEOM_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:150:8: 'mjCAMLIGHT_FIXED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:151:8: 'mjCAMLIGHT_TRACK' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:152:8: 'mjCAMLIGHT_TRACKCOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:153:8: 'mjCAMLIGHT_TARGETBODY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:154:8: 'mjCAMLIGHT_TARGETBODYCOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:158:8: 'mjTEXTURE_2D' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:159:8: 'mjTEXTURE_CUBE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:160:8: 'mjTEXTURE_SKYBOX' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:164:8: 'mjINT_EULER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:165:8: 'mjINT_RK4' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:169:8: 'mjCOL_ALL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:170:8: 'mjCOL_PAIR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:171:8: 'mjCOL_DYNAMIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:175:8: 'mjCONE_PYRAMIDAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:176:8: 'mjCONE_ELLIPTIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:180:8: 'mjJAC_DENSE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:181:8: 'mjJAC_SPARSE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:182:8: 'mjJAC_AUTO' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:186:8: 'mjSOL_PGS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:187:8: 'mjSOL_CG' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:188:8: 'mjSOL_NEWTON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:192:8: 'mjIMP_CONSTANT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:193:8: 'mjIMP_SIGMOID' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:194:8: 'mjIMP_LINEAR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:195:8: 'mjIMP_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:199:8: 'mjREF_SPRING' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:200:8: 'mjREF_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:204:8: 'mjEQ_CONNECT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:205:8: 'mjEQ_WELD' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:206:8: 'mjEQ_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:207:8: 'mjEQ_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:208:8: 'mjEQ_DISTANCE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:212:8: 'mjWRAP_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:213:8: 'mjWRAP_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:214:8: 'mjWRAP_PULLEY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:215:8: 'mjWRAP_SITE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:216:8: 'mjWRAP_SPHERE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:217:8: 'mjWRAP_CYLINDER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:221:8: 'mjTRN_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:222:8: 'mjTRN_JOINTINPARENT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:223:8: 'mjTRN_SLIDERCRANK' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:224:8: 'mjTRN_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:225:8: 'mjTRN_SITE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:227:8: 'mjTRN_UNDEFINED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:231:8: 'mjDYN_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:232:8: 'mjDYN_INTEGRATOR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:233:8: 'mjDYN_FILTER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:234:8: 'mjDYN_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:238:8: 'mjGAIN_FIXED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:239:8: 'mjGAIN_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:243:8: 'mjBIAS_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:244:8: 'mjBIAS_AFFINE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:245:8: 'mjBIAS_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:249:8: 'mjOBJ_UNKNOWN' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:250:8: 'mjOBJ_BODY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:251:8: 'mjOBJ_XBODY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:252:8: 'mjOBJ_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:253:8: 'mjOBJ_DOF' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:254:8: 'mjOBJ_GEOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:255:8: 'mjOBJ_SITE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:256:8: 'mjOBJ_CAMERA' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:257:8: 'mjOBJ_LIGHT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:258:8: 'mjOBJ_MESH' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:259:8: 'mjOBJ_HFIELD' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:260:8: 'mjOBJ_TEXTURE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:261:8: 'mjOBJ_MATERIAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:262:8: 'mjOBJ_PAIR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:263:8: 'mjOBJ_EXCLUDE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:264:8: 'mjOBJ_EQUALITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:265:8: 'mjOBJ_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:266:8: 'mjOBJ_ACTUATOR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:267:8: 'mjOBJ_SENSOR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:268:8: 'mjOBJ_NUMERIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:269:8: 'mjOBJ_TEXT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:270:8: 'mjOBJ_TUPLE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:271:8: 'mjOBJ_KEY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:275:8: 'mjCNSTR_EQUALITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:276:8: 'mjCNSTR_FRICTION_DOF' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:277:8: 'mjCNSTR_FRICTION_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:278:8: 'mjCNSTR_LIMIT_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:279:8: 'mjCNSTR_LIMIT_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:280:8: 'mjCNSTR_CONTACT_FRICTIONLESS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:281:8: 'mjCNSTR_CONTACT_PYRAMIDAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:282:8: 'mjCNSTR_CONTACT_ELLIPTIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:286:8: 'mjCNSTRSTATE_SATISFIED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:287:8: 'mjCNSTRSTATE_QUADRATIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:288:8: 'mjCNSTRSTATE_LINEARNEG' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:289:8: 'mjCNSTRSTATE_LINEARPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:290:8: 'mjCNSTRSTATE_CONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:296:8: 'mjSENS_TOUCH' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:297:8: 'mjSENS_ACCELEROMETER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:298:8: 'mjSENS_VELOCIMETER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:299:8: 'mjSENS_GYRO' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:300:8: 'mjSENS_FORCE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:301:8: 'mjSENS_TORQUE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:302:8: 'mjSENS_MAGNETOMETER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:303:8: 'mjSENS_RANGEFINDER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:306:8: 'mjSENS_JOINTPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:307:8: 'mjSENS_JOINTVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:308:8: 'mjSENS_TENDONPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:309:8: 'mjSENS_TENDONVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:310:8: 'mjSENS_ACTUATORPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:311:8: 'mjSENS_ACTUATORVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:312:8: 'mjSENS_ACTUATORFRC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:315:8: 'mjSENS_BALLQUAT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:316:8: 'mjSENS_BALLANGVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:319:8: 'mjSENS_FRAMEPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:320:8: 'mjSENS_FRAMEQUAT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:321:8: 'mjSENS_FRAMEXAXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:322:8: 'mjSENS_FRAMEYAXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:323:8: 'mjSENS_FRAMEZAXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:324:8: 'mjSENS_FRAMELINVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:325:8: 'mjSENS_FRAMEANGVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:326:8: 'mjSENS_FRAMELINACC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:327:8: 'mjSENS_FRAMEANGACC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:330:8: 'mjSENS_SUBTREECOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:331:8: 'mjSENS_SUBTREELINVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:332:8: 'mjSENS_SUBTREEANGMOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:335:8: 'mjSENS_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:339:8: 'mjSTAGE_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:340:8: 'mjSTAGE_POS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:341:8: 'mjSTAGE_VEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:342:8: 'mjSTAGE_ACC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:346:8: 'mjDATATYPE_REAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:347:8: 'mjDATATYPE_POSITIVE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:348:8: 'mjDATATYPE_AXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:349:8: 'mjDATATYPE_QUAT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:75:4: 'mjtNum' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:77:10: 'mjPI' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:78:10: 'mjMAXVAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:79:10: 'mjMINMU' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:80:10: 'mjMINIMP' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:81:10: 'mjMAXIMP' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:82:10: 'mjMAXCONPAIR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:83:10: 'mjMAXVFS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:84:10: 'mjMAXVFSNAME' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:87:10: 'mjNEQDATA' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:88:10: 'mjNDYN' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:89:10: 'mjNGAIN' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:90:10: 'mjNBIAS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:91:10: 'mjNREF' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:92:10: 'mjNIMP' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:93:10: 'mjNSOLVER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:96:4: 'mjtByte' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:100:8: 'mjDSBL_CONSTRAINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:101:8: 'mjDSBL_EQUALITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:102:8: 'mjDSBL_FRICTIONLOSS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:103:8: 'mjDSBL_LIMIT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:104:8: 'mjDSBL_CONTACT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:105:8: 'mjDSBL_PASSIVE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:106:8: 'mjDSBL_GRAVITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:107:8: 'mjDSBL_CLAMPCTRL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:108:8: 'mjDSBL_WARMSTART' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:109:8: 'mjDSBL_FILTERPARENT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:110:8: 'mjDSBL_ACTUATION' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:111:8: 'mjDSBL_REFSAFE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:112:10: 'mjNDISABLE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:115:8: 'mjENBL_OVERRIDE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:116:8: 'mjENBL_ENERGY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:117:8: 'mjENBL_FWDINV' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:118:8: 'mjENBL_SENSORNOISE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:119:10: 'mjNENABLE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:122:8: 'mjJNT_FREE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:123:8: 'mjJNT_BALL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:124:8: 'mjJNT_SLIDE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:125:8: 'mjJNT_HINGE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:129:8: 'mjGEOM_PLANE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:130:8: 'mjGEOM_HFIELD' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:131:8: 'mjGEOM_SPHERE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:132:8: 'mjGEOM_CAPSULE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:133:8: 'mjGEOM_ELLIPSOID' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:134:8: 'mjGEOM_CYLINDER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:135:8: 'mjGEOM_BOX' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:136:8: 'mjGEOM_MESH' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:138:8: 'mjNGEOMTYPES' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:141:8: 'mjGEOM_ARROW' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:142:8: 'mjGEOM_ARROW1' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:143:8: 'mjGEOM_ARROW2' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:144:8: 'mjGEOM_LABEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:146:8: 'mjGEOM_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:150:8: 'mjCAMLIGHT_FIXED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:151:8: 'mjCAMLIGHT_TRACK' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:152:8: 'mjCAMLIGHT_TRACKCOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:153:8: 'mjCAMLIGHT_TARGETBODY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:154:8: 'mjCAMLIGHT_TARGETBODYCOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:158:8: 'mjTEXTURE_2D' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:159:8: 'mjTEXTURE_CUBE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:160:8: 'mjTEXTURE_SKYBOX' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:164:8: 'mjINT_EULER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:165:8: 'mjINT_RK4' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:169:8: 'mjCOL_ALL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:170:8: 'mjCOL_PAIR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:171:8: 'mjCOL_DYNAMIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:175:8: 'mjCONE_PYRAMIDAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:176:8: 'mjCONE_ELLIPTIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:180:8: 'mjJAC_DENSE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:181:8: 'mjJAC_SPARSE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:182:8: 'mjJAC_AUTO' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:186:8: 'mjSOL_PGS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:187:8: 'mjSOL_CG' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:188:8: 'mjSOL_NEWTON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:192:8: 'mjIMP_CONSTANT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:193:8: 'mjIMP_SIGMOID' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:194:8: 'mjIMP_LINEAR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:195:8: 'mjIMP_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:199:8: 'mjREF_SPRING' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:200:8: 'mjREF_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:204:8: 'mjEQ_CONNECT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:205:8: 'mjEQ_WELD' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:206:8: 'mjEQ_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:207:8: 'mjEQ_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:208:8: 'mjEQ_DISTANCE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:212:8: 'mjWRAP_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:213:8: 'mjWRAP_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:214:8: 'mjWRAP_PULLEY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:215:8: 'mjWRAP_SITE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:216:8: 'mjWRAP_SPHERE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:217:8: 'mjWRAP_CYLINDER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:221:8: 'mjTRN_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:222:8: 'mjTRN_JOINTINPARENT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:223:8: 'mjTRN_SLIDERCRANK' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:224:8: 'mjTRN_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:225:8: 'mjTRN_SITE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:227:8: 'mjTRN_UNDEFINED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:231:8: 'mjDYN_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:232:8: 'mjDYN_INTEGRATOR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:233:8: 'mjDYN_FILTER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:234:8: 'mjDYN_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:238:8: 'mjGAIN_FIXED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:239:8: 'mjGAIN_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:243:8: 'mjBIAS_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:244:8: 'mjBIAS_AFFINE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:245:8: 'mjBIAS_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:249:8: 'mjOBJ_UNKNOWN' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:250:8: 'mjOBJ_BODY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:251:8: 'mjOBJ_XBODY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:252:8: 'mjOBJ_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:253:8: 'mjOBJ_DOF' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:254:8: 'mjOBJ_GEOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:255:8: 'mjOBJ_SITE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:256:8: 'mjOBJ_CAMERA' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:257:8: 'mjOBJ_LIGHT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:258:8: 'mjOBJ_MESH' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:259:8: 'mjOBJ_HFIELD' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:260:8: 'mjOBJ_TEXTURE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:261:8: 'mjOBJ_MATERIAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:262:8: 'mjOBJ_PAIR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:263:8: 'mjOBJ_EXCLUDE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:264:8: 'mjOBJ_EQUALITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:265:8: 'mjOBJ_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:266:8: 'mjOBJ_ACTUATOR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:267:8: 'mjOBJ_SENSOR' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:268:8: 'mjOBJ_NUMERIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:269:8: 'mjOBJ_TEXT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:270:8: 'mjOBJ_TUPLE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:271:8: 'mjOBJ_KEY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:275:8: 'mjCNSTR_EQUALITY' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:276:8: 'mjCNSTR_FRICTION_DOF' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:277:8: 'mjCNSTR_FRICTION_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:278:8: 'mjCNSTR_LIMIT_JOINT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:279:8: 'mjCNSTR_LIMIT_TENDON' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:280:8: 'mjCNSTR_CONTACT_FRICTIONLESS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:281:8: 'mjCNSTR_CONTACT_PYRAMIDAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:282:8: 'mjCNSTR_CONTACT_ELLIPTIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:286:8: 'mjCNSTRSTATE_SATISFIED' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:287:8: 'mjCNSTRSTATE_QUADRATIC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:288:8: 'mjCNSTRSTATE_LINEARNEG' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:289:8: 'mjCNSTRSTATE_LINEARPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:290:8: 'mjCNSTRSTATE_CONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:296:8: 'mjSENS_TOUCH' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:297:8: 'mjSENS_ACCELEROMETER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:298:8: 'mjSENS_VELOCIMETER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:299:8: 'mjSENS_GYRO' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:300:8: 'mjSENS_FORCE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:301:8: 'mjSENS_TORQUE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:302:8: 'mjSENS_MAGNETOMETER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:303:8: 'mjSENS_RANGEFINDER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:306:8: 'mjSENS_JOINTPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:307:8: 'mjSENS_JOINTVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:308:8: 'mjSENS_TENDONPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:309:8: 'mjSENS_TENDONVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:310:8: 'mjSENS_ACTUATORPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:311:8: 'mjSENS_ACTUATORVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:312:8: 'mjSENS_ACTUATORFRC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:315:8: 'mjSENS_BALLQUAT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:316:8: 'mjSENS_BALLANGVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:319:8: 'mjSENS_FRAMEPOS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:320:8: 'mjSENS_FRAMEQUAT' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:321:8: 'mjSENS_FRAMEXAXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:322:8: 'mjSENS_FRAMEYAXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:323:8: 'mjSENS_FRAMEZAXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:324:8: 'mjSENS_FRAMELINVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:325:8: 'mjSENS_FRAMEANGVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:326:8: 'mjSENS_FRAMELINACC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:327:8: 'mjSENS_FRAMEANGACC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:330:8: 'mjSENS_SUBTREECOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:331:8: 'mjSENS_SUBTREELINVEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:332:8: 'mjSENS_SUBTREEANGMOM' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:335:8: 'mjSENS_USER' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:339:8: 'mjSTAGE_NONE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:340:8: 'mjSTAGE_POS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:341:8: 'mjSTAGE_VEL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:342:8: 'mjSTAGE_ACC' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:346:8: 'mjDATATYPE_REAL' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:347:8: 'mjDATATYPE_POSITIVE' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:348:8: 'mjDATATYPE_AXIS' redeclared
    warning: mujoco_py/generated/../pxd/mjmodel.pxd:349:8: 'mjDATATYPE_QUAT' redeclared
    running build_ext
    building 'mujoco_py.cymj' extension
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6/private
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6/private/tmp
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6/private/tmp/pip-install-75nke5mr
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6/private/tmp/pip-install-75nke5mr/mujoco-py
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6/private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py
    creating /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6/private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/gl
    /usr/local/bin/gcc-7 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DONMAC -Imujoco_py -I/private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py -I/Users/pengzhenghao/.mujoco/mjpro150/include -I/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/cymj.c -o /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/generated/_pyxbld_1.50.1.68_36_macextensionbuilder/temp.macosx-10.9-x86_64-3.6/private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/cymj.o -fopenmp -w
    In file included from /usr/local/Cellar/gcc/7.1.0/lib/gcc/7/gcc/x86_64-apple-darwin15.6.0/7.1.0/include-fixed/syslimits.h:7:0,
                     from /usr/local/Cellar/gcc/7.1.0/lib/gcc/7/gcc/x86_64-apple-darwin15.6.0/7.1.0/include-fixed/limits.h:34,
                     from /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m/Python.h:11,
                     from /private/tmp/pip-install-75nke5mr/mujoco-py/mujoco_py/cymj.c:57:
    /usr/local/Cellar/gcc/7.1.0/lib/gcc/7/gcc/x86_64-apple-darwin15.6.0/7.1.0/include-fixed/limits.h:194:15: fatal error: limits.h: No such file or directory
     #include_next <limits.h>  /* recurse down to the real one */
                   ^~~~~~~~~~
    compilation terminated.
    error: command '/usr/local/bin/gcc-7' failed with exit status 1
    
    ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-75nke5mr/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 /private/tmp/pip-record-89q1ucyf/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-75nke5mr/mujoco-py/
@thisiscam

This comment has been minimized.

Copy link

commented Jan 1, 2019

Might be late, but https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave solved my problem.

Basically, I had to install some auxiliary package that came with Commandlinetools.

Concretely, I did the following:
sudo open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

@quantshah

This comment has been minimized.

Copy link

commented Feb 13, 2019

I had a similar problem on MacOS and it turns out that I should use the Apple supplied gcc and not the conda gcc. You can check using

which gcc

After I removed the conda gcc and updated Xcode, I could install QuTiP and compile stuff. Hope this helps.

@miziodel

This comment has been minimized.

Copy link

commented Jun 14, 2019

I received a similar error:
uninstalling conda gcc and using the Xcode gcc solved my issue.
thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.