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
Mujoco issue with gcc on mac OS Catalina #463
Comments
I'm also encountering the same issue. |
Actually, is there anyone who can install mujoco-py under Catalina? |
Same issue |
Hi, similar question here: https://stackoverflow.com/questions/58348607/macos-command-line-tools-and-gcc-suddenly-failing-on-catalina-worked-on-mojave Try to use OS 10.14 SDK instead of the default SDK. This worked for me. |
Thanks Ryan. Any hints on how to do it in details? |
@Jendker take a look here too. That question I asked was basically during my digging up on this issue. These are my header files (Catalina 10.15):
Run Mojave 10.14 header files:
As can be seen the SDKs are now split into MACOSX10.14 and 10.15 unlike in Mojave. TLDR So, these were my SDK folders on Catalina:
Your folder structure should now look like this: Like this we are basically using the previous version's OSX sdk as sysroot. Hope this helps. |
Quite hacky, but works, thanks Ryan! Would be nice if this issue could be fixed though :) |
Glad it worked and saved you some time! |
@RyanRizzo96 Thanks, that seems to work for other people, but for me it doesn't. My Catalina SDK Folders look a bit different from yours: My |
@alexandrubalotescu I had a mistake in my steps in the last edit I made. I updated the steps and they should make more sense now. Rename MacOSX.sdk to MacOSX_orig.sdk (not OSX10.14) Let me know if this helps. |
@RyanRizzo96 Thank, your solution now makes sense, but unfortunately it still doesn't work for me. I still get this:
What gcc did you end up using? |
Hmm, so you are now using Try using gcc6, that's what ended up working for me. Turns out some gcc versions are not compatible with some other pieces of software. |
Nope, gcc6 doesn't work either :( |
Not sure what's going wrong in your case but I pretty much think it has to do with the new command line tools. Did you run Run that command if you haven't already and try to reinstall gcc. I had to install and reinstall gcc a couple of times. |
I have again issues with installing mujoco-py under Catalina for some reason. A solution to this issue will be highly appreciated :) |
Same issue under Catalina. |
Same issue under Ubuntu 16.04 QAQ
|
Is this issue solved..? |
No don't think so. I found a hacky workaround which I posted above, but nothing released officially as far as I know. |
brew uninstall gcc
brew uninstall gcc@7
brew uninstall gcc@9
brew install gcc@8
git clone https://github.com/openai/mujoco-py.git
pip install -e ~/mujoco-py Works on macOS Catalina |
@tekeburak That actually finally worked for me!! Thank you very much!
|
Could be because of the latest Catalina update (10.15.1) and XCode developer tools update that came along with it. |
Have anyone tried installing mujoco-py directly from pypi under 10.15.1 (pip install mujoco-py)? I've made downgrade to Mojave so cannot test it. |
Hi, I successfully installed using this step. However trying to import mujoco, it throws out errors as: |
I don't know why it's happened but you can try to install mujoco with gcc@6. |
Mujoco-py can be installed directly with EDIT: I am still not able to install from repository using If I run
what gives similar output to
and |
For some reason this didn't solve it for me. Tried with GCC 6 and 8. The solution of swapping out the sdks does work but I'm obviously this is not an ideal solution |
OS: [Mac OS Catalina 10.15.1] I added Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mujoco_py
Compiling /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/cymj.pyx because it changed.
[1/1] Cythonizing /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/cymj.pyx
running build_ext
building 'mujoco_py.cymj' extension
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7/site-packages
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/gl
/usr/local/bin/gcc-9 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/ming/anaconda3/include -arch x86_64 -I/Users/ming/anaconda3/include -arch x86_64 -DONMAC -Ianaconda3/lib/python3.7/site-packages/mujoco_py -I/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py -I/Users/ming/.mujoco/mujoco200/include -I/Users/ming/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/ming/anaconda3/include/python3.7m -c /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/cymj.c -o /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/cymj.o -fopenmp -w
/usr/local/bin/gcc-9 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/ming/anaconda3/include -arch x86_64 -I/Users/ming/anaconda3/include -arch x86_64 -DONMAC -Ianaconda3/lib/python3.7/site-packages/mujoco_py -I/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py -I/Users/ming/.mujoco/mujoco200/include -I/Users/ming/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/ming/anaconda3/include/python3.7m -c /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/gl/dummyshim.c -o /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/gl/dummyshim.o -fopenmp -w
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/lib.macosx-10.9-x86_64-3.7
creating /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/lib.macosx-10.9-x86_64-3.7/mujoco_py
/usr/local/bin/gcc-9 -bundle -undefined dynamic_lookup -L/Users/ming/anaconda3/lib -arch x86_64 -L/Users/ming/anaconda3/lib -arch x86_64 -arch x86_64 /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/cymj.o /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/temp.macosx-10.9-x86_64-3.7/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/gl/dummyshim.o -L/Users/ming/.mujoco/mujoco200/bin -L/Users/ming/.mujoco/mujoco200/bin -lmujoco200 -lglfw.3 -o /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/_pyxbld_2.0.2.8_37_macextensionbuilder/lib.macosx-10.9-x86_64-3.7/mujoco_py/cymj.cpython-37m-darwin.so -fopenmp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/__init__.py", line 3, in <module>
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/builder.py", line 507, in <module>
cymj = load_cython_ext(mujoco_path)
File "/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/builder.py", line 106, in load_cython_ext
mod = load_dynamic_ext('cymj', cext_so_path)
File "/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/builder.py", line 125, in load_dynamic_ext
return loader.load_module()
ImportError: dlopen(/Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/cymj_2.0.2.8_37_macextensionbuilder_37.so, 2): Library not loaded: /Users/ming/.mujoco/mujoco200/bin/libmujoco200.dylib
Referenced from: /Users/ming/anaconda3/lib/python3.7/site-packages/mujoco_py/generated/cymj_2.0.2.8_37_macextensionbuilder_37.so
Reason: no suitable image found. Did find:
/Users/ming/.mujoco/mujoco200/bin/libmujoco200.dylib: code signature in (/Users/ming/.mujoco/mujoco200/bin/libmujoco200.dylib) not valid for use in process using Library Validation: library load disallowed by system policy
/Users/ming/.mujoco/mujoco200/bin/libmujoco200.dylib: code signature in (/Users/ming/.mujoco/mujoco200/bin/libmujoco200.dylib) not valid for use in process using Library Validation: library load disallowed by system policy
>>>
does anyone has solutions or hints about the 'code signatur' or 'Validation' problem ??? |
well, this maybe a stupid question, I add the related import mujoco_py
import os
mj_path, _ = mujoco_py.utils.discover_mujoco()
xml_path = os.path.join(mj_path, 'model', 'humanoid.xml')
model = mujoco_py.load_model_from_path(xml_path)
sim = mujoco_py.MjSim(model)
print(sim.data.qpos)
# [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
sim.step()
print(sim.data.qpos)
# [-2.09531783e-19 2.72130735e-05 6.14480786e-22 -3.45474715e-06
# 7.42993721e-06 -1.40711141e-04 -3.04253586e-04 -2.07559344e-04
# 8.50646247e-05 -3.45474715e-06 7.42993721e-06 -1.40711141e-04
# -3.04253586e-04 -2.07559344e-04 -8.50646247e-05 1.11317030e-04
# -7.03465386e-05 -2.22862221e-05 -1.11317030e-04 7.03465386e-05
# -2.22862221e-05] |
@Schrominger , have you tried pip install mujoco-py? @Jendker says this is now working. Maybe try this command in a new environment, with the original SDK's and see how it goes as it should be easier to install this way. |
Now its OK, thanks~ |
I make a summary here what I have done. system conditions:
[21:49:49] ming@Mac ~/.mujoco $ tree
.
├── mjkey.txt
└── mujoco200
├── bin
│ ├── basic
│ ├── compile
│ ├── derivative
│ ├── libglfw.3.dylib
│ ├── libglfw3.a
│ ├── libmujoco200.dylib
│ ├── libmujoco200nogl.dylib
│ ├── mjkey.txt
│ ├── record
│ ├── simulate
│ ├── testspeed
│ └── testxml
├── doc
│ ├── README.txt
│ └── REFERENCE.txt
├── include
│ ├── glfw3.h
│ ├── mjdata.h
│ ├── mjmodel.h
│ ├── mjrender.h
│ ├── mjui.h
│ ├── mjvisualize.h
│ ├── mjxmacro.h
│ ├── mujoco.h
│ ├── uitools.c
│ └── uitools.h
├── model
│ ├── arm26.xml
│ ├── carpet.png
│ ├── cloth.xml
│ ├── grid1.xml
│ ├── grid1pin.xml
│ ├── grid2.xml
│ ├── grid2pin.xml
│ ├── hammock.xml
│ ├── humanoid.xml
│ ├── humanoid100.xml
│ ├── loop.xml
│ ├── marble.png
│ ├── particle.xml
│ ├── rope.xml
│ ├── scene.xml
│ ├── softbox.xml
│ ├── softcylinder.xml
│ ├── softellipsoid.xml
│ └── sponge.png
└── sample
├── basic.cpp
├── compile.cpp
├── derivative.cpp
├── makefile
├── record.cpp
├── simulate.cpp
├── testspeed.cpp
└── testxml.cpp
6 directories, 52 files
[22:07:47] ming@Mac ~ $ pip install mujoco_py
Collecting mujoco_py
Using cached https://files.pythonhosted.org/packages/44/f8/1c2840d5ed717ac612aba2879dc1ce548451be6e4d32a7fc7c549c127119/mujoco_py-2.0.2.8-py3-none-any.whl
Requirement already satisfied: Cython>=0.27.2 in ./anaconda3/lib/python3.7/site-packages (from mujoco_py) (0.29.13)
Requirement already satisfied: cffi>=1.10 in ./anaconda3/lib/python3.7/site-packages (from mujoco_py) (1.12.3)
Requirement already satisfied: glfw>=1.4.0 in ./anaconda3/lib/python3.7/site-packages (from mujoco_py) (1.8.4)
Requirement already satisfied: fasteners~=0.15 in ./anaconda3/lib/python3.7/site-packages (from mujoco_py) (0.15)
Requirement already satisfied: imageio>=2.1.2 in ./anaconda3/lib/python3.7/site-packages (from mujoco_py) (2.6.0)
Requirement already satisfied: numpy>=1.11 in ./anaconda3/lib/python3.7/site-packages (from mujoco_py) (1.17.2)
Requirement already satisfied: pycparser in ./anaconda3/lib/python3.7/site-packages (from cffi>=1.10->mujoco_py) (2.19)
Requirement already satisfied: monotonic>=0.1 in ./anaconda3/lib/python3.7/site-packages (from fasteners~=0.15->mujoco_py) (1.5)
Requirement already satisfied: six in ./anaconda3/lib/python3.7/site-packages (from fasteners~=0.15->mujoco_py) (1.12.0)
Requirement already satisfied: pillow in ./anaconda3/lib/python3.7/site-packages (from imageio>=2.1.2->mujoco_py) (6.2.0)
Installing collected packages: mujoco-py
Successfully installed mujoco-py-2.0.2.8
...
...
c_compilers = ['/usr/local/bin/gcc-6',
'/usr/local/bin/gcc-7',
'/usr/local/bin/gcc-8',
'/usr/local/bin/gcc-9', # added here
'/opt/local/bin/gcc-mp-6',
'/opt/local/bin/gcc-mp-7',
'/opt/local/bin/gcc-mp-8']
...
...
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mujoco_py
>>> import mujoco_py
>>> import os
>>> mj_path, _ = mujoco_py.utils.discover_mujoco()
>>> xml_path = os.path.join(mj_path, 'model', 'humanoid.xml')
>>> model = mujoco_py.load_model_from_path(xml_path)
>>> sim = mujoco_py.MjSim(model)
>>> print(sim.data.qpos)
[0. 0. 1.4 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. ]
>>> sim.step()
>>> print(sim.data.qpos)
[-1.12164337e-05 7.29847036e-22 1.39975300e+00 9.99999999e-01
1.80085466e-21 4.45933954e-05 -2.70143345e-20 1.30126513e-19
-4.63561234e-05 -1.88020744e-20 -2.24492958e-06 4.79357124e-05
-6.38208396e-04 -1.61130312e-03 -1.37554006e-03 5.54173825e-05
-2.24492958e-06 4.79357124e-05 -6.38208396e-04 -1.61130312e-03
-1.37554006e-03 -5.54173825e-05 -5.73572648e-05 7.63833991e-05
-2.12765194e-05 5.73572648e-05 -7.63833991e-05 -2.12765194e-05]
>>> seemed it works now. |
Addressed by #485 |
If anyone is still having issues I wrote some steps on how to set it up from factory settings... ================================================ macOS Catalina 10.15.2 , CONDA INSTALL ———————————————————————————————————————— Manually download anaconda 3.7 from https://www.anaconda.com/distribution/ I changed from zsh to bash with chsh -s /bin/bash conda update conda source ~/.bash_profile XCODE iNSTALL ———————————————————————————————————————— Download Xcode from App Store Install Xcode tools with xcode-select --install MUJOCO INSTALL ———————————————————————————————————————— mkdir .mujoco in your home directory Download mujoco200_macos to .mujoco (Note: cmd and shift and . Shows hidden files on a Mac) mujoco200_macos needs renaming as mujoco200 Save your mjkey.txt to .mujoco/mujoco200/bin , this will allow the simulate test to run Also save your mjkey.txt to .mujoco , this will allow mujoco-py to install in the environment set up step Test mujoco (not mujoco-py) is installed by running ./simulate ../model/humanoid.xml, you will see a humanoid fall over RESTART ———————————————————————————————————————— This probably not required INSTALL HOMEBREW ———————————————————————————————————————— /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" You may have to agree to Xcode licensing if you haven’t already, if so do that and run the above command again source ~/.bash_profile # probably not required INSTALL GCC ———————————————————————————————————————— brew install gcc MUJOCO-PY ENV SET UP ———————————————————————————————————————— conda create --name=bambi python=3.7 conda activate bambi Pip list is: pip install -U 'mujoco-py<2.1,>=2.0' CHECK IT WORKS ———————————————————————————————————————— Pip list is now: Script the following test.py : Reference: https://github.com/openai/mujoco-py import mujoco_py If you get something like this it is probably working :) [0. 0. 1.4 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. Hope this helps. |
Hi, I have been struggling with this problem for days. Nothing above works for me at all, I've tried everything in the above thread to no avail. I continually get
pip install mujoco-py produces the above error; I also did RyanRizzo's library hack, and it produces the above error. I'm completely out of ideas now. For the record, I can't get gcc to work on the command line in Catalina either, even to compile HelloWorld.cpp. Any help appreciated, I'm really bummed I can't get this to work. |
The error is enormous, but the output directly above the exit status 1 error is
|
I've also tried aliasing g++ (which does work for compiling HelloWorld at least) into gcc, i.e. |
I also looked at #485, specifically uninstalled all other gcc with homebrew and installed gcc@9, and still get
when running pip install mujoco-py. |
Just wanted to update the thread: uninstalling all older GCC versions via homebrew and then running
which installs GCC 9.3, and then running
finally worked for me. No more compiler errors. Note that you seem to need both mujoco200 and mujocopro150 for openai/spinningup. In my above response, I had run |
Hi, similar to wberdanier above, I have been stuck with this error for many days. I've tried everything above as well, and got this error as expected (almost exactly the same as wberdanier's post 7 days prior):
However, as recommended above, I then used homebrew to uninstall all of the older GCC versions, and then reinstalled gcc@9. However, I'm still getting a similar error:
It seems that the above fix using gcc 9 is not working for me either. I even tried avoiding using pep517 by using
Additional note: The error message displayed when building the wheel fails is actually very large (thousands of lines); it seems that most lines of code have failed as a result. Most have this error message:
|
@bobyang9 see my solution. You may find it helpful, but it bypasses gcc (I deleted it and used llvm from brew). |
Agree with @bobyang9 . The problem has not been solved yet. Waiting for a solution. |
(o2p2) yangchen@Chengxis-MacBook-Pro .mujoco % ld: library not found for -lmujoco200
|
For me, it was the security and privacy issues on the dylib files on mujoco (namely, libglfw.3, libmujoco200 and libmujoco200nogl). I have to manually open the files to override the security permissions that came with macOS mojave. After which, I followed @RoboKez 's steps which helped! |
@raymondchua Thanks for the suggestion. How did you manually open the files? Did you use chmod to change permissions on MacOS 10.15.7? |
@ all new readers. I've tried all of the above strategies on MacOS 10.15.7 inside a python 3.7.3 virtual environment with pip 20.3.3 && nothing has worked. Would appreciate an actual solution from the founders of this repo for MacOS 10.15.7 Thanks |
I just did right click and choose open. You should see a window opening up informing you on the security issues. |
I am getting this error when trying to import mujoco_py on catalina. I installed mujoco200 |
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:
I then try to use gcc6 as suggested here but:
I then try using
pip3 install --no-use-pep517 -U 'mujoco-py<2.1,>=2.0'
and I get:EDIT:
Here is a snippet of the full error:
^
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
The text was updated successfully, but these errors were encountered: