OS: [Mac OS 10.15]
Python Version [ 3.7.1]
Mujoco Version [Mujoco200]
mujoco-py version [2.0.2.6]
I'm completely stuck when trying to install Mujoco on Mac OS Catalina. I managed this on Mojave and countless Ubuntu machines in the past.
I use: pip install mujoco-py
I install gcc8 as suggested here but:
error: command '/usr/local/bin/gcc-8' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for mujoco-py
Running setup.py clean for mujoco-py
Failed to build mujoco-py
ERROR: Could not build wheels for mujoco-py which use PEP 517 and cannot be installed directly
I then try to use gcc6 as suggested here but:
error: command '/usr/local/bin/gcc-6' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for mujoco-py
Running setup.py clean for mujoco-py
Failed to build mujoco-py
ERROR: Could not build wheels for mujoco-py which use PEP 517 and cannot be installed directly
I then try using pip3 install --no-use-pep517 -U 'mujoco-py<2.1,>=2.0' and I get:
error: command '/usr/local/bin/gcc-6' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-g7ly208t/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/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-record-16c5_b_x/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-g7ly208t/mujoco-py/
EDIT:
Here is a snippet of the full error:
^
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-cf6yred6/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-cf6yred6/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:9: error: old-style parameter declarations in prototyped function definition
int getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
^~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:24: error: parameter name omitted
int getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:29: error: parameter name omitted
int getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
^~~
/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-cf6yred6/mujoco-py/mujoco_py/gl/dummyshim.c:37: error: expected '{' at end of input
}
Why is this happening on Catalina? How can I install mujoco? Let me know if you need full error logs. Thanks for any suggestions!
Full log:
Collecting mujoco-py<2.1,>=2.0
Downloading https://files.pythonhosted.org/packages/30/d1/a6c45652ef5fc4d02d2dae4a056c0802496ce0a1b5855aacd0b478491fd4/mujoco-py-2.0.2.6.tar.gz (777kB)
|鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 778kB 855kB/s
Requirement already satisfied, skipping upgrade: glfw>=1.4.0 in /usr/local/lib/python3.7/site-packages (from mujoco-py<2.1,>=2.0) (1.8.2)
Requirement already satisfied, skipping upgrade: numpy>=1.11 in /usr/local/lib/python3.7/site-packages (from mujoco-py<2.1,>=2.0) (1.16.4)
Requirement already satisfied, skipping upgrade: Cython>=0.27.2 in /usr/local/lib/python3.7/site-packages (from mujoco-py<2.1,>=2.0) (0.29.11)
Requirement already satisfied, skipping upgrade: imageio>=2.1.2 in /usr/local/lib/python3.7/site-packages (from mujoco-py<2.1,>=2.0) (2.5.0)
Requirement already satisfied, skipping upgrade: cffi>=1.10 in /usr/local/lib/python3.7/site-packages (from mujoco-py<2.1,>=2.0) (1.12.3)
Requirement already satisfied, skipping upgrade: lockfile>=0.12.2 in /usr/local/lib/python3.7/site-packages (from mujoco-py<2.1,>=2.0) (0.12.2)
Requirement already satisfied, skipping upgrade: pillow in /usr/local/lib/python3.7/site-packages (from imageio>=2.1.2->mujoco-py<2.1,>=2.0) (6.1.0)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.7/site-packages (from cffi>=1.10->mujoco-py<2.1,>=2.0) (2.19)
Building wheels for collected packages: mujoco-py
Building wheel for mujoco-py (setup.py) ... error
ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/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 /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-wheel-x_blq3ax --python-tag cp37:
ERROR: running bdist_wheel
running build
Removing old mujoco_py cext /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/cymj_2.0.2.6_37_macextensionbuilder_37.so
running build_ext
building 'mujoco_py.cymj' extension
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py
creating /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl
/usr/local/bin/gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DONMAC -Imujoco_py -I/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py -I/Users/ryanr/.mujoco/mujoco200/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/cymj.c -o /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/cymj.o -fopenmp -w
/usr/local/bin/gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DONMAC -Imujoco_py -I/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py -I/Users/ryanr/.mujoco/mujoco200/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c -o /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/generated/_pyxbld_2.0.2.6_37_macextensionbuilder/temp.macosx-10.15-x86_64-3.7/private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.o -fopenmp -w
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h: In function 'getiopolicy_np':
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:443:34: error: expected declaration specifiers before '__OSX_AVAILABLE_STARTING'
int getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:449:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__OSX_AVAILABLE_STARTING'
int setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
^~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:66:0,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:130,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/i386/endian.h:99,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/endian.h:35,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h:186,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/i386/_OSByteOrder.h:49:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/i386/_OSByteOrder.h:58:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/i386/_OSByteOrder.h:96:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:77:0,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_ct_rune_t.h:32:28: error: storage class specified for parameter 'ct_rune_t'
typedef __darwin_ct_rune_t ct_rune_t;
^~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:78:0,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_rune_t.h:31:25: error: storage class specified for parameter 'rune_t'
typedef __darwin_rune_t rune_t;
^~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:81:0,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_wchar_t.h:34:26: error: storage class specified for parameter 'wchar_t'
typedef __darwin_wchar_t wchar_t;
^~~~~
In file included from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33:0,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:86:3: error: storage class specified for parameter 'div_t'
} div_t;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:91:3: error: storage class specified for parameter 'ldiv_t'
} ldiv_t;
^~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:97:3: error: storage class specified for parameter 'lldiv_t'
} lldiv_t;
^~~
In file included from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33:0,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:118:12: error: storage class specified for parameter '__mb_cur_max'
extern int __mb_cur_max;
^~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:128:0,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__OSX_AVAILABLE_STARTING'
int posix_memalign(void *__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
^~~~~~~~
In file included from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33:0,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:144:1: error: expected declaration specifiers before 'div_t'
div_t div(int, int) __pure2;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:149:1: error: expected declaration specifiers before 'ldiv_t'
ldiv_t ldiv(long, long) __pure2;
^~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:153:1: error: expected declaration specifiers before 'lldiv_t'
lldiv_t lldiv(long long, long long);
^~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:157:18: error: expected declaration specifiers or '...' before 'wchar_t'
size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t);
^~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:158:13: error: expected declaration specifiers or '...' before 'wchar_t'
int mbtowc(wchar_t * __restrict, const char * __restrict, size_t);
^~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:194:51: error: expected ';', ',' or ')' before '' token
size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:195:21: error: expected declaration specifiers or '...' before 'wchar_t'
int wctomb(char , wchar_t);
^~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:260:0,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_dev_t.h:31:31: error: storage class specified for parameter 'dev_t'
typedef __darwin_dev_t dev_t; / device number */
^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:261:0,
from /Users/ryanr/.mujoco/mujoco200/include/mujoco.h:33,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/glshim.h:4,
from /private/var/folders/q7/q_59j36d5n31209r5c01mx2w0000gp/T/pip-install-dis3ujgg/mujoco-py/mujoco_py/gl/dummyshim.c:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_mode_t.h:31:33: error: storage class specified for parameter 'mode_t'
error: command '/usr/local/bin/gcc-6' failed with exit status 1
ERROR: Failed building wheel for mujoco-py
Most helpful comment