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

mujoco1.50 - Could not find GCC executable. #777

Open
the-jasonl opened this issue Aug 2, 2023 · 2 comments
Open

mujoco1.50 - Could not find GCC executable. #777

the-jasonl opened this issue Aug 2, 2023 · 2 comments

Comments

@the-jasonl
Copy link

Describe the bug
I want to run pip3 install -U 'mujoco-py<1.50.2,>=1.50.1' on macOS but it returns

File "/private/var/folders/1t/t0dzx5fn3jn1r9lqx_2j3m9m0000gn/T/pip-install-i8wi8lki/mujoco-py_48d744c3b7c64c6abb74252cb291ab88/mujoco_py/builder.py", line 320, in _build_impl
      raise RuntimeError(
  RuntimeError: Could not find GCC executable.
  
  HINT: On OS X, install GCC with `brew install gcc`.

I have the following gcc version installed:

Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

and am running Python version:

Python 3.9.17 (main, Jun 15 2023, 08:01:12) 
[Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin

What is the problem here?

The ultimate goal is to install and run gym[mujoco]==0.19.

To Reproduce
Use setup above and run pip3 install -U 'mujoco-py<1.50.2,>=1.50.1' on macOS

Expected behavior
Successful install

Error Messages
See above

Desktop (please complete the following information):

  • OS: macOS 13.4.1
  • Python Version: 3.9.17
  • Mujoco Version 1.50
  • mujoco-py version: trying to install
@lukaskocian
Copy link

Hello Jason,
have you ended up fixing the problem? I got totally the same and can't get my head around it.

MischaPanch added a commit to thu-ml/tianshou that referenced this issue Feb 6, 2024
Addresses part of #1015 

### Dependencies

- move jsonargparse and docstring-parser to dependencies to run hl
examples without dev
- create mujoco-py extra for legacy mujoco envs
- updated atari extra
    - removed atari-py and gym dependencies
    - added ALE-py, autorom, and shimmy
- created robotics extra for HER-DDPG

### Mac specific

- only install envpool when not on mac
- mujoco-py not working on macOS newer than Monterey
(openai/mujoco-py#777)
- D4RL also fails due to dependency on mujoco-py
(Farama-Foundation/D4RL#232)

### Other

- reduced training-num/test-num in example files to a number ≤ 20
(examples with 100 led to too many open files)
- rendering for Mujoco envs needs to be fixed on gymnasium side
(Farama-Foundation/Gymnasium#749)

---------

Co-authored-by: Maximilian Huettenrauch <[email protected]>
Co-authored-by: Michael Panchenko <[email protected]>
@maxjkwang
Copy link

I think the reason for this is in builder.py, it only looks for GCC versions older than (and including) gcc-9. I tried to add my GCC path to the c_compilers list, but it would cause other compile errors, so I've resorted to using docker.
I'm not sure if future GCC versions are not supported at all, but if anyone wants to try this feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants